chhoto-url

by QuenchWorks

Helm chartv0.0.4App 7.11.8MITVerified publisher

Chhoto URL: a small self-hosted URL shortener with a web UI, API keys, expiring links and OIDC login, with the password and API key generated at install. Hardened by QuenchWorks: built from source, CVE-gated, cosign-signed and pinned by digest.

About this chart

Quenchworks Chhoto URL

Hardened Chhoto URL: a small self-hosted URL shortener with a web UI, API keys, expiring links, hit counts and OIDC login, on SQLite. The image is built from source with cargo auditable (so scanners see every crate); it runs as uid 1001 on a read-only root filesystem and is CVE-gated at build, cosign-signed and pinned by digest.

Install

helm install links oci://ghcr.io/quenchworks/charts/chhoto-url --set siteUrl=https://s.example.com \
  --set ingress.enabled=true --set 'ingress.hosts[0].host=s.example.com' \
  --set 'ingress.tls[0].hosts[0]=s.example.com' --set 'ingress.tls[0].secretName=s-example-tls'
kubectl get secret links-chhoto-url -o jsonpath='{.data.password}' | base64 -d

Configuration

KeyDefaultWhat it does
auth.password, auth.apiKeygeneratedWeb UI password and API key (64 random bytes, base64url), kept on upgrade
auth.existingSecret""A Secret with keys password and api-key instead
siteUrl""Public base URL for short links
settings{}More CHHOTO_* settings (slug style, public mode, OIDC, custom title)
persistence.size1GiThe SQLite database (/var/lib/chhoto-url)
ingress.*offChhoto URL has no TLS listener: terminate TLS at the Ingress

Verify the image

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

Deploy chhoto-url with OpenTenant

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