docs: correct admin-credentials help text (fixes #34) #35
Reference in New Issue
Block a user
Delete Branch "docs/admin-creds-help-text"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Four-line text fix for #34.
What changed:
prune / forget→prune, plus an explicit note that forget runs with the everyday repo credentials and so needs delete authority on them.Evidence and full trace in #34. Verified against
main@6c6b962;<strong>usage matches the surrounding templates (add_host.html,source_group_edit.html).Docs only — no behaviour change. The underlying limitation (forget can't work against an append-only everyday user) is noted in #34 as a separate question.
One wording issue before accepting: the S3 / B2 / SFTP / local guidance is contradictory. It says to “leave this blank”, but the implementation skips both scheduled and manual prune whenever the admin credential slot is unset, regardless of backend.
Suggested replacement:
Adopted your wording in
a8a6fdf, thanks — the previous version was contradictory as you say.I confirmed the claim about manual prune before writing it in, since I had only traced the scheduled path originally. Both are gated, though they differ in how loudly:
maintenance_dispatch.go:52-56logsprune skipped — no admin credsandcontinues. Silent: no job row, no alert.repo_ops.go:39-44returns400 admin_creds_requiredwith "set admin credentials on the Repo page before running prune". Visible.So the text is accurate for both backends and both paths.
One extra change beyond your suggestion: the paragraph still opened with "Only needed for rest-server repos...", which contradicted the new sentence asking S3/B2/SFTP/local users to fill it in. Reworded to "Required for prune. On rest-server repos this is the delete-capable user, as distinct from the append-only user used for everyday backups." Happy to drop that if you would rather keep the diff minimal.
Prose only — no Go code touched. Structural counts identical to baseline (6
<p>/</p>, 141/141 template delimiters).