Skip to content

ci: mint backport, automation, CI reader, CLA and membership App tokens with Cloud KMS - #32352

Merged
kylecarbs merged 1 commit into
mainfrom
ci-apps-kms
Nov 17, 2026
Merged

kylecarbs merged 1 commit into
mainfrom
ci-apps-kms

Conversation

@kylecarbs

@kylecarbs kylecarbs commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Switches App token steps from actions/create-github-app-token with a private key to coder/github-app-token-action. Each App's key becomes a non-exportable Cloud KMS key that only the listed workflow, in its environment, can sign with (coder/gcp#383).

Workflow App Environment Token
backport.yaml coder-backporter-app main coder: contents, pull_requests, workflows, issues write
aigateway-prices-refresh.yaml coder-automations main coder: contents, pull_requests write
audit-docs-paths.yaml coder-ci-reader main coder.com: contents read
contrib.yaml (cla) coder-cla main cla: contents write
contrib.yaml (community-label) coder-org-membership-bot main members read
  • Scope is unchanged: same repositories and permissions as before. The token is revoked when the job ends.
  • Permissions: each signing job gets id-token: write.
  • backport.yaml and contrib.yaml community-label: the old steps set no repositories, so the token defaulted to this repository. The action needs it explicitly, so they now say repositories: coder; the membership token requests only members: read, which is all the App has.
  • Tighter than today: the main environment holds all five keys, so any job in main could use any of them. Now each key only signs for the one workflow file above, on main.
  • Secrets: the KMS key and APP_KEYS_WORKLOAD_ID_PROVIDER are already set in the environment. The old private-key secret is deleted after this merges.

🤖 Generated with Claude Code

@kylecarbs
kylecarbs temporarily deployed to main November 17, 2026 22:53 — with GitHub Actions Inactive
@kylecarbs
kylecarbs temporarily deployed to main November 17, 2026 22:53 — with GitHub Actions Inactive
@kylecarbs
kylecarbs marked this pull request as ready for review November 17, 2026 23:23
@kylecarbs
kylecarbs requested a review from a team November 17, 2026 23:23
@kylecarbs
kylecarbs merged commit e2abab2 into main Nov 17, 2026
62 checks passed
@kylecarbs
kylecarbs deleted the ci-apps-kms branch November 17, 2026 23:27
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 17, 2026

This branch had an error being deployed

1 failed and 1 inactive deployments
docs-preview — 8f655a92 Deployed Nov 17, 2026 by kylecarbs via cleanup #188
main — 8f655a92 Deployed Nov 17, 2026 by kylecarbs via cla #259031
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants