Skip to content

fix(proxy): add arguments to Cedar context; hash all audit entries (POLICY-004, POLICY-005) - #213

Merged
imran-siddique merged 1 commit into
mainfrom
fix/security-high-cedar-audit
Jun 6, 2026
Merged

fix(proxy): add arguments to Cedar context; hash all audit entries (POLICY-004, POLICY-005)#213
imran-siddique merged 1 commit into
mainfrom
fix/security-high-cedar-audit

Conversation

@imran-siddique

Copy link
Copy Markdown
Member

Summary

Test plan

  • test_cedar_context_includes_arguments — Cedar evaluator receives arguments in context
  • test_audit_payload_hash_present_on_allow — success path audit entry has sha256:... hash
  • test_audit_payload_hash_present_on_catalog_deny — catalog-miss audit entry has hash
  • test_audit_payload_hash_present_on_cedar_deny — Cedar-deny audit entry has hash
  • test_audit_payload_hash_is_canonical_sha256 — hash matches expected canonical JSON serialization
  • Full suite: 306 tests pass locally

🤖 Generated with Claude Code

…OLICY-004, POLICY-005)

Cedar context now includes the `arguments` dict so policies can
inspect tool call parameter values.

Every audit entry (catalog miss, Cedar deny, AGT deny, egress deny,
success) now records `request_payload_hash = sha256(canonical_json(arguments))`
so the audit chain commits to the exact payload that triggered each
enforcement decision.

Closes #143, #144

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@imran-siddique
imran-siddique merged commit f3272f3 into main Jun 6, 2026
7 checks passed
@imran-siddique
imran-siddique deleted the fix/security-high-cedar-audit branch June 6, 2026 21:45
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