Skip to content

Add network policy for egress control in persisting-capture#9

Merged
reiase merged 1 commit into
mainfrom
feature/network_policy
Jul 24, 2026
Merged

Add network policy for egress control in persisting-capture#9
reiase merged 1 commit into
mainfrom
feature/network_policy

Conversation

@reiase

@reiase reiase commented Jul 24, 2026

Copy link
Copy Markdown
Contributor
  • Introduced a new NetworkPolicy module to manage egress rules for forward-proxy traffic.
  • Added NetworkConfig struct to define network modes: public, no-network, and allowlist.
  • Implemented validation for network configurations and integrated checks in the proxy dispatch logic.
  • Updated Cargo.toml and Cargo.lock to include the ipnet dependency for IP address handling.
  • Added tests for various network policy scenarios, ensuring correct behavior for allowed and denied hosts.
  • Enhanced documentation to reflect new network policy features and usage examples.

This commit enhances the security and configurability of the proxy by allowing users to define egress rules based on their requirements.

impl #8

- Introduced a new `NetworkPolicy` module to manage egress rules for forward-proxy traffic.
- Added `NetworkConfig` struct to define network modes: `public`, `no-network`, and `allowlist`.
- Implemented validation for network configurations and integrated checks in the proxy dispatch logic.
- Updated `Cargo.toml` and `Cargo.lock` to include the `ipnet` dependency for IP address handling.
- Added tests for various network policy scenarios, ensuring correct behavior for allowed and denied hosts.
- Enhanced documentation to reflect new network policy features and usage examples.

This commit enhances the security and configurability of the proxy by allowing users to define egress rules based on their requirements.
@reiase
reiase merged commit c06ef08 into main Jul 24, 2026
2 checks passed
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