v0.8: audit receipts + CycloneDX/SARIF/report exports - #3
Merged
Merged
Conversation
Audit & compliance, local-first and metadata-only: - audit seal/verify: Ed25519 hash-chained receipts over the request + security logs. Each receipt stores a SHA-256 of the source row's canonical contents, chained as hash = SHA-256(prev_hash || content_hash) and signed with a local key (~/.burnwall/audit_ed25519.key, 0600, generated on first use). verify re-derives every content hash from the live rows, so edits, deletions, or reorders of a receipt or a sealed row are detected, and the chain cannot be forged without the key. Seal-on-demand keeps it off the proxy hot path. - audit aibom: CycloneDX 1.6 AI Bill of Materials for the window. - audit sarif: security blocks as SARIF 2.1.0 for GitHub code scanning. - report + audit export: shareable summary (text/json/csv) and receipt dump. New audit_receipts table (UNIQUE(source, source_id), idempotent seal). Deps: ed25519-dalek + rand_core. 389 tests pass; manually verified end-to-end (a blocked request sealed + verified, sarif/report/aibom rendered).
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.
Summary
burnwall audit seal/verify) — tamper-evident, metadata-only proof of every forwarded/blocked action. Each receipt stores a SHA-256 of the source row's contents, chained into the previous receipt, and signed with a local key.verifyre-derives each hash from the live rows, so edits/deletions/reorders of a receipt or a sealed row are detected, and the chain can't be forged without the key. Seal-on-demand, off the proxy hot path.burnwall audit aibom).burnwall audit sarif) for GitHub code scanning.burnwall report(text/json/csv) +burnwall audit export(json/csv).All metadata-only and read-only over the existing request/security logs — never reads prompt content.
Test plan
cargo fmt+cargo clippy --all-targets -- -D warningsclean