A screenshot of /srv/board/.env showed the whole diagnosis at once: no
CONTENT_TOKEN line, so the app falls back to the admin token and Gitea answers
403 — and two live OAuth credentials for a login flow deleted two phases ago,
sitting there because the deploy never touches .env and never will.
So it names them. The check is the mirror of the one already there: settings in
.env that .env.example no longer documents, found with `comm -13` over the same
two sorted lists. A commented-out line in the example counts as undocumented,
which is how a setting is retired — comment it there, and the next deploy says
it is still on the server. Nothing is rewritten; deleting a line from a file
holding secrets is a decision, not a cleanup.
The "missing" warning also grew consequences. It has been listing CONTENT_TOKEN
as one bare name among several since it was added, which is easy to scroll past;
it now reads "CONTENT_TOKEN — el editor no puede publicar nada en el sitio",
sharing one note_for helper with the empty-value warning below it so the two
cannot drift.
And .env.example stops describing a job GITEA_ADMIN_TOKEN no longer has. It says
what is true now: members have no accounts on the git server, nothing in the
members area calls it, and it CANNOT publish, because Gitea's scopes are per
category and `admin` does not contain `repository`. That sentence is the one
that was missing while the editor sat unable to commit and looking configured.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NizVpJ2dwzCbjCrTLCjeHn