Give Firefly III and HomeBox keys of the length they need (#20)

Cottage's servers generate random32 secrets as 24 characters. Firefly
III's Laravel APP_KEY must be exactly 32 and HomeBox's API key pepper at
least 32 bytes, so both failed to start. Use hex32 instead.
This commit is contained in:
michael authored and GitHub committed 2026-11-22 12:50:28 -05:00
1 parent 098ac78a6c
commit b1d3b7e189
2 files changed
+8 -5

No files matched your search

+3 -2
View File
@@ -3,7 +3,7 @@ x-harbor:
slug: firefly-iii
name: Firefly III
description: Personal finance manager with budgets, rules and reports.
version: "6.7.9-c1"
version: "6.7.9-c2"
primary: { service: app, port: 8080 }
health_path: /health
default_resources: { cpu_millis: 500, memory_mb: 768, storage_mb: 5120 }
@@ -13,7 +13,8 @@ x-harbor:
upload: { uid: 33, gid: 33, mode: "0750" }
db_data: { uid: 70, gid: 70, mode: "0700" }
parameters:
- { key: APP_KEY, label: Encryption key, type: string, secret: true, generate: random32 }
# Laravel's AES-256 key: exactly 32 characters.
- { key: APP_KEY, label: Encryption key, type: string, secret: true, generate: hex32 }
- { key: DB_PASSWORD, label: Database password, type: string, secret: true, generate: random32 }
- { key: TZ, label: Time zone, type: string, default: "UTC", editable: true }
+5 -3
View File
@@ -3,7 +3,7 @@ x-harbor:
slug: homebox
name: HomeBox
description: Home inventory for everything you own.
version: "0.27.1-c1"
version: "0.27.1-c2"
primary: { service: app, port: 7745 }
health_path: /api/v1/status
default_resources: { cpu_millis: 250, memory_mb: 256, storage_mb: 10240 }
@@ -11,7 +11,9 @@ x-harbor:
volumes:
data: { uid: 65532, gid: 65532, mode: "0750" }
parameters:
- { key: API_KEY_PEPPER, label: API key secret, type: string, secret: true, generate: random32 }
# HomeBox needs at least 32 bytes; two hex32 values make 64.
- { key: API_KEY_PEPPER_A, label: API key secret (part 1), type: string, secret: true, generate: hex32 }
- { key: API_KEY_PEPPER_B, label: API key secret (part 2), type: string, secret: true, generate: hex32 }
# HomeBox can't create its first account with registration off, so it starts on.
- { key: SIGNUPS_ALLOWED, label: Allow anyone to sign up, type: bool, default: "true", editable: true }
@@ -28,7 +30,7 @@ services:
HBOX_OPTIONS_GITHUB_RELEASE_CHECK: "false"
HBOX_OPTIONS_ALLOW_ANALYTICS: "false"
HBOX_WEB_MAX_UPLOAD_SIZE: "50"
HBOX_AUTH_API_KEY_PEPPER: ${API_KEY_PEPPER}
HBOX_AUTH_API_KEY_PEPPER: ${API_KEY_PEPPER_A}${API_KEY_PEPPER_B}
volumes: [ "data:/data" ]
volumes: