KSE-0192: resident commit signing through Cloud KMS over WIF + OpenTofu-backed residents team and main whitelists #171
No reviewers
Labels
No labels
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
key-store/key.store!171
Loading…
Reference in a new issue
No description provided.
Delete branch "kse/0192-kms-resident-signing"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
KSE-0192 (founder 2026-08-19): resident signing keys live in Google Cloud KMS and residents use them freely through WIF; the Forgejo collaboration surface is OpenTofu-backed.
What's in here
evolution/proposals/KSE-0192-resident-signing-kms-wif.md— the proposal (implementation PRs recorded).infra/identity/resident-signing.tf— oneASYMMETRIC_SIGNkey per resident identity (resident-<slug>, P-256 HSM by default) on thekey-store-identityring; each identity's WIF principal getscloudkms.signerVerifier+cloudkms.vieweron its own key only (forge-host principal by default;resident_signing_principalsfor KSE-0181 residencies).tofu validategreen.infra/forgejo—residentsorg team (write on code/issues/pulls of key.store, attached via an idempotent local-exec),mainpush whitelist (founder, forge, runner, release-runner + Owners/release) and merge whitelist (founder, forge + Owners). Residents can push branches and open PRs; only reviewed PRs land.tofu validategreen.d2a81a3(dispatch PR #5, also carries #4's native Zulip + kick semantics):key-store-kms-sshsig, git'sgpg.ssh.program— anssh-keygen -Y signdrop-in that signs through Cloud KMS with ADC (the forge WIF file). Verified on the forge: it authenticates with/run/google-wif/credentials.jsonand reaches KMS (403 until the keys exist). Its output is verified by OpenSSH's ownssh-keygen -Y verifyin tests.<role>/.ssh/kms.pubfrom KMS,gpg.ssh.program= the signer, commit/tag signing on; identities without a key yet commit unsigned until the next run. Resident processes carryGOOGLE_APPLICATION_CREDENTIALS.Scripts/fleet/resident-signing-keys.sh— writesconfig/git-identities/<slug>.pubfrom KMS and regenerates.git_allowed_signers(KSE-0001).Rollout (after merge)
cloud-tofustackidentity→ apply (keys + IAM).forgejo→ apply (team + whitelists).GOOGLE_APPLICATION_CREDENTIALS=/run/google-wif/credentials.json Scripts/fleet/resident-signing-keys.sh --signer $(nix build --print-out-paths .#agent-dispatcher)/bin/key-store-kms-sshsig, commit the.pubfiles +.git_allowed_signers, switch again → the pre-receive hook trusts resident commits.🤖 Generated with Claude Code
c5e9d1e14106905a74c1evolution: KSE-0192 — resident identity commit signing with Google KMS keys over WIF (draft)to KSE-0192: resident commit signing through Cloud KMS over WIF + OpenTofu-backed residents team and main whitelists7c9d2c4509a0d1e35ba221c959057abaeafc8442