flatnotes

by QuenchWorks

Helm chartv0.0.2App 5.5.5MITVerified publisher

flatnotes: database-less Markdown notes on a plain folder of files with full-text search and tags, with password (or TOTP) auth and generated secrets. Hardened by QuenchWorks: built from source, CVE-gated, cosign-signed and pinned by digest.

About this chart

Quenchworks flatnotes

Hardened flatnotes: a database-less Markdown note app on a plain folder of files, with full-text search, tags, wikilinks and password or TOTP auth. The image builds the Vue client and the FastAPI server from source; 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 notes oci://ghcr.io/quenchworks/charts/flatnotes \
  --set ingress.enabled=true --set 'ingress.hosts[0].host=flatnotes.example.com' \
  --set 'ingress.tls[0].hosts[0]=flatnotes.example.com' --set 'ingress.tls[0].secretName=flatnotes-tls'
kubectl get secret notes-flatnotes -o jsonpath='{.data.password}' | base64 -d   # sign in as admin

Configuration

KeyDefaultWhat it does
auth.typepasswordpassword, totp, read_only or none
auth.username, auth.passwordadmin, generatedThe login, kept on upgrade with the generated session key (and TOTP key)
auth.existingSecret""A Secret with keys password, secret-key (and totp-key) instead
settings{}More FLATNOTES_* settings
persistence.size5GiThe notes and the search index (/data)
ingress.*offflatnotes has no TLS listener: terminate TLS at the Ingress

Verify the image

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

Deploy flatnotes with OpenTenant

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