[auth] Finalize prod auth path on hero_proxy and remove demo nginx basic-auth helper #186
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Hero OS currently ships two parallel auth paths in
hero_skills(after PR #129 + PR #130):basic_auth_setup— nginx + htpasswd (demo gate, tools/modules/installers/auth.nu)proxy_auth_setup—hero_proxy --auth-mode oauth/bearer/optional(canonical, tools/modules/installers/proxy_auth.nu)This split was deliberate so the demo (no Google OAuth client, no real users) could ship without OAuth setup. For prod we want exactly one path — the canonical
hero_proxyone — and the demo nginx helper to go away.Why this matters
hero_proxy, sohero_proxyfeatures (per-domain auth modes,X-Hero-Contextinjection, claims forwarding) are bypassed when basic-auth is in front.What needs to happen
proxy_auth_setupon a real TF Grid VM with TLS + DNS + a real OAuth provider (Google, or bearer for first iteration).hero_proxy domain add ... --auth-mode oauthactually serves the gate athttps://<hostname>/.X-Hero-Context+X-Hero-Claimsare injected on per-service requests.optionalmode behaviour matches what the demo wants (guest-first, login optional).proxy_auth_setup --mode optional(orbearer) — kill the nginx process there.basic_auth_setup+tools/modules/installers/auth.nufrom hero_skills once nothing uses it. Strip §12.1 from the runbook. Update the §0.1 Quick path.Acceptance criteria
proxy_auth_setupvalidated end-to-end on a TF Grid VM (TLS + auth gate working)hero_proxybasic_auth_setupremoved fromhero_skills(PR + commit)Related
Signed-off-by: mik-tf
Moved to hero_demo#37 — see lhumina_code/hero_demo#37