Files
omar 4499a6ee37
CI / validate (push) Successful in 38s
CI / gateway-contract (push) Successful in 2m1s
CI / images (deploy/Dockerfile.web, web) (push) Successful in 50s
CI / images (deploy/Dockerfile.checker, checker) (push) Successful in 1m4s
CI / images (deploy/Dockerfile.api, api) (push) Successful in 1m14s
CI / images (deploy/Dockerfile.http-gateway, http-gateway) (push) Successful in 1m11s
Add authenticated SOCKS5 exports and a live public web switch
Use the same pinned upstream, node credentials and routing restrictions for both proxy listeners.
Apply the admin-selected destination policy on each new request and verify exports with independent proxy clients.
2026-11-27 06:43:27 +03:00
..

Gateway release image smoke test

On the isolated Linux test host (local Docker Engine 28+ with CPU and memory limits), make the exact release image and a PostgreSQL 16 image available locally. Supply native Linux executable builds of the pinned reference Xray and the imagefixture helper. The script does not build or pull either image or binary.

# Build the helper separately for the test host's architecture (amd64 shown).
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /tmp/gateway-imagefixture ./tests/gateway/imagefixture

bash tests/gateway/image-smoke.sh "$RELEASE_IMAGE" "$POSTGRES16_IMAGE" "$XRAY_BIN" /tmp/gateway-imagefixture

The smoke test starts the release entrypoint with its declared nonroot user. It creates a randomly selected, isolated Docker bridge, publishes no host ports, and uses only temporary PostgreSQL data and synthesized credentials. The bridge uses non-special IPv4 addresses to exercise the release address policy unchanged; those addresses have no bridge address on the host and are never external destinations. The helper independently verifies catalog exports and authorization, HTTP and HTTPS routes against an origin that checks the peer, and restart, loss, and recovery of service. Container logs are disabled and no response bodies or credentials are printed.

The run is bounded to four minutes plus cleanup. Cleanup is scoped to this run's unique Docker label and private fixture directory. This verifies the actual image on a synthetic network, not an external canary or authorization to enable a production inventory.