Skip to content

fix(security): deduplicate deny reasons, configurable cleanup, injection threshold audit, redact auth header - #249

Merged
imran-siddique merged 1 commit into
mainfrom
fix/low-batch-policy-auth-inject-hw
Jun 8, 2026
Merged

imran-siddique merged 1 commit into
mainfrom
fix/low-batch-policy-auth-inject-hw

Conversation

@imran-siddique

Copy link
Copy Markdown
Member

Summary

Test plan

  • tests/unit/test_low_batch_186_187_191_194.py — 15 new unit tests, all passing locally
    • test_deny_reasons_deduplication / test_deny_reasons_single_entry / test_deny_reasons_empty (POLICY-008)
    • test_session_manager_cleanup_interval_default / test_session_manager_cleanup_interval_from_env / test_mcp_server_cleanup_interval_default / test_mcp_server_cleanup_interval_from_env (AUTH-004)
    • test_injection_threshold_present_for_deny / test_injection_threshold_strict / test_injection_threshold_permissive / test_agt_mcp_scanner_deny_includes_threshold (INJECT-007)
    • test_redact_auth_headers_redacts_authorization / test_redact_auth_headers_case_insensitive / test_redact_auth_headers_no_auth_unchanged / test_opaque_api_key_not_logged_on_failure / test_opaque_verify_sends_api_key_as_bearer (HW-008)
  • Run pytest tests/unit/ — pre-existing failures in test_benchmarks, test_tee_dev_mode_freeze, test_tee_providers are unrelated to this PR

🤖 Generated with Claude Code

…l, log injection threshold, redact API key (#186 #187 #191 #194)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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