gokapi

by QuenchWorks

Helm chartv0.0.2App 2.2.4AGPL-3.0Verified publisher

Gokapi: lightweight self-hosted file sharing with expiring links, download limits and optional end-to-end encryption, on SQLite, with the admin configured at install. Hardened by QuenchWorks: built from source, nonroot, CVE-gated, cosign-signed and pinned by digest.

About this chart

Quenchworks Gokapi

Hardened Gokapi, lightweight self-hosted file sharing: upload a file, share a link that expires after a time or a number of downloads, with optional end-to-end encryption and S3 storage. The image is one static Go binary built from source with upstream's generated web assets; it runs as uid 1001 and is CVE-gated at build, cosign-signed and pinned by digest.

Install

helm install files oci://ghcr.io/quenchworks/charts/gokapi --set publicUrl=https://files.example.com
kubectl get secret files-gokapi -o jsonpath='{.data.password}' | base64 -d

Gokapi has no unattended setup: its first start serves a web wizard, without a login, until it is submitted. A setup Job submits it right after the install (SQLite on the data volume, username/password login for admin.username, local storage, no end-to-end encryption), and is a no-op on later upgrades. Keep the Service private until that Job has completed. To pick other options (OAuth, S3, encryption), set admin.create: false and finish the wizard at /setup.

Configuration

KeyDefaultWhat it does
publicUrlhttp://localhost:53842The address download links are built from
admin.create, admin.usernametrue, adminThe setup Job and the admin it configures
settings{}More GOKAPI_* env (GOKAPI_MAX_FILESIZE, GOKAPI_TRUSTED_PROXIES)
persistence.size10GiData volume: database, uploads and config.json

Verify the image

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

Deploy gokapi with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has gokapi 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 chartgokapi 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