Skip to content

Wire .provignore redaction into capture and pre-push hooks#58

Merged
mattfogel merged 1 commit into
mainfrom
codex/fix-provignore-redactor
May 14, 2026
Merged

Wire .provignore redaction into capture and pre-push hooks#58
mattfogel merged 1 commit into
mainfrom
codex/fix-provignore-redactor

Conversation

@mattfogel

Copy link
Copy Markdown
Owner

Summary

  • Load repo-local .provignore rules in the production hook redactor path.
  • Redact matching prompt text during user-prompt-submit capture.
  • Apply the same rules in pre-push so repo-specific patterns are blocked before secrets leave the machine.
  • Added regression tests for both capture and pre-push behavior.

Testing

  • cargo fmt --check
  • cargo test -p prov --test hook_capture
  • cargo test -p prov --test cli_pre_push
  • cargo test -p prov
  • cargo clippy -p prov -- -D warnings

@mattfogel
mattfogel marked this pull request as ready for review May 14, 2026 13:43
@mattfogel
mattfogel merged commit 34c804e into main May 14, 2026
3 checks passed
@mattfogel
mattfogel deleted the codex/fix-provignore-redactor branch May 14, 2026 13:44
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