-
-
Notifications
You must be signed in to change notification settings - Fork 31
Multi domain support #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request adds support for configuring multiple domains on the slipstream server, allowing it to accept DNS queries for different domain suffixes. When multiple domains are configured, the server selects the longest matching suffix for each incoming query.
Changes:
- Added repeatable
--domainflag to server CLI and environment variable support (DOMAINSandCLIENT_DOMAIN) in test scripts - Implemented longest-suffix matching algorithm in DNS decoder with comprehensive test coverage
- Added overlap detection with warnings for duplicate or overlapping domain configurations
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| scripts/interop/run_rust_rust.sh | Added support for DOMAINS and CLIENT_DOMAIN environment variables with parsing and sanitization |
| scripts/README.md | Updated documentation to mention multi-domain environment variables |
| docs/usage.md | Marked --domain as repeatable and documented longest-suffix matching behavior |
| docs/protocol.md | Added specification for multi-domain suffix matching |
| docs/dns-codec.md | Updated codec documentation to reflect multi-domain support |
| crates/slipstream-server/tests/cert_pinning_e2e.rs | Modified e2e test to exercise multi-domain functionality |
| crates/slipstream-server/src/server.rs | Added domain overlap warnings and switched to decode_query_with_domains |
| crates/slipstream-server/src/main.rs | Changed --domain argument from single String to Vec with required flag |
| crates/slipstream-dns/tests/multi_domain.rs | Added comprehensive unit tests for multi-domain matching behavior |
| crates/slipstream-dns/src/lib.rs | Exported decode_query_with_domains function |
| crates/slipstream-dns/src/dns.rs | Implemented extract_subdomain_multi with longest-suffix matching algorithm |
| .github/workflows/ci.yml | Added multi-domain test configuration to CI matrix |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Fixes #6.