Skip to content

ci: mint release and package publisher App tokens with Cloud KMS - #32331

Merged
kylecarbs merged 2 commits into
mainfrom
release-app-kms
Nov 17, 2026
Merged

kylecarbs merged 2 commits into
mainfrom
release-app-kms

Conversation

@kylecarbs

@kylecarbs kylecarbs commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Switches every GitHub App token step in the release workflows 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 these workflows, in their environments, can sign with.

coder-release-publisher

  • release.yaml (environment release): the tagging token and the release-publishing token.
  • create-release-branch.yaml (environment release-refs, main only): the release-branch token. The job gets id-token: write.
  • Scope is unchanged: repositories: coder, contents: write, workflows: write.

coder-package-publisher

  • release.yaml publish-packages (environment release-publish): repositories: packages, contents: write.
  • release.yaml publish-homebrew (environment release-publish): repositories: homebrew-coder, contents: write, pull_requests: write.
  • Both jobs get job-level contents: read and id-token: write. Before, they inherited the workflow's contents: read.

Unchanged

  • Who approves: every environment still needs a release manager, and admins can't bypass.
  • Each token covers one repository and is revoked when its job ends.
  • The KMS keys, APP_KEYS_WORKLOAD_ID_PROVIDER and the App IDs are environment secrets, already set in release, release-refs and release-publish.

Release branches 2.39, 2.38, 2.37, 2.34 and 2.29 run their own release.yaml and get the same change once this merges. The old private keys are deleted after that.

🤖 Generated with Claude Code

The release App's key moves to a non-exportable Cloud KMS key that only
release.yaml (release environment) and create-release-branch.yaml on main
(release-refs environment) may sign with. coder/github-app-token-action
signs the App JWT in KMS, scopes the token to coder with contents and
workflows write, and revokes it when the job ends.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kylecarbs
kylecarbs temporarily deployed to main November 17, 2026 20:03 — with GitHub Actions Inactive
@kylecarbs
kylecarbs temporarily deployed to main November 17, 2026 20:03 — with GitHub Actions Inactive
@kylecarbs
kylecarbs marked this pull request as ready for review November 17, 2026 20:29
@kylecarbs
kylecarbs requested a review from a team November 17, 2026 20:29
@kylecarbs
kylecarbs temporarily deployed to main November 17, 2026 20:29 — with GitHub Actions Inactive
@kylecarbs
kylecarbs temporarily deployed to main November 17, 2026 20:29 — with GitHub Actions Inactive
publish-packages and publish-homebrew sign the coder-package-publisher
JWT in Cloud KMS too, so release.yaml holds no App private key.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kylecarbs kylecarbs changed the title ci: mint release App tokens with Cloud KMS ci: mint release and package publisher App tokens with Cloud KMS Nov 17, 2026
@kylecarbs
kylecarbs temporarily deployed to main November 17, 2026 20:36 — with GitHub Actions Inactive
@kylecarbs
kylecarbs temporarily deployed to main November 17, 2026 20:36 — with GitHub Actions Inactive
jdomeracki-coder
jdomeracki-coder approved these changes Nov 17, 2026 •
@jdomeracki-coder
jdomeracki-coder self-requested a review November 17, 2026 20:41
@kylecarbs
kylecarbs merged commit 85a786c into main Nov 17, 2026
32 checks passed
@kylecarbs
kylecarbs deleted the release-app-kms branch November 17, 2026 22:32
@kylecarbs
kylecarbs temporarily deployed to main November 17, 2026 22:32 — with GitHub Actions Inactive
@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 — c34d7deb Deployed Nov 17, 2026 by kylecarbs via cleanup #179
main — c34d7deb Deployed Nov 17, 2026 by kylecarbs via cla #258972
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.

3 participants