Skip to content

feat(proxy): hash-chain audit log + authenticate /audit/export#14

Merged
keirsalterego merged 1 commit into
mainfrom
fix/v0.1-alpha-pilot-security
May 24, 2026
Merged

feat(proxy): hash-chain audit log + authenticate /audit/export#14
keirsalterego merged 1 commit into
mainfrom
fix/v0.1-alpha-pilot-security

Conversation

@keirsalterego

Copy link
Copy Markdown
Contributor

Proxy-side security hardening for the pilot.

Changes

  • audit.rs: SHA-256 hash chain (previous_hash + hash) matching the Python audit format; chain reseeds from the existing log on startup; tamper-detection + restart-continuity tests
  • main.rs: /audit/export now requires X-Vyrox-Signature + X-Vyrox-Timestamp headers inside the 30s replay window (same HMAC verifier as /execute) — closes the unauthenticated tenant-data-export hole
  • edr.rs, nonce.rs: supporting changes

Validation

  • cargo fmt --check ✅ · cargo clippy -- -D warnings ✅ 0 warnings · cargo test ✅ 17 passed

- audit.rs: SHA-256 previous_hash/hash chain matching the Python side, chain reseeds from existing log on startup, tamper + restart tests
- main.rs: /audit/export now requires X-Vyrox-Signature + X-Vyrox-Timestamp inside the replay window (same verifier as /execute)
- edr.rs, nonce.rs: supporting changes

Validation: cargo fmt --check clean, clippy -D warnings clean, 17/17 tests pass.
Copilot AI review requested due to automatic review settings May 24, 2026 13:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@keirsalterego keirsalterego merged commit 3083b03 into main May 24, 2026
1 check failed
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.

2 participants