Skip to content

validate tenant IDs in IsAllowed#7525

Open
SungJin1212 wants to merge 1 commit into
cortexproject:masterfrom
SungJin1212:validate-tenantID-in-AllowedTenants
Open

validate tenant IDs in IsAllowed#7525
SungJin1212 wants to merge 1 commit into
cortexproject:masterfrom
SungJin1212:validate-tenantID-in-AllowedTenants

Conversation

@SungJin1212
Copy link
Copy Markdown
Member

Updated the IsAllowed method in AllowedTenants to call ValidTenantID, rejecting tenant IDs with unsupported characters, excessive length (>150 chars), path traversal segments (. or ..), and reserved names (__markers__, user-index.json.gz)

Which issue(s) this PR fixes:
Fixes #

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 go Pull requests that update Go code type/security labels May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go Pull requests that update Go code size/S type/security

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant