Skip to content

feat(stack-kms-aws): AWS KMS key vendor backend (CIP-5307) - #1527

Draft
freshtonic wants to merge 9 commits into
james/cip-5306-keyset-records-the-two-key-modes-and-the-static-key-backendfrom
james/cip-5307-aws-kms-key-vendor-backend-stack-kms-aws
Draft

freshtonic wants to merge 9 commits into
james/cip-5306-keyset-records-the-two-key-modes-and-the-static-key-backendfrom
james/cip-5307-aws-kms-key-vendor-backend-stack-kms-aws

Conversation

@freshtonic

@freshtonic freshtonic commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Layer 5 of the CIP-5203 stack. Implements CIP-5307 (ADR-0011).

  • New crate stack-kms-aws: a hand-written AWS KMS JSON client with in-crate SigV4 (no aws-sdk), supporting both key modes. The AAD is bound through EncryptionContext.
  • Credentials: static and environment, IRSA, the ECS container endpoint, and IMDSv2 (native only), cached and refreshed before expiry.
  • HttpVendorTransport (native, in stack-kms-vendor) and HostVendorTransport (guest, in stack-guest-abi).
  • Tests: SigV4 vectors, recorded fixtures, the contract suite, and a LocalStack job that runs on PRs.
  • Both crates are staged for crates.io, with release = false.

Decisions are in docs/plans/2026-11-05-key-vendor-backends-decisions.md (CIP-5307 sections).

@freshtonic
freshtonic added this pull request to stack #1523 November 5, 2026 23:40
@freshtonic freshtonic changed the title james/cip 5307 aws kms key vendor backend stack kms aws feat(stack-kms-aws): AWS KMS key vendor backend (CIP-5307) Nov 5, 2026
@changeset-bot

changeset-bot Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 089a740

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Mutation testing (cargo-mutants, --in-diff, stack-auth + stack-encrypt)

caught missed unviable timeout
60 0 94 0

Every mutant in the changed lines was caught by a test.

@freshtonic
freshtonic force-pushed the james/cip-5307-aws-kms-key-vendor-backend-stack-kms-aws branch from 3721ee0 to 8d2579a Compare November 6, 2026 02:15
@freshtonic
freshtonic force-pushed the james/cip-5307-aws-kms-key-vendor-backend-stack-kms-aws branch from 8d2579a to 14f5bdd Compare November 6, 2026 05:10
…CIP-5307)

The Debug of Zeroizing prints the value. One later {:?} of AuthToken
would put the container authorization token in a log.

This branch has not been deployed

No deployments
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.

1 participant