fix(docs): Master-Passwort interaktiv hashen, nicht auf der Kommandozeile
Meine Anleitung schrieb `htpasswd -bnBC 12 "" PASSWORT` — und lieferte 401, obwohl Hash und Konfiguration nachweislich stimmten. Die Ursache liegt vor dem Hashen: Das Passwort steht dort ungeschuetzt in einer Kommandozeile, und die Shell fasst es an. `ge$heim` wird zu `ge`, `ge heim` zu `geheim`; gehasht wird etwas anderes als das, was man spaeter eintippt. Richtig ist `htpasswd -nBC 12 ''` ohne -b: Es fragt zweimal nach, das Passwort geht nie durch eine Shell und landet nicht in der History. Dazu eine direkte Probe (htpasswd -v gegen den gespeicherten Hash), weil der Fehler wie ein Konfigurationsfehler aussieht — alles Pruefbare stimmt, nur der Vergleich schlaegt fehl. Vier Stellen: deploy-backend.sh, beide READMEs, MasterPasswordProperties. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
0ed757a80a
commit
78901793f0
@@ -292,6 +292,10 @@ Configuration lives in the git-ignored `.env` (template `.env.example`):
|
||||
- **The master password never leaves the server.** It goes into
|
||||
`<BACKEND_DIR>/env` (mode 600), which the deploy creates empty on the first
|
||||
run. Until a hash is in it, the document list stays locked — deliberately.
|
||||
Generate it **interactively** (`htpasswd -nBC 12 ''`, no `-b`): a password on
|
||||
a command line lands in the shell history, and the shell mangles it on the
|
||||
way — `ge$heim` becomes `ge`. What gets hashed is then not what you type
|
||||
later, and the server answers 401 while everything looks right.
|
||||
- **Memory is the scarce resource on that host**, not CPU. The JVM flags are
|
||||
measured, not guessed: `-Xmx192m -Xms48m` plus heap free ratios lands at
|
||||
~174 MB RSS, where the defaults take 291 MB. See
|
||||
|
||||
Reference in New Issue
Block a user