Repository navigation
feat(keyless): sign-don't-store egress bridge + kit doctor posture (Pillar 2 keyless step 2) - #323
Merged
Merged
Conversation
…illar 2 keyless step 2) Wire the pure RFC 9421 core to kit's identity + signed scope so an agent can prove itself to a host by SIGNING each request instead of carrying a stored bearer token. - profile schema: [scope].sign — hosts that require a signed request (RFC 9421) instead of a stored token. Rides inside the signed [scope], so it cannot be marked keyless without re-signing. - profile-policy: surface signHostsDeclared (from the declaration, any sign status) and signHosts (EFFECTIVE only when the scope verifies) — an unverified sign list grants nothing (fail-closed), mirroring the null-policy rule. - src/keyless/sign-request.ts: signOutbound() decides + mints Signature-Input/ Signature from signWithIdentity; never fabricates auth. not-required (host not keyless) / denied (declared-but-unverified, no/ revoked identity, or a hardware mandate refusing the file key) / signed. verifyInbound() is the symmetric kit-peer verifier (rejects revoked signers). The only keyless file that imports identity — http-sig.ts stays pure. - kit doctor: "keyless credentials" row — skip (none declared) / fail (declared but unverified, or no usable identity) / pass (verified + identity ready). 12 new tests (host matching, verified-vs-declared sign hosts, sign/verify round-trip, tamper/unverified/revoked denials, doctor skip/fail/pass). Full suite 2770/2770. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DbF4MFePXWNCd4dxBQvqH2
|
✅ Docker image built successfully
|
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.
Wires the pure RFC 9421 core (#322) to kit's identity + signed scope, so an agent can prove itself to a host by signing each request instead of carrying a stored bearer token.
What
profile schema —
[scope].sign: hosts that require a signed request. Rides inside the signed[scope], so a host can't be marked keyless without re-signing.exec-broker/profile-policy— surfacessignHostsDeclared(from the declaration, any sign status) andsignHosts(effective only when the scope verifies). An unverified sign list grants nothing — fail-closed, mirroring the existing null-policy rule.src/keyless/sign-request.ts—signOutbound()decides and mintsSignature-Input/SignaturefromsignWithIdentity, never fabricating auth:not-required— host not keyless (caller uses its normal credential path)denied— host keyless but scope unverified, or no/revoked identity, or a hardware mandate refuses the file keysigned— verified sign host + usable, non-revoked identityverifyInbound()is the symmetric kit-peer verifier (rejects revoked signers). This is the only keyless file that imports identity —http-sig.tsstays pure.kit doctor— new "keyless credentials" row:skip(none declared) /fail(declared but unverified, or no usable identity) /pass(verified + identity ready, no stored bearer).Verification
npx tsc --noEmitclean ·npx eslint src0 errors (124 pre-existing warnings)node scripts/test.mjs— 2770/2770 pass, 0 fail · prettier appliedThis completes the keyless build-out: design note (kit-research #39) → pure RFC 9421 core (#322) → identity bridge + doctor posture (this PR).
🤖 Generated with Claude Code
Generated by Claude Code