gokapi: reproducible headless setup via seed config + --deployment-password

Gokapi v1.9.6 has no env-var setup and otherwise exposes a public /setup (admin-takeover risk).
Entrypoint seeds config.json on first boot (admin, this app's URL, local storage, no-encryption so
it restarts without a prompt) with password/salts cleared, then runs the documented
--deployment-password one-shot to set the felhom-generated admin password before serving — claims
admin at first boot, never exposes /setup. Seed pinned to v1.9.6 (ConfigVersion 21).
This commit is contained in:
2026-06-23 11:07:50 +02:00
parent 690c8dd0b8
commit 3ec67ef2f5
2 changed files with 26 additions and 3 deletions
+7
View File
@@ -32,6 +32,13 @@ deploy_fields:
locked_after_deploy: true
description: "Az alkalmazás aldomainje"
- env_var: GOKAPI_PASSWORD
label: "Admin jelszó"
type: password
generate: "password:24"
locked_after_deploy: true
description: "A Gokapi admin felhasználó (admin) jelszava — ezzel tudsz belépni a kezelőfelületre"
# --- App info (info page content) ---
app_info:
tagline: "Ideiglenes fájlmegosztás lejáró linkekkel"