Skip to content

order: password-protect the /admin order list in nginx - #1669

Merged
jlcjak merged 1 commit into
mainfrom
backplane/admin-password
Nov 24, 2026
Merged

jlcjak merged 1 commit into
mainfrom
backplane/admin-password

Conversation

@jlcjak

@jlcjak jlcjak commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

The order list was reachable by anyone holding the admin token in a ?k= URL,
which is easy to paste into chat or browser history. nginx now asks for a
password first (user admin, a bcrypt hash in /etc/nginx/fab-admin.htpasswd)
and hands the app its token itself from a root-only include
(/etc/fab/nginx-admin.conf), so the person signs in with a password alone.
/admin gets its own rate limit (30/min per address, burst 20) so guesses
are slow. Without the password file every /admin request fails closed;
without the token include the app asks for ?k= as before.

Tested on the live server: no, wrong or token-only credentials get 401
(also for /admin/files, POST /admin/order, /%61dmin, //admin, /x/../admin);
the right password lists the orders; /v1/health and /terms unchanged; rapid
wrong guesses are cut off with 503.

🤖 Generated with Claude Code

The order list was reachable by anyone holding the admin token in a ?k= URL,
which is easy to paste into chat or browser history. nginx now asks for a
password first (user admin, a bcrypt hash in /etc/nginx/fab-admin.htpasswd)
and hands the app its token itself from a root-only include
(/etc/fab/nginx-admin.conf), so the person signs in with a password alone.
/admin gets its own rate limit (30/min per address, burst 20) so guesses
are slow. Without the password file every /admin request fails closed;
without the token include the app asks for ?k= as before.

Tested on the live server: no, wrong or token-only credentials get 401
(also for /admin/files, POST /admin/order, /%61dmin, //admin, /x/../admin);
the right password lists the orders; /v1/health and /terms unchanged; rapid
wrong guesses are cut off with 503.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jlcjak
jlcjak merged commit 07ba635 into main Nov 24, 2026
2 checks passed
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