Conversation
Signed-off-by: Enes Öztürk <enes.ozturk@unikie.com>
Signed-off-by: Enes Öztürk <enes.ozturk@unikie.com>
Signed-off-by: Enes Öztürk <enes.ozturk@unikie.com>
Signed-off-by: Enes Öztürk <enes.ozturk@unikie.com>
Signed-off-by: Enes Öztürk <enes.ozturk@unikie.com>
Signed-off-by: Enes Öztürk <enes.ozturk@unikie.com>
Signed-off-by: Enes Öztürk <enes.ozturk@unikie.com>
Signed-off-by: Enes Öztürk <enes.ozturk@unikie.com>
676250c to
98e0eb9
Compare
Signed-off-by: Enes Öztürk <enes.ozturk@unikie.com>
98e0eb9 to
32d724c
Compare
slakkala
left a comment
There was a problem hiding this comment.
Bunch of comments, will continue later.
Signed-off-by: Enes Öztürk <enes.ozturk@unikie.com>
inzanity
left a comment
There was a problem hiding this comment.
Added another bunch of comments, but I believe the spawn_oneshot_command() usage is the only one that really needs fixing.
a1d985b to
e72c941
Compare
4b91e1d to
f852d96
Compare
f852d96 to
0c85ade
Compare
slakkala
left a comment
There was a problem hiding this comment.
I don't think there's anything blocking anymore, some further cleanups suggested.
0c85ade to
5a95637
Compare
There was a problem hiding this comment.
Pull request overview
This PR implements controlled routing scripts for WireGuard configurations, replacing user-provided PreUp/PostUp/PreDown/PostDown hooks with pre-validated scripts to enhance security. It adds embedded logos, improves configuration validation, implements non-blocking I/O for better UI responsiveness, and introduces interface binding support for routing scripts.
Key Changes:
- Replaced arbitrary command execution in WireGuard hooks with validated routing scripts
- Added configuration validation and error aggregation during initialization
- Implemented async operations for file I/O and command execution to prevent UI blocking
Reviewed changes
Copilot reviewed 12 out of 16 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| Cargo.toml | Updated Rust edition and added dependencies (anyhow, pnet_datalink) |
| src/config.rs | Added routing script parsing/validation, binding interface support, comprehensive tests |
| src/main.rs | Implemented async initialization, routing script/interface loading, embedded logos |
| src/tunnel.rs | Refactored to TunnelData model, added validation, async toggle execution |
| src/overview.rs | Added routing script/binding interface UI, field change tracking |
| src/utils.rs | Added export path validation, improved error handling, Option update helper |
| src/generator.rs | Removed hardcoded iptables rules, made operations async |
| src/cli.rs | Split config directory into configs and scripts subdirectories |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
5a95637 to
b5fc0e2
Compare
Signed-off-by: Enes Öztürk <enes.ozturk@unikie.com>
b5fc0e2 to
527b21c
Compare
PreUp,PreDown,PostUp,PostDownhooks by the user with controlled routing scripts, improving security by preventing arbitrary command execution.