Give Tymeslot a 64-byte session secret (#18)
Phoenix needs secret_key_base to be at least 64 bytes. Two random32 parts made 64 under the old local test, but Cottage's servers generate 24 characters each, so only 48. Add a third part (72).
This commit is contained in:
1 parent
e957e80cf4
commit
3a324ca42f
1 file changed
+4
-2
@@ -4,7 +4,7 @@ x-harbor:
|
||||
slug: tymeslot
|
||||
name: Tymeslot
|
||||
description: Open-source meeting scheduling.
|
||||
version: "1.48.1-c1"
|
||||
version: "1.48.1-c2"
|
||||
primary: { service: app, port: 4000 }
|
||||
health_path: /healthcheck
|
||||
default_resources: { cpu_millis: 500, memory_mb: 1024, storage_mb: 5120 }
|
||||
@@ -18,6 +18,7 @@ x-harbor:
|
||||
- { key: ADMIN_PASSWORD, label: Admin password, type: string, secret: true, generate: random16 }
|
||||
- { key: SECRET_KEY_BASE_A, label: Session signing secret (part 1), type: string, secret: true, generate: random32 }
|
||||
- { key: SECRET_KEY_BASE_B, label: Session signing secret (part 2), type: string, secret: true, generate: random32 }
|
||||
- { key: SECRET_KEY_BASE_C, label: Session signing secret (part 3), type: string, secret: true, generate: random32 }
|
||||
# Tymeslot reads this key as base64 of at least 32 bytes: two hex strings joined give 48.
|
||||
- { key: DATA_KEY_A, label: Data encryption key (part 1), type: string, secret: true, generate: hex32 }
|
||||
- { key: DATA_KEY_B, label: Data encryption key (part 2), type: string, secret: true, generate: hex32 }
|
||||
@@ -63,7 +64,8 @@ services:
|
||||
URL_SCHEME: https
|
||||
PORT: "4000"
|
||||
LISTEN_IP: 0.0.0.0
|
||||
SECRET_KEY_BASE: ${SECRET_KEY_BASE_A}${SECRET_KEY_BASE_B}
|
||||
# Phoenix needs at least 64 bytes; each generated part is 24 characters.
|
||||
SECRET_KEY_BASE: ${SECRET_KEY_BASE_A}${SECRET_KEY_BASE_B}${SECRET_KEY_BASE_C}
|
||||
DATA_ENCRYPTION_KEY: ${DATA_KEY_A}${DATA_KEY_B}
|
||||
DATABASE_HOST: db
|
||||
DATABASE_PORT: "5432"
|
||||
|
||||
Reference in new issue
Block a user