go-httpbin

by QuenchWorks

Helm chartv0.0.1App 2.26.0MITVerified publisher

go-httpbin: httpbin in one Go binary, an HTTP request and response test service (echo, status codes, delays, redirects, auth, streaming) with native TLS. Hardened by QuenchWorks: built from source, nonroot, CVE-gated, cosign-signed and pinned by digest.

About this chart

Quenchworks go-httpbin

Hardened go-httpbin, httpbin in one Go binary: an HTTP request and response test service with echo, status-code, delay, redirect, auth, cookie and streaming endpoints, for testing proxies, gateways, ingress controllers and HTTP clients. The image is built from source (pure Go, no module dependencies); it runs as uid 1001 and is CVE-gated at build, cosign-signed and pinned by digest.

Install

helm install httpbin oci://ghcr.io/quenchworks/charts/go-httpbin
kubectl port-forward svc/httpbin-go-httpbin 8080:8080
curl http://127.0.0.1:8080/get

Configuration

KeyDefaultWhat it does
replicaCount2Stateless replicas
maxBodySize0Largest accepted body in bytes (0: upstream's 1 MiB)
maxDuration""Longest /delay or /drip (empty: upstream's 10s)
allowedRedirectDomains[]Hosts /redirect-to may send clients to (empty: any)
fullVersionfalseShow the version on /version
tls.enabledfalseHTTPS on 8080 (existing Secret, cert-manager or a Helm-made CA)

Verify the image

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

Deploy go-httpbin with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has go-httpbin 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 chartgo-httpbin is pinned at v0.0.1 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