Self-hosted Firefox Sync: Mozilla's syncstorage-rs with its tokenserver and its databases (MariaDB, MySQL or PostgreSQL, or your own server), and optionally an admin UI, nightly backups and self-hosted Mozilla accounts. Firefox stores its Sync data, encrypted by Firefox, on your cluster. The images are those of porelli/firefox-sync, which also runs with docker compose and Podman.
The full guide: Install with Helm.
Kubernetes 1.27 or later, Helm 4 (tested; Helm 3.16 or later is known to work, not tested in CI).
helm install ffs oci://ghcr.io/porelli/firefox-sync/charts/firefox-sync --version <chart version> \ -f my-values.yaml --wait --timeout 10m
<chart version>: the newest, which helm show chart oci://ghcr.io/porelli/firefox-sync/charts/firefox-sync prints (version:).
syncDomain: https://sync.example.com maxUsers: "5" ingress: enabled: true className: nginx tls: enabled: true secretName: sync-example-com-tls annotations: cert-manager.io/cluster-issuer: letsencrypt-prod nginx.ingress.kubernetes.io/proxy-body-size: "10m"
Then set up Firefox: Set up Firefox.
Every value is described in values.yaml. The main ones:
| Value | Default | |
|---|---|---|
syncDomain |
required | the public URL of the Sync server |
maxUsers |
"1" |
how many accounts can use it: the forms |
allowedAccounts |
"" (off) |
invite-only Sync, the account ids that can start to sync: SYNC_ALLOWED_ACCOUNTS |
database.backend |
mariadb |
mariadb, mysql or postgres |
database.bundled |
true |
false: your own server, database.external.* and existingSecret |
existingSecret |
a Secret of your own; required with your own server and with helm template or GitOps rendering |
|
ingress.* |
off | the Sync server's Ingress |
admin.enabled, admin.* |
off | the admin UI; admin.ingress.* for its own Ingress, behind your own sign-in |
backup.enabled, backup.* |
off | a CronJob dumping the databases into a PVC |
smtp.* |
none | the SMTP server of the admin UI's alerts and of the accounts' emails |
fxa.enabled, fxa.* |
off | the self-hosted Mozilla accounts, on four hosts of their own: Self-hosted accounts |
- The generated Secret (
<release>-firefox-sync) is read back on upgrades and kept onhelm uninstall, like the database volumes. Keep a copy off the cluster. - One Sync server replica, and one of each accounts server: the migrations run in their init containers.
- With the accounts, keep a copy of their signing keys off the cluster: the NOTES give the command.
- Release names have a maximum length, which depends on the components: see Limits. Longer names are refused at render time.