gotosocial

by QuenchWorks

Helm chartv0.0.1App 0.22.3AGPL-3.0-or-laterVerified publisher

GoToSocial: a lightweight ActivityPub server for the fediverse with a Mastodon-compatible API, an admin account generated at install, SQLite on a volume and native TLS. Hardened by QuenchWorks: built from source, nonroot, CVE-gated, cosign-signed and pinned by digest.

About this chart

Quenchworks GoToSocial

Hardened GoToSocial, a lightweight ActivityPub server for the fediverse: it federates with Mastodon and others and speaks the Mastodon client API, so existing apps work. The image is built from source (pure Go, OpenTelemetry left out with upstream's nootel tag); it runs as uid 1001 and is CVE-gated at build, cosign-signed and pinned by digest.

Install

helm install social oci://ghcr.io/quenchworks/charts/gotosocial --set host=social.example.com
kubectl get secret social-gotosocial -o jsonpath='{.data.password}' | base64 -d   # user admin

Put it behind an ingress that serves https://social.example.com. host cannot change once the instance has federated. The admin is created after the first start (GoToSocial's CLI needs the instance application the first start creates) and its password is reset from the Secret on every start.

Configuration

KeyDefaultWhat it does
hostrequiredThe instance's domain
accountDomain""user@domain handles on another host
admin.username, admin.emailadmin, [email protected]The admin account
admin.existingSecret""A Secret with key password
registrationOpenfalseLet anyone request an account (an admin approves)
trustedProxies[]Proxies whose X-Forwarded-For to trust
settings{}More GTS_* settings
persistence.size20GiSQLite and media
tls.enabledfalseHTTPS on 8080 (existing Secret, cert-manager or a Helm-made CA)

Verify the image

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

Deploy gotosocial with OpenTenant

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