Repository navigation
firewall: fail closed on missing/unknown labels; no built-in receipt key - #6
Merged
Merged
Conversation
- X-Sink / X-Taint are required. A missing, unknown or empty label returns 400 deny_unlabelled instead of defaulting to an allowed read or to user intent. - The CLI reads the receipt key (64 hex) from --key-file or AGENTFORK_RECEIPT_KEY and exits 2 without one. The hardcoded 0x5A key is gone. - Receipts in the response and the audit log carry prev_chain_hash and chain_hash. - Python firewall() takes key_hex=. - Tests: three refused-label requests; key loading rejects missing/malformed keys. Fixes #3, fixes #4. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner
Author
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.
Fixes #3 and #4.
X-SinkandX-Taintare now required. Missing, unknown or empty labels return400 deny_unlabelled; before, they were allowed.--key-fileorAGENTFORK_RECEIPT_KEY(64 hex characters) and exits 2 without one. The hardcoded key is removed.prev_chain_hashandchain_hash.firewall()takeskey_hex=.Verified on Zig 0.16.0, M2 Max:
zig build test: 7/7.UNTRUSTED_WEBatshell_exec→ 403,USER_INTENT→ 200. The audit log chain links correctly.README and llms.txt updated to match.
🤖 Generated with Claude Code