Summary
CubeEgress nginx.conf listen IP not updated when using custom CUBE_SANDBOX_NETWORK_CIDR
Environment
- CubeSandbox version / commit: v0.5.0-amd64
- Host OS and kernel version: ubuntu24.04
Steps to Reproduce
Core issue:
- After installing with CUBE_SANDBOX_NETWORK_CIDR=10.100.0.0/18, the cube-dev gateway IP becomes 10.100.0.1.
- However, the nginx.conf inside the CubeEgress container still listens on 192.168.0.1:8080 and 192.168.0.1:8443.
- The TPROXY rules use --on-ip 10.100.0.1, which no longer matches the Nginx listen address, resulting in a configuration mismatch.
Suggestion:
During installation, install.sh should detect the configured CUBE_SANDBOX_NETWORK_CIDR and render the corresponding gateway IP into the CubeEgress nginx.conf. Alternatively, the gateway IP could be passed as an environment variable, with the container updating nginx.conf via sed (or a similar templating mechanism) during startup. This would ensure that the Nginx listen address always stays in sync with the configured sandbox network CIDR.
Summary
CubeEgress nginx.conf listen IP not updated when using custom CUBE_SANDBOX_NETWORK_CIDR
Environment
Steps to Reproduce
Core issue:
Suggestion:
During installation, install.sh should detect the configured CUBE_SANDBOX_NETWORK_CIDR and render the corresponding gateway IP into the CubeEgress nginx.conf. Alternatively, the gateway IP could be passed as an environment variable, with the container updating nginx.conf via sed (or a similar templating mechanism) during startup. This would ensure that the Nginx listen address always stays in sync with the configured sandbox network CIDR.