feat(rgxr): opt-in sign-in mode and web frontend deployment #7
Loading…
Reference in a new issue
No description provided.
Delete branch "rgxr/optin-auth"
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?
Implements the cluster side of yuuhikaze/rgxr#80 (app PR: k8s-services/rgxr#82): the rgxr site becomes public-by-default — every visitor is the shared
anonymoususer — and signing in is initiated from the app (a CRT boot splash on entry; no forced Authelia redirect, no auth in the top bar).Ingress change (review focus)
auth.modepicks what unauthenticated requests get; theauthelia@filemiddleware itself stays on every route in both modes (it is what injectsRemote-*):forced(default, prod):one_factorfor the whole domain — every route redirects to the SSO portal. Unchanged.optin(values-test.yaml):one_factoronly for/auth,bypassfor the rest of the domain. Unauthenticated visitors are served asanonymous; the app splash's[ SIGN IN ]option hits/auth/signin?rd=/, whose route triggers the SSO dance and returns to the app once authenticated. Signed-in sessions keep injectingRemote-*on normal requests.Action needed from the cluster admin: the opt-in mode only takes effect together with matching
access_controlrules for the rgxr host inmodules/features/authelia.nix— otherwise the whole domain keeps redirecting:(path rule first; the middleware reference is unchanged.)
Also in this chart
rgxr-webDeployment + Service, gated behindweb.enabled(test only — prod keeps API-only), so the web routes and theAUTH_*env have somewhere to land. Kargo promotion forghcr.io/yuuhikaze/rgxr-webis a follow-up in gitops/apps.RGXR_ANONYMOUS_FALLBACK=truein optin mode (header-less requests resolve toanonymousinstead of 401).AUTH_SIGNIN_PATH(+AUTH_SIGNOUT_PATHonceauth.signoutPathis set — left empty pending confirmation of the Authelia portal logout URL).helm lintandhelm templateverified for both modes; the default render is byte-identical to today (only the/apiroute).