From b9aaccc830a4d3f7390625208dea7a11353c51e5 Mon Sep 17 00:00:00 2001 From: richjohnrambo Date: Thu, 17 Sep 2026 16:59:47 +0800 Subject: [PATCH] fix: update uid encryption key defaults --- docker/README.md | 2 +- docker/tinode/Dockerfile | 2 +- server/meetingim.conf | 2 +- server/tinode.conf | 2 +- tinode-db/tinode.conf | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docker/README.md b/docker/README.md index ab1d2d6..4c6aeef 100644 --- a/docker/README.md +++ b/docker/README.md @@ -224,7 +224,7 @@ You can specify the following environment variables when issuing `docker run` co | `TLS_DOMAIN_NAME`[^2] | string | | If non-empty, enables TLS (http**s**) and configures domain name of your container, e.g. `www.example.com`. In order for TLS to work you have to expose your HTTPS port to the Internet and correctly configure DNS. It WILL FAIL with `localhost` or unroutable IPs. | | `TNPG_AUTH_TOKEN` | string | | Tinode Push Gateway authentication token. | | `TNPG_ORG`[^2] | string | | Tinode Push Gateway organization name as registered at https://console.tinode.co | -| `UID_ENCRYPTION_KEY`[^2] | string | `la6YsO+bNX/+XIkOqc5Svw==` | base64-encoded 16 random bytes used as an encryption key for user IDs. | +| `UID_ENCRYPTION_KEY`[^2] | string | `dkXxWLwqUNRfYmdXRzOkZw==` | base64-encoded 16 random bytes used as an encryption key for user IDs. | | `UPGRADE_DB` | bool | `false` | Upgrade database schema, if necessary. | | `WAIT_FOR` | string | | If non-empty, waits for the specified database `host:port` to be available before starting the server. | diff --git a/docker/tinode/Dockerfile b/docker/tinode/Dockerfile index a6e9b41..f98f6aa 100644 --- a/docker/tinode/Dockerfile +++ b/docker/tinode/Dockerfile @@ -153,7 +153,7 @@ ENV API_KEY_SALT=T713/rYYgW7g4m3vG6zGRh7+FM1t0T8j13koXScOAj4= ENV AUTH_TOKEN_KEY=wfaY2RgF2S1OQI/ZlK+LSrp1KB2jwAdGAIHQ7JZn+Kc= # Key to initialize UID generator -ENV UID_ENCRYPTION_KEY=la6YsO+bNX/+XIkOqc5Svw== +ENV UID_ENCRYPTION_KEY=dkXxWLwqUNRfYmdXRzOkZw== # Disable TLS by default. ENV TLS_ENABLED=false diff --git a/server/meetingim.conf b/server/meetingim.conf index b3abbe8..0427332 100644 --- a/server/meetingim.conf +++ b/server/meetingim.conf @@ -76,7 +76,7 @@ }, "store_config": { - "uid_key": "la6YsO+bNX/+XIkOqc5Svw==", + "uid_key": "dkXxWLwqUNRfYmdXRzOkZw==", "max_results": 1024, "use_adapter": "mysql", "adapters": { diff --git a/server/tinode.conf b/server/tinode.conf index b3abbe8..0427332 100644 --- a/server/tinode.conf +++ b/server/tinode.conf @@ -76,7 +76,7 @@ }, "store_config": { - "uid_key": "la6YsO+bNX/+XIkOqc5Svw==", + "uid_key": "dkXxWLwqUNRfYmdXRzOkZw==", "max_results": 1024, "use_adapter": "mysql", "adapters": { diff --git a/tinode-db/tinode.conf b/tinode-db/tinode.conf index 19b895a..b16ee08 100644 --- a/tinode-db/tinode.conf +++ b/tinode-db/tinode.conf @@ -1,7 +1,7 @@ { "p2p_delete_enabled": true, "store_config": { - "uid_key": "la6YsO+bNX/+XIkOqc5Svw==", + "uid_key": "dkXxWLwqUNRfYmdXRzOkZw==", "use_adapter": "mysql", "adapters": { "postgres": {