Skip to content

docs: add "static" whitelist example to shell#67

Merged
ammario merged 5 commits intomainfrom
docs-js
Sep 23, 2025
Merged

docs: add "static" whitelist example to shell#67
ammario merged 5 commits intomainfrom
docs-js

Conversation

@ammario
Copy link
Member

@ammario ammario commented Sep 23, 2025

No description provided.

ammario and others added 4 commits September 23, 2025 14:08
Added three new pattern examples to the JavaScript rule engine documentation:
- Host whitelist pattern
- Combined host + method whitelist
- Regexp matching for method + URL combinations

Also cleaned up duplicate javascript-rules.md file.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Enhanced the shell script documentation with a practical example showing:
- httpjail command usage
- External whitelist.txt file for managing allowed domains
- Shell script that reads and validates against the whitelist

This provides a more maintainable approach for domain filtering compared
to hardcoding domains in the script.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@ammario ammario enabled auto-merge (squash) September 23, 2025 19:25
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

Codex Review: Here are some suggestions.

Reply with @codex fix comments to fix any unresolved comments.

About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback".

@ammario ammario disabled auto-merge September 23, 2025 19:26
Fixed regex matching security issue where dots in domain names were treated
as regex wildcards. Now uses grep -Fxq for literal string matching:
- F: Fixed strings (no regex)
- x: Match whole lines exactly
- q: Quiet mode

This prevents domains like "apiXgithubYcom" from matching "api.github.com".

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@ammario ammario enabled auto-merge (squash) September 23, 2025 19:31
@ammario ammario merged commit f7e1475 into main Sep 23, 2025
6 checks passed
@ammario ammario deleted the docs-js branch September 23, 2025 19:31
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