A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
fix(self-hosting): surface passkey relying party settings (#1645)
Hampus004fb0c7b064
diff --git a/deploy/self-hosting/.env.example b/deploy/self-hosting/.env.exampleindex fcfa329e0..4ce842b3a 100644--- a/deploy/self-hosting/.env.example+++ b/deploy/self-hosting/.env.example@@ -24,6 +24,13 @@ FLUXER_VAPID_PUBLIC_KEY=CHANGE_MEFLUXER_VAPID_PRIVATE_KEY=CHANGE_ME+# Passkeys follow FLUXER_DOMAIN by default. Set these only if browsers reach the+# instance on a different host, and note that changing FLUXER_PASSKEY_RP_ID+# invalidates every passkey already registered against the old value.+#FLUXER_PASSKEY_RP_ID=chat.example.com+#FLUXER_PASSKEY_RP_NAME=Fluxer+#FLUXER_PASSKEY_ADDITIONAL_ALLOWED_ORIGINS=https://chat.example.com+LIVEKIT_API_KEY=fluxerLIVEKIT_API_SECRET=CHANGE_MEdiff --git a/deploy/self-hosting/docker-compose.yml b/deploy/self-hosting/docker-compose.ymlindex 88d17594d..a72868fc9 100644--- a/deploy/self-hosting/docker-compose.yml+++ b/deploy/self-hosting/docker-compose.yml@@ -75,6 +75,9 @@ x-fluxer-env: &fluxer-envFLUXER_VAPID_PUBLIC_KEY: ${FLUXER_VAPID_PUBLIC_KEY:?set FLUXER_VAPID_PUBLIC_KEY in .env}FLUXER_VAPID_PRIVATE_KEY: ${FLUXER_VAPID_PRIVATE_KEY:?set FLUXER_VAPID_PRIVATE_KEY in .env}FLUXER_VAPID_EMAIL: ${FLUXER_VAPID_EMAIL:-admin@${FLUXER_DOMAIN}}+ FLUXER_PASSKEY_RP_ID: ${FLUXER_PASSKEY_RP_ID:-${FLUXER_DOMAIN}}+ FLUXER_PASSKEY_RP_NAME: ${FLUXER_PASSKEY_RP_NAME:-Fluxer}+ FLUXER_PASSKEY_ADDITIONAL_ALLOWED_ORIGINS: ${FLUXER_PASSKEY_ADDITIONAL_ALLOWED_ORIGINS:-${FLUXER_PUBLIC_SCHEME:-https}://${FLUXER_DOMAIN}}FLUXER_GATEWAY_RPC_AUTH_TOKEN: ${FLUXER_GATEWAY_RPC_AUTH_TOKEN:?set FLUXER_GATEWAY_RPC_AUTH_TOKEN in .env}FLUXER_MEDIA_PROXY_SECRET_KEY: ${FLUXER_MEDIA_PROXY_SECRET_KEY:?set FLUXER_MEDIA_PROXY_SECRET_KEY in .env}FLUXER_MEDIA_PROXY_UPLOAD_RELAY_SECRET_BASE64: ${FLUXER_MEDIA_PROXY_UPLOAD_RELAY_SECRET_BASE64:?set FLUXER_MEDIA_PROXY_UPLOAD_RELAY_SECRET_BASE64 in .env}diff --git a/fluxer_docs/docs/operator/get-started.md b/fluxer_docs/docs/operator/get-started.mdindex b2a4de764..18e04130d 100644--- a/fluxer_docs/docs/operator/get-started.md+++ b/fluxer_docs/docs/operator/get-started.md@@ -108,6 +108,10 @@ Keep these defaults unless you know you need to change them:- `LIVEKIT_API_KEY=fluxer`; the secret is `LIVEKIT_API_SECRET`.- `FLUXER_S3_ACCESS_KEY=fluxer`; the secret is `FLUXER_S3_SECRET_KEY`.- Email starts disabled. Enable SMTP later from `.env` and the admin dashboard.+- Passkeys follow `FLUXER_DOMAIN`. Override `FLUXER_PASSKEY_RP_ID`, `FLUXER_PASSKEY_RP_NAME`, and `FLUXER_PASSKEY_ADDITIONAL_ALLOWED_ORIGINS` only when browsers reach the instance on a different host.++!!! warning "Changing the passkey relying party invalidates passkeys"+ Browsers bind each passkey to the `FLUXER_PASSKEY_RP_ID` it was registered under. Changing that value later leaves every existing passkey unusable, so members have to enrol again.!!! warning "Keep `.env` private"`.env` contains every secret for the instance. Do not commit it, paste it into support tickets, or put it in screenshots.