Give Chevereto a 32-byte encryption key (#17)

Cottage's servers generate random32 secrets as 24 characters, so the
base64-encoded key decoded to 24 bytes and every page answered 500.
Use a hex32 secret, which is exactly 32 characters.
This commit is contained in:
michael authored and GitHub committed 2026-11-22 12:04:01 -05:00
1 parent eaeb20a806
commit e957e80cf4
1 file changed
+4 -4
+4 -4
View File
@@ -3,7 +3,7 @@ x-harbor:
slug: chevereto
name: Chevereto
description: Image and video hosting and sharing.
version: "4.5.9-c1"
version: "4.5.9-c2"
primary: { service: app, port: 8080 }
health_path: /login
default_resources: { cpu_millis: 1000, memory_mb: 1024, storage_mb: 20480 }
@@ -13,7 +13,7 @@ x-harbor:
images: { uid: 33, gid: 33, mode: "0750" }
db_data: { uid: 999, gid: 999, mode: "0700" }
parameters:
- { key: ENCRYPTION_KEY, label: Encryption key, type: string, secret: true, generate: random32 }
- { key: ENCRYPTION_KEY, label: Encryption key, type: string, secret: true, generate: hex32 }
- { key: DB_PASSWORD, label: Database password, type: string, secret: true, generate: random32 }
- { key: DB_ROOT_PASSWORD, label: Database root password, type: string, secret: true, generate: random32 }
- { key: ADMIN_EMAIL, label: Admin email (used on first start), type: string, default: "[email protected]" }
@@ -26,8 +26,8 @@ services:
user: "33:33"
depends_on:
db: { condition: service_healthy }
# Chevereto wants a base64-encoded 32-byte key, so encode the generated 32-character
# secret. Then install with the generated admin on first start (upstream's
# Chevereto wants a base64-encoded 32-byte key, so encode the generated 32 hex characters.
# Then install with the generated admin on first start (upstream's
# `make install` runs the same command), and hand over to the image's Apache.
command:
- sh