Skip to content

feat(cli): stash keyset create and rewrap for key vendor backends (CIP-5312) - #1533

Draft
freshtonic wants to merge 3 commits into
james/cip-5311-go-sdk-key-vendor-backends-through-the-encrypt-guestfrom
james/cip-5312-stash-keyset-create-rewrap-commands
Draft

freshtonic wants to merge 3 commits into
james/cip-5311-go-sdk-key-vendor-backends-through-the-encrypt-guestfrom
james/cip-5312-stash-keyset-create-rewrap-commands

Conversation

@freshtonic

@freshtonic freshtonic commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Layer 10 of the CIP-5203 stack. Implements CIP-5312.

  • stash keyset create and stash keyset rewrap add --out (written with mode 0600), --json and --in. Static keys are taken from an env variable by name, never as a flag value.
  • The CLI calls Rust through two new napi functions in @cipherstash/auth (keysetCreate and keysetRewrap). The vendor crates are linked by path. The binary grows 11% on darwin-arm64. The GCP path has no RSA code.
  • require-auth-npm-changeset.yml and the related workflow paths now include the vendor crates.
  • skills/stash-cli is updated and checked against stash manifest --json.
  • Changesets: stash minor and @cipherstash/auth minor.

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

@freshtonic
freshtonic added this pull request to stack #1523 November 6, 2026 01:50
@changeset-bot

changeset-bot Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 12675c7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 19 packages
Name Type
@cipherstash/auth Minor
stash Minor
@cipherstash/stack Minor
@cipherstash/wizard Minor
@cipherstash/ffi-integration-tests Patch
@cipherstash/basic-example Patch
@cipherstash/e2e Patch
@cipherstash/bench Patch
@cipherstash/stack-drizzle Minor
@cipherstash/stack-prisma Minor
@cipherstash/stack-supabase Minor
@cipherstash/test-kit Patch
@cipherstash/prisma-example Patch
@cipherstash/auth-darwin-arm64 Minor
@cipherstash/auth-darwin-x64 Minor
@cipherstash/auth-linux-arm64-gnu Minor
@cipherstash/auth-linux-x64-gnu Minor
@cipherstash/auth-linux-x64-musl Minor
@cipherstash/auth-win32-x64-msvc Minor

Not sure what this means? Click here to learn what changesets are.

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

@freshtonic freshtonic changed the title james/cip 5312 stash keyset create rewrap commands feat(cli): stash keyset create and rewrap for key vendor backends (CIP-5312) Nov 6, 2026
@coderabbitai

coderabbitai Bot commented Nov 6, 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 6, 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-5312-stash-keyset-create-rewrap-commands branch from 62cbabe to bae2dfb Compare November 6, 2026 02:15
@freshtonic
freshtonic force-pushed the james/cip-5312-stash-keyset-create-rewrap-commands branch from bae2dfb to 81f6647 Compare November 6, 2026 05:10
@freshtonic
freshtonic force-pushed the james/cip-5312-stash-keyset-create-rewrap-commands branch from 81f6647 to 12675c7 Compare November 6, 2026 05:13

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