feat(web): add optional platform OIDC authentication - #332
Conversation
ef52aa1 to
ee58838
Compare
Fastify 5 defaults requestIdHeader to false, so the server already ignored client-supplied request IDs. But that was inherited behaviour, not a stated one: the option has changed default across Fastify majors, and a truthy value resolves to the `request-id` header, letting a client pick its own request ID and forge or collide log correlation. Declare it explicitly so a future default flip cannot silently re-enable header trust. The existing regression test could not have caught this. It spoofed only `x-request-id`, which Fastify never consults, so it passed identically with header trust on or off. Add the `request-id` case that actually exercises the boundary — verified to fail when requestIdHeader is flipped to true. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017BwhzZvevbVajuq1nx2FnQ
ee58838 to
234c25a
Compare
|
Rebased onto
Added commit:
|
Summary
VARLENS_AUTH_MODE=platform; unset or local mode retains the existing local loginacr/amrand freshness enforcement, and entitlement revalidationWhy
Hosted web deployments need to delegate sign-in to an external identity provider such as Keycloak while keeping VarLens itself single-instance and unaware of platform tenancy.
Compatibility and scope
VARLENS_PG_URLValidation
make cimake web-ciagainst a fresh PostgreSQL databasebuildAppintegration testmake agent-check