Skip to content

feat(signer): name the sealed key at unlock so a released signer can find it#416

Merged
ion-alpha-dev merged 1 commit into
mainfrom
feat/signer-key-at-unlock-host
Jul 15, 2026
Merged

feat(signer): name the sealed key at unlock so a released signer can find it#416
ion-alpha-dev merged 1 commit into
mainfrom
feat/signer-key-at-unlock-host

Conversation

@ion-alpha-dev

Copy link
Copy Markdown
Collaborator

What

Complete the host side of the operator-to-signer credential path so a signer launched from a catalog spec can find and unlock its sealed key.

  • SignerChannel.Unlock and the routed signer now carry a key path, and the MCP channel sends it alongside the passphrase (omitted when empty, so a signer started with its own --key is unaffected).
  • mountSigner names the sealed key at <data-dir>/signers/<name>.key and fails at mount, with the path and the remedy, when it is missing, instead of letting the signer surface a lower-level open error from inside a mount.
  • flynn auth set signer/<name> stores the signer passphrase at the vault ref mountSigner reads. It was rejected before as an unknown model provider, so the command the mount step points you to now works.

Why

A released signer is launched from a catalog spec whose process args were fixed before the operator's machine existed, so it cannot be told the sealed key path as a flag. The signer accepts the path at unlock instead; this is the host half of that contract, and without it a catalog signer cannot locate its key.

How to verify

go test ./cmd/flynn/ ./extension/ covers the new paths: auth set signer/<name> storing at the ref the mount reads, the key path travelling through unlock, and the mount failing with a named path and remedy when the sealed key is absent.

Notes for reviewers

Pairs with solana-signer v0.1.1, which reads the key at unlock. An empty key path preserves the old flag-driven behavior.

@codecov

codecov Bot commented Jul 15, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.15385% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
cmd/flynn/extensions.go 83.33% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

…find it

A released signer is launched from a catalog spec whose process args were fixed
before the operator's machine existed, so it cannot be told the sealed key path
as a flag. The signer (from solana-signer v0.1.1) accepts the path at unlock
instead; this is the host half of that contract.

- SignerChannel.Unlock and the routed signer carry a keyPath, and the MCP channel
  sends it alongside the passphrase (left out when empty, so a signer launched
  with its own --key is unaffected).
- mountSigner names the sealed key at <data-dir>/signers/<name>.key and fails at
  mount, with the path and the remedy, when it is absent, rather than letting the
  signer surface a lower-level open error from inside a mount.
- flynn auth set signer/<name> stores the signer passphrase at the vault ref
  mountSigner reads. It was rejected before as an unknown model provider, so the
  command the mount step tells you to run now works.
@ion-alpha-dev
ion-alpha-dev force-pushed the feat/signer-key-at-unlock-host branch from fb9cb38 to 81e779f Compare July 15, 2026 12:11
@ion-alpha-dev
ion-alpha-dev merged commit 81e779f into main Jul 15, 2026
26 checks passed
@ion-alpha-dev
ion-alpha-dev deleted the feat/signer-key-at-unlock-host branch July 15, 2026 12:23
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant