Skip to content

Commit 00b8fba

Browse files
docs: add key encryption docs (supabase#28369)
* docs: add key encryption docs * chore: bump docker-compose version number for logflare * Prettier * Update apps/docs/docs/ref/self-hosting-analytics/introduction.mdx Co-authored-by: Chris Chinchilla <[email protected]> --------- Co-authored-by: Chris Chinchilla <[email protected]>
1 parent f512a4b commit 00b8fba

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

apps/docs/docs/ref/self-hosting-analytics/introduction.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,14 @@ The current Postgres Ingestion backend isn't optimized for production usage. We
173173

174174
**We recommend using the BigQuery backend for production environments as it offers better scaling and querying/debugging experiences.**
175175

176+
### Rotate Encryption Keys Regularly
177+
178+
The Logflare server uses the a Base64 encryption key set on the `LOGFLARE_DB_ENCRYPTION_KEY` environment variable to perform encryption at rest for sensitive database columns.
179+
180+
To perform encryption key rotation, move the retired key to the `LOGFLARE_DB_ENCRYPTION_KEY_RETIRED` environment variable, and replace the `LOGFLARE_DB_ENCRYPTION_KEY` environement variable with the new key. Perform a server restart and check `info` logs for the migration to be detected and performed.
181+
182+
Once migration is complete, you can safely remove the retired key.
183+
176184
</RefSubLayout.Details>
177185

178186
<RefSubLayout.Examples>

docker/docker-compose.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,6 @@ services:
383383
LOGFLARE_PRIVATE_ACCESS_TOKEN: ${LOGFLARE_PRIVATE_ACCESS_TOKEN}
384384
LOGFLARE_SINGLE_TENANT: true
385385
LOGFLARE_SUPABASE_MODE: true
386-
LOGFLARE_MIN_CLUSTER_SIZE: 1
387386

388387
# Comment variables to use Big Query backend for analytics
389388
POSTGRES_BACKEND_URL: postgresql://supabase_admin:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/_supabase

0 commit comments

Comments
 (0)