Skip to content

fix handling of trailing commas in SecretStringSliceCSV.Set()#7587

Open
SungJin1212 wants to merge 1 commit into
cortexproject:masterfrom
SungJin1212:fix-SecretStringSliceCSV.Set()-trailing-comma
Open

fix handling of trailing commas in SecretStringSliceCSV.Set()#7587
SungJin1212 wants to merge 1 commit into
cortexproject:masterfrom
SungJin1212:fix-SecretStringSliceCSV.Set()-trailing-comma

Conversation

@SungJin1212

Copy link
Copy Markdown
Member

This PR fixes SecretStringSliceCSV.Set() to reject empty and whitespace-only entries caused by stray or trailing commas (e.g. newkey,, newkey,,oldkey).

Which issue(s) this PR fixes:
Fixes #7579

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]
  • docs/configuration/v1-guarantees.md updated if this PR introduces experimental flags

@dosubot dosubot Bot added the type/bug label Jun 4, 2026
Comment thread pkg/util/flagext/secretstringslicecsv.go Outdated
@SungJin1212 SungJin1212 requested a review from friedrichg June 5, 2026 04:49
@SungJin1212 SungJin1212 force-pushed the fix-SecretStringSliceCSV.Set()-trailing-comma branch 2 times, most recently from 2fa8e93 to ff1bf4e Compare June 17, 2026 01:12
Comment thread CHANGELOG.md Outdated
Comment thread CHANGELOG.md Outdated
@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Jun 17, 2026
@SungJin1212 SungJin1212 force-pushed the fix-SecretStringSliceCSV.Set()-trailing-comma branch from 1e14520 to 8286eaf Compare June 18, 2026 01:36
Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
@SungJin1212 SungJin1212 force-pushed the fix-SecretStringSliceCSV.Set()-trailing-comma branch from 8286eaf to 9a29bc7 Compare June 18, 2026 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size/M type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Distributor signing keys: empty entry in -distributor.sign-write-requests-keys silently downgrades V01 stream auth to forgeable

2 participants