Repository navigation
feat(stack-kms-azure): Azure Managed HSM key vendor backend (CIP-5309) - #1651
Draft
freshtonic wants to merge 1 commit into
Draft
freshtonic wants to merge 1 commit into
freshtonic wants to merge 1 commit into
Conversation
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true |
|
This was referenced Nov 13, 2026
Contributor
Mutation testing (cargo-mutants,
|
This branch has not been 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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Layer 7 of the CIP-5203 stack. Implements CIP-5309.
stack-kms-azure: Azure Key Vault Managed HSM only. It uses the Key Vault REST API 7.4 (wrapkey/unwrapkey), with A256KW under anoct-HSM(AES-256) key.vault.azure.net) is not supported. A vault holds only RSA and EC keys. With RSA, anyone who has the public key can wrap a root key that they know, so a vault cannot prove who made a keyset record. The client refuses Key Vault hosts and any key that is notoct-HSM.wrapkeyhas no associated data, so it is bound withstack_kms_vendor::bound. This is sound only because the wrap needs the HSM's AES key. The wrapped key is padded to 72 bytes.kid, so an unwrap needs no extra lookup.integration-azure-managed-hsm.ymlstays off: leave the variableSTACK_KMS_AZURE_LIVE_KEYunset until an instance is available. It also needs the secretsSTACK_KMS_AZURE_TENANT_ID,STACK_KMS_AZURE_CLIENT_IDandSTACK_KMS_AZURE_CLIENT_SECRET.azure-managed-hsm, and the static token variable isAZURE_MANAGED_HSM_ACCESS_TOKEN.Decisions are in
docs/plans/2026-11-05-key-vendor-backends-decisions.md(the CIP-5309 section, and "Azure: Managed HSM only (2026-11-13)").Replaces #1629, which was closed.