dufs

by QuenchWorks

Helm chartv0.0.1App 0.47.0Apache-2.0 OR MITVerified publisher

dufs: a small file server with a web UI for upload, download, search, zip download and WebDAV, with an account generated at install. Hardened by QuenchWorks: built from source, nonroot, CVE-gated, cosign-signed and pinned by digest.

About this chart

Quenchworks dufs

Hardened dufs, a small file server with a web UI for browsing, uploading, searching and downloading folders as zip, plus WebDAV and resumable uploads. The image is one Rust binary built from source; 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/dufs --set persistence.size=50Gi
kubectl get secret files-dufs -o jsonpath='{.data.password}' | base64 -d

The chart creates one read-write account (auth.username) with a generated password that is kept across upgrades. Anonymous requests are refused. WebDAV clients use the same URL and account.

Configuration

KeyDefaultWhat it does
auth.enabled, auth.usernametrue, adminThe account (DUFS_AUTH, read-write on /)
auth.existingSecret""A Secret whose key auth holds your own DUFS_AUTH rules
allow.upload, allow.delete, allow.search, allow.archivetrueWhat signed-in users may do (DUFS_ALLOW_*)
persistence.size10GiThe volume dufs serves (/data)
tls.enabledfalsedufs serves HTTPS on port 5000 (existing Secret, cert-manager or a Helm-made CA)
settings{}More DUFS_* environment variables

Verify the image

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

Deploy dufs with OpenTenant

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