Files
proxy/nodejs
wmantly 3e5590288a Per-host HTTP basic auth (#57)
Adds opt-in basic auth per Host, following the existing per-host controls
pattern:
- Host fields basicauth_enabled / basicauth_realm / basicauth_users
  ({user: base64(sha1(pw))}). Credentials are parsed to plaintext by the pure
  host_features normalizer and hashed at the route layer (utils/basicauth.js),
  so plaintext never reaches Redis.
- ops/nginx_conf/hostfeatures.lua enforces it in access phase: verifies the
  Authorization header against base64(sha1(password)), fails closed with a 401
  WWW-Authenticate challenge.
- hosts.ejs gains an enable toggle, realm, and a username:password textarea
  (passwords never echoed back; blank keeps the current set).

Unit tests cover hashing (matches the htpasswd {SHA} vector), credential
parsing, and normalization. Note: the Lua path needs verification on a live
OpenResty box.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-11 11:47:08 -04:00
..
2025-12-31 20:32:21 -05:00
2025-12-31 15:57:33 -05:00
2026-07-11 11:47:08 -04:00
2026-07-11 11:47:08 -04:00
2026-07-11 11:47:08 -04:00
2026-07-11 11:47:08 -04:00
2026-07-11 11:47:08 -04:00
2026-07-10 00:13:40 -04:00
2026-07-11 11:47:08 -04:00