aboutsummaryrefslogtreecommitdiff
path: root/scripts/newos4-reply.py
diff options
context:
space:
mode:
authorWebX11 SysOp <darkmotox11@gmail.com>2026-11-05 23:49:03 +0100
committerWebX11 SysOp <darkmotox11@gmail.com>2026-11-05 23:49:03 +0100
commitd5dc2e1cb2f1463d001c3b10d1637298997f8559 (patch)
tree475dc77ce00c0effa4cff0d614d8fbe4e1f295e2 /scripts/newos4-reply.py
parentab7dcab65739b2791595d80012b207542a7b5171 (diff)
feat(auth): self-service git push tokens from the dashboard
GET/POST /api/auth/gitpush-token (+ /revoke) on auth-api: session-scoped, CSRF-gated, 3 mints per account per hour, bcrypt into the htpasswd, plaintext returned once and never stored, audit at /var/lib/webx11/git-push-audit.jsonl. No sudo or reload needed: nginx re-opens auth_basic_user_file per request, so a new line is live immediately — proved by a 500 whose error line was per request. Dashboard card 'Git push token' shows none/active, mints and reveals the remote once, revokes. Verified in a real browser: badge none -> mint -> active, remote shape checked, then revoked; htpasswd back to 0 bytes and the test session removed.
Diffstat (limited to 'scripts/newos4-reply.py')
0 files changed, 0 insertions, 0 deletions