feat(web,api): opt-in sign-in for anonymous visitors #82

Merged
yuuhikaze merged 3 commits from web/optin-signin into master 2026-10-25 04:54:58 -05:00
Owner

The site becomes public-by-default: every visitor is the shared anonymous user, and signing in is initiated from the app instead of a forced Authelia redirect (#80).

  • api: new RGXR_ANONYMOUS_FALLBACK env — header-less requests resolve to the anonymous user instead of 401. Opt-in; the default (and dev-mode) behavior is unchanged, so forced-auth deployments keep their wall.
  • web: AUTH_SIGNIN_PATH / AUTH_SIGNOUT_PATH (runtime public env) drive a [ SIGN IN ] / [ SIGN OUT ] affordance in the top bar; unset → no sign-in UI at all. A /auth/signin endpoint completes the forward-auth round-trip by redirecting to a same-origin rd.
  • The matching ingress/chart change lives in gitops/charts (PR references this issue); it needs Authelia access_control rules from the cluster admin.

Closes #80.

The site becomes public-by-default: every visitor is the shared `anonymous` user, and signing in is initiated from the app instead of a forced Authelia redirect (#80). - **api**: new `RGXR_ANONYMOUS_FALLBACK` env — header-less requests resolve to the anonymous user instead of 401. Opt-in; the default (and dev-mode) behavior is unchanged, so forced-auth deployments keep their wall. - **web**: `AUTH_SIGNIN_PATH` / `AUTH_SIGNOUT_PATH` (runtime public env) drive a `[ SIGN IN ]` / `[ SIGN OUT ]` affordance in the top bar; unset → no sign-in UI at all. A `/auth/signin` endpoint completes the forward-auth round-trip by redirecting to a same-origin `rd`. - The matching ingress/chart change lives in gitops/charts (PR references this issue); it needs Authelia `access_control` rules from the cluster admin. Closes #80.
feat(web,api): opt-in sign-in for anonymous visitors
All checks were successful
ci / web (pull_request) Successful in 35s
ci / rust (pull_request) Successful in 2m22s
ci / image (oven/bun:1.4.2-debian=docker-image://git.yhkze.net/actions/bun:1.4.2-debian node:22-bookworm-slim=docker-image://git.yhkze.net/actions/node:22-bookworm-slim , web, web.Dockerfile, rgxr-web) (pull_request) Has been skipped
ci / image (rust:1-slim-bookworm=docker-image://git.yhkze.net/actions/rust:1-slim-bookworm debian:bookworm-slim=docker-image://git.yhkze.net/actions/debian:bookworm-slim , ., api.Dockerfile, rgxr-api) (pull_request) Has been skipped
179213e2bd
Issue #80: the site becomes public — every visitor is the shared
`anonymous` user — and signing in is initiated from the app's top bar
instead of a forced Authelia redirect.

api: RGXR_ANONYMOUS_FALLBACK resolves header-less requests to the
anonymous user instead of 401 (opt-in; dev-mode behavior unchanged,
default still 401 so forced-auth deployments keep their wall).

web: AUTH_SIGNIN_PATH / AUTH_SIGNOUT_PATH (dynamic public env) drive a
[ SIGN IN ] / [ SIGN OUT ] affordance in the top bar; unset means no
sign-in UI at all. /auth/signin completes the forward-auth dance by
redirecting to a same-origin `rd`. en/es i18n kept in parity.

Co-Authored-By: GLM (OpenCode) <dev@yhkze.net>
feat(web): replace top-bar sign-in with a power-on splash
All checks were successful
ci / web (pull_request) Successful in 1m12s
ci / rust (pull_request) Successful in 8m28s
ci / image (oven/bun:1.4.2-debian=docker-image://git.yhkze.net/actions/bun:1.4.2-debian node:22-bookworm-slim=docker-image://git.yhkze.net/actions/node:22-bookworm-slim , web, web.Dockerfile, rgxr-web) (pull_request) Has been skipped
ci / image (rust:1-slim-bookworm=docker-image://git.yhkze.net/actions/rust:1-slim-bookworm debian:bookworm-slim=docker-image://git.yhkze.net/actions/debian:bookworm-slim , ., api.Dockerfile, rgxr-api) (pull_request) Has been skipped
675cc94fca
Design amendment for #80: no auth UI in the top bar. Entry is now a CRT
boot splash (`Splash.svelte`) — logo glow-up (sensei text-shadow), a few
boot lines, then:

  [ ANONYMOUS ] dismisses and enters as the anonymous user
  [ SIGN IN ]   navigates AUTH_SIGNIN_PATH with rd=/ (SSO dance)
  [ SIGN UP ]   greyed out, "coming soon" caption beneath

- The logo art moves to a shared `Logo.svelte` used verbatim by the
  about page (pixel-identical) and the splash (glow + `rgxr_` cursor
  blink) so the letterforms can never drift.
- sessionStorage keeps the dismissal per tab only — no long-term
  persistence; a new tab boots (and can sign in) again.
- Signed-in visitors and sessions without AUTH_SIGNIN_PATH are never
  gated: no splash, or a ~0.9s boot animation that auto-continues.
- All animation is gated behind prefers-reduced-motion: reduced users
  get a static splash or skip straight in.
- Sign-out moved to a discreet SESSION section on the about page
  ([ SIGN OUT ] when authed + AUTH_SIGNOUT_PATH; [ SIGN IN ] there too
  so a dismissed splash is not a dead end). Top bar back to stock.
- i18n en/es kept in parity (splash.* + about.session).

Co-Authored-By: GLM (OpenCode) <dev@yhkze.net>
merge master into web/optin-signin
All checks were successful
ci / web (pull_request) Successful in 21s
ci / rust (pull_request) Successful in 3m1s
ci / image (oven/bun:1.4.2-debian=docker-image://git.yhkze.net/actions/bun:1.4.2-debian node:22-bookworm-slim=docker-image://git.yhkze.net/actions/node:22-bookworm-slim , web, web.Dockerfile, rgxr-web) (pull_request) Has been skipped
ci / image (rust:1-slim-bookworm=docker-image://git.yhkze.net/actions/rust:1-slim-bookworm debian:bookworm-slim=docker-image://git.yhkze.net/actions/debian:bookworm-slim , ., api.Dockerfile, rgxr-api) (pull_request) Has been skipped
0c6f152743
Resolve the i18n key conflict: the tutorial branch's
common.tutorial* keys coexist with the splash.* and about.session
keys; layout mounts both TutorialDock and Splash.

Co-Authored-By: GLM (OpenCode) <dev@yhkze.net>
yuuhikaze merged commit f4c8afecd4 into master 2026-10-25 04:54:58 -05:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
k8s-services/rgxr!82
No description provided.