Skip to content

Deploy docs: authenticated check must pick an enabled admin - #75

Merged
WittsEnd2 merged 1 commit into
mainfrom
docs-deploy-admin-check
Oct 27, 2026
Merged

WittsEnd2 merged 1 commit into
mainfrom
docs-deploy-admin-check

Conversation

@WittsEnd2

Copy link
Copy Markdown
Member

The post-deploy authenticated check in docs/PRODUCTION_DEPLOYMENT.md picked User.query.filter_by(is_admin=True).first(). On a host where the built-in admin account is disabled (as recommended), that returns the disabled account, which is correctly refused with 401, so the check reports a failed deploy that isn't one. It now selects an enabled admin.

Verified on the production deploy of c617a9e: the old snippet gave _diag 401 / list 401; the corrected snippet, run verbatim, gives _diag 200 / list 200. Docs only.

A disabled admin (e.g. the built-in admin account once disabled) is
correctly refused with 401, which made the documented post-deploy check
look like a failed deploy.

Co-Authored-By: Claude <noreply@anthropic.com>
@WittsEnd2
WittsEnd2 requested a review from a team as a code owner October 27, 2026 18:43
@WittsEnd2
WittsEnd2 merged commit 0319dd2 into main Oct 27, 2026
3 checks passed
@WittsEnd2
WittsEnd2 deleted the docs-deploy-admin-check branch October 27, 2026 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant