Repository navigation
ci: mint release and package publisher App tokens with Cloud KMS - #32331
Merged
Merged
Conversation
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]>
sreya
approved these changes
Nov 17, 2026
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]>
jdomeracki-coder
self-requested a review
November 17, 2026 20:41
kylecarbs
had a problem deploying
to
docs-preview
November 17, 2026 22:32 — with
GitHub Actions
Failure
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Switches every GitHub App token step in the release workflows from
actions/create-github-app-tokenwith 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-publisherrelease.yaml(environmentrelease): the tagging token and the release-publishing token.create-release-branch.yaml(environmentrelease-refs,mainonly): the release-branch token. The job getsid-token: write.repositories: coder,contents: write,workflows: write.coder-package-publisherrelease.yamlpublish-packages(environmentrelease-publish):repositories: packages,contents: write.release.yamlpublish-homebrew(environmentrelease-publish):repositories: homebrew-coder,contents: write,pull_requests: write.contents: readandid-token: write. Before, they inherited the workflow'scontents: read.Unchanged
APP_KEYS_WORKLOAD_ID_PROVIDERand the App IDs are environment secrets, already set inrelease,release-refsandrelease-publish.Release branches 2.39, 2.38, 2.37, 2.34 and 2.29 run their own
release.yamland get the same change once this merges. The old private keys are deleted after that.🤖 Generated with Claude Code