Skip to content

chore: restrict slack-config STS policy to environment subjects - #82

Merged
sds merged 1 commit into
mainfrom
sts-policy-prune-subjects
Aug 21, 2026
Merged

chore: restrict slack-config STS policy to environment subjects#82
sds merged 1 commit into
mainfrom
sts-policy-prune-subjects

Conversation

@sds

@sds sds commented Aug 21, 2026

Copy link
Copy Markdown
Member

Removes the ref:refs/heads/main and pull_request subjects from the slack-config trust policy. Every job that rotates the Slack config token runs in a GitHub environment, so those subjects match nothing today — jobs with an environment: key always present the environment-form OIDC subject (#80, #81).

Dropping them also tightens the grant: with pull_request present, any same-repo PR workflow job without an environment could mint a secrets: write token; now minting requires entering the preview or production environment, so any deployment protection rules on those environments gate token minting too. A future environment-less job that needs to rotate can add its subject back in a reviewed diff.

@sds
sds enabled auto-merge (squash) August 21, 2026 06:36
@sds
sds merged commit 087ad94 into main Aug 21, 2026
8 checks passed
@sds
sds deleted the sts-policy-prune-subjects branch August 21, 2026 06:39
@sds
sds deployed to preview August 21, 2026 06:39 — with GitHub Actions Active
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