gost

by QuenchWorks

Helm chartv0.0.2App 3.3.3MITVerified publisher

GOST (GO Simple Tunnel): a multi-protocol forward proxy and tunnel (HTTP, SOCKS5, relay, port forwarding over TCP, TLS, QUIC or WebSocket). Hardened by QuenchWorks: built from source, nonroot, CVE-gated, cosign-signed and pinned by digest.

About this chart

Quenchworks GOST

Hardened GOST (GO Simple Tunnel): a multi-protocol forward proxy and tunnel. The chart runs an authenticated HTTP proxy out of the box, and any other GOST service (SOCKS5, relay, port forwarding, Shadowsocks, over TCP, TLS, QUIC or WebSocket) can be added in extraServices.

The image is built from the upstream release tag as one static Go binary, runs as nonroot uid 1001, is CVE-gated (the build fails on any fixable CVE), and is cosign-signed and pinned by digest.

Install

helm install egress oci://ghcr.io/quenchworks/charts/gost
kubectl get secret egress-gost -o jsonpath='{.data.password}' | base64 -d; echo
# pods use it as http://gost:<password>@egress-gost:8080

A SOCKS5 proxy next to it:

extraServices:
  - name: socks
    addr: ":1080"
    handler: { type: socks5 }
    listener: { type: tcp }
extraPorts:
  - { name: socks, port: 1080, protocol: TCP }

Verify the image

cosign verify ghcr.io/quenchworks/images/gost \
  --certificate-identity-regexp 'https://github.com/quenchworks/.+' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

gh attestation verify oci://ghcr.io/quenchworks/images/gost@<digest> --owner quenchworks

Values

KeyDefaultDescription
image.repositoryghcr.io/quenchworks/images/gost
image.digest(CI-maintained)Pinned image digest; never a tag.
replicaCount1Stateless; scale freely.
proxy.enabled / port / typetrue / 8080 / httpThe built-in proxy (http or socks5).
proxy.auth.username / passwordgost / ""Proxy credentials; an empty password is generated and kept across upgrades.
extraServices[]More GOST services (entries of the config's services list).
extraPorts[]Ports for extraServices ({name, port, protocol}).
metrics.port9000Prometheus /metrics, also the probes' target.
tls.enabledfalseMake the built-in proxy an HTTPS proxy with the chart's certificate.
service.typeClusterIP
networkPolicy.enabled / allowExternaltrue / trueIngress to every GOST port.
resources50m / 64Mi requests, 1 CPU / 256Mi limits

The common QuenchWorks knobs (podLabels, nodeSelector, tolerations, extraEnvVars, extraVolumes, security-context overrides, probe overrides) work as in every QuenchWorks chart.

Design

  • The config is a Secret. gost.yaml carries the proxy password, so it is rendered into the chart's Secret, not a ConfigMap; a values change rolls the pods.
  • Probes read /metrics on the metrics service.
  • TLS wraps the built-in proxy listener (type: tls), so clients connect with --proxy https://... and verify the chart's CA.

GOST is MIT licensed.

Deploy gost with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has gost on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartgost is pinned at v0.0.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply