Skip to content

PS-11417: Enforce the wildcard-subject guard in the GitHub OIDC module#366

Open
nogueiraanderson wants to merge 1 commit into
mainfrom
PS-11417-oidc-subject-wildcard-validation
Open

PS-11417: Enforce the wildcard-subject guard in the GitHub OIDC module#366
nogueiraanderson wants to merge 1 commit into
mainfrom
PS-11417-oidc-subject-wildcard-validation

Conversation

@nogueiraanderson

Copy link
Copy Markdown
Collaborator

Bug

  • The github-oidc-role module documents that wildcard subject claims are "forbidden at the API", but its only validation rejects empty lists
  • StringEquals keeps a wildcard inert either way, so there is no live exposure; the documented gate was aspirational

Fix

  • Add a subject_claims validation rejecting * and ?, failing at plan time with a clear message
  • Align the module header with the enforced behavior

Tickets

…module

- Add a validation rejecting * and ? in subject_claims, making the
  'forbids them at the API' comment true instead of aspirational
- StringEquals keeps wildcards inert either way; the gate now blocks
  them at plan time with a clear message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant