Skip to content

hardening: Use network_mode: service:gateway to avoid sudo and elevated capabilities in agent container #105

@jakub-bochenski

Description

@jakub-bochenski

Related to SANDBOX-23

See here: https://github.com/VirtusLab/sandcat/blob/4b92dc4/compose-all.yml#L14
points to wg-client service here: https://github.com/VirtusLab/sandcat/blob/4b92dc4d94074282c0214438dd6a375fef183280/compose-proxy.yml#L4-L22

Wireguard is no needed for this, we can just have an alpine etc. container configure the routing and have the agent container use the same network namespace.

This will remove the need for sudo and NET capabilities on the agent container.
It will also make the agent image smaller which is also a good thing

Metadata

Metadata

Assignees

Labels

stage:needs-planProposal direction looks good and a planning doc is requestedtype:featureNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions