Skip to content

ci: mint the coder-automations App token with Cloud KMS - #8137

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

kylecarbs merged 2 commits into
mainfrom
app-token-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
publish.yaml (aur) coder-automations release code-server-aur: contents, pull_requests write
  • 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.
  • aur job permissions: it had none, so it inherited the defaults. It now sets contents: read and id-token: write.
  • Version input is validated: every job's "Set version" step now rejects anything but v1.2.3 or v1.2.3-rc.1 before writing GITHUB_ENV. A workflow_dispatch on a v* tag could otherwise put arbitrary text into GITHUB_ENV and into the aur job's shell, in jobs that can mint the App token. The aur shell lines also use "$VERSION" instead of ${{ env.VERSION }}.
  • 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 and others added 2 commits November 17, 2026 17:53
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kylecarbs
kylecarbs marked this pull request as ready for review November 17, 2026 23:23
@kylecarbs
kylecarbs requested a review from a team as a code owner November 17, 2026 23:23

@code-asher code-asher left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me!

@kylecarbs
kylecarbs merged commit 7f90477 into main Nov 17, 2026
10 checks passed
@kylecarbs
kylecarbs deleted the app-token-kms branch November 17, 2026 23:24
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.

2 participants