Skip to content

feat: default deny rule engine#22

Merged
ammario merged 5 commits intomainfrom
codex/start-work-on-issue-17-czplec
Sep 11, 2025
Merged

feat: default deny rule engine#22
ammario merged 5 commits intomainfrom
codex/start-work-on-issue-17-czplec

Conversation

@ammario
Copy link
Copy Markdown
Member

@ammario ammario commented Sep 10, 2025

Summary

  • rely on rule engine to deny requests when no rules match instead of inserting a default deny rule
  • log when no rules are provided and test default denial with an empty rule set
  • clean up duplicate rule-engine tests in the main module

Testing

  • cargo clippy --all-targets -- -D warnings
  • cargo test (fails: Failed to execute ip netns add)

https://chatgpt.com/codex/tasks/task_e_68c1d31fd61c832997ee43371d8456fa

blink-so Bot and others added 4 commits September 10, 2025 20:14
Resolve conflict in src/main.rs by updating RuleEngine::new constructor call
to use new signature with request_log parameter.
- replace obsolete log_only field with request_log: None in tests
- update RuleEngine::new(vec![], false) -> None in rules tests

Co-authored-by: ammario <7416144+ammario@users.noreply.github.com>
Co-authored-by: ammario <7416144+ammario@users.noreply.github.com>
@ammario ammario enabled auto-merge (squash) September 11, 2025 01:34
@ammario ammario merged commit 013c1f7 into main Sep 11, 2025
6 checks passed
@ammario ammario deleted the codex/start-work-on-issue-17-czplec branch September 11, 2025 01:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant