IT-RAT the stack/keyryx Live demo Stack Guides Console
key custody and a witness · proof

Keyryx. Signing keys held apart from the code that uses them.

One Go binary with two roles that never share a process. Custody holds the signing keys and signs for the consumers it grants a key. The witness reads the record without writing to it, remembers how much of it has been read and the hash of that, and reports when something it saw is gone. Neither role sits on a request path.

statusv0.2.0 · released 2026-11-25
coreGo 1.27 · standard library first
algorithmsES256 · ES384 · ML-DSA-65
listens oncustody 4340 · witness 4341
licenceApache-2.0
two roles, one binary

Custody signs. The witness remembers.

The witness is there to disagree with custody if custody is ever compromised, so the two run as separate processes with separate keys and data directories, and the launcher gives each its own uid (stack-single does).

Keys that stay in the store

Each private half is wrapped under AES-256-GCM with a key derived from the root key, and is never written in the clear.

Consumers get what they were granted

A consumer authenticates one way and signs only with the keys its policy grants. A refusal answers a status and nothing else.

Delegated keys, proven first

A high-rate signer proves it holds its own key, and custody certifies it for a bounded life with an overlap, so a rotation is never an outage.

A witness that remembers what it saw

It keeps a count and a hash of every stream, never a copy, and reports a rewrite, a truncation or a restarted chain.

A check you can run without the service

keyryx verify checks a witness log, or streams and their checkpoints, from files alone. An empty directory is reported as measured nothing, never as OK.

under the hood

Who signs, who watches, and who only reads.

Verifiers read the published key sets and never call custody for each request. In stack-single the witness reads the event bus and writes its findings to a volume of its own; by default the binary writes them to keyryx.ndjson on the bus.

trailryx sealed root, opt-in wardryx approval tokens vouchryx token key, opt-in tokenfuse checkpoint key, opt-in keyryx custody signs for the consumers it grants statement in, signature back or proof in, key statement back wrapped keys, state MAC use log, one line per use certifies short-lived keys publishes key sets, with overlap never on a request path verifiers cache /v1/jwks/{name} verify locally, no call per request keep verifying when custody is down key rotation, admin socket only key n-1 key n on the machine only, no network route new key beside old, then old retired event streams events/*.ndjson, read only trailryx manifests sealed, when a folder is set keyryx witness its own process, key and volume own uid, no network: stack-single reads, writes only its own files off every request path its own log one entry per observation tree head per interval ECDSA P-384 ML-DSA-65 keyryx.ndjson witness_stream_rewritten
watch it work

A signature waits for its log line. A missing byte gets noticed.

1 · CUSTODY SIGNS a consumer its own socket, bearer key or Kubernetes token statement signature keyryx custody 1 is this key granted to you? 2 one line on disk, first 3 sign and answer use.ndjson each line hashes the last key sets, published with an overlap verifiers cache the key set no call per request; keep verifying when custody is down 2 · THE WITNESS REMEMBERS an event stream, read only keyryx witness keeps a count and a SHA-256 never a copy of the bytes what it reports findings go to keyryx.ndjson Every interval it hashes each stream again from byte zero (hourly past 256 MiB) and compares what it saw. Every observation goes into its own RFC 9162 log, each head signed with ECDSA P-384 and ML-DSA-65. not granted: 403,the reason to the loggranted: a signature,after its log line5 lines seen7 lines seeninterval 1: the first readinterval 2: two lines appendedone line rewritten in placethe stream cut short5 lines · sha256 3f9a…7 lines · sha256 b21c…first 7 lines no longer b21c…holds 3 lines, saw 7first read, rememberednothing to reportthe first 5 still hash the samenothing to reportwitness_stream_rewrittena byte changed; it cannot say whichwitness_stream_truncatedfewer bytes than it saw 7 lines seenone line rewritten in placefirst 7 lines no longer b21c…witness_stream_rewrittena byte changed; it cannot say whichgranted: a signature,after its log line
in short

What it refuses, where it runs, what it leaves open.

one stack-single hostrefuses
One stack-single host: the request path runs agent, Wardryx and tool with no call to Keyryx; custody and the witness run as two containers under their own uids; the witness reads the event bus and writes findings to keyryx.ndjson, which Heraldyx and the console read; the root key is a file and rotation runs on custody's admin socket on the machine.one host: stack-singlerequest pathagentasks for a toolwardryxverifies a cached key settoolruns or is heldno keyryx hereno call per request, up or downapprovals, at grantkeyryx custodycontainer, its own uidsigns what a granted consumer asksjudges no tool call, issues no identityroot key: a filerotate, revoke: 403keyryx witnesscontainer, its own uidno networkreads the bus, never writes itapartevent busevents/*.ndjson, read onlykeyryx.ndjsonfindings, on its own volumeheraldyxmails highconsoleincidentsoff-host anchorthe operator adds itcustody and witness share this hostso they are not separate trust domains

Keyryx is on no request path and decides nothing: verifiers check a cached key set, and custody signs only what a granted consumer asks. In the guide

try it now

Build the binary and read its version.

go build -o keyryx ./cmd/keyryx && ./keyryx version
common questions

Custody and the witness, in short

Is Keyryx a cloud key vault?

No. It is a process you run beside the stack, with a wrapped key store on disk under a root key that is a file. It has no cloud key management. None is built: a cloud key adapter would be a metered dependency, which is an operator's decision and never a default.

Does a request wait on Keyryx?

No. Verifiers cache the key sets it publishes and keep verifying when it is down. The synchronous calls are rare by design: an approval being granted, a seal, and the renewal of a delegated key.

Can the witness stop a bad write?

No. It reads the record, reports what it finds and countersigns what it sees. Whatever follows from a finding is the operator's decision, and the finding stays in its own log either way.