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

Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
@dosubot dosubot Bot added the type/bug label Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

1 participant