Add AUTH_DISABLED opt-out for sharedauth's new pending mode
sharedauth.NewWithStore now treats an empty AUTHGUARD_URL as "pending" (still gated, failing closed) rather than permanently disabled, so a ProjectConfigurator-registered CollabTable no longer needs AUTHGUARD_URL set at all. Add AUTH_DISABLED (default false) to opt into the old fully-open behavior explicitly via sharedauth.Disabled(), and update both READMEs/.env.example to document the three resulting states. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a018f3da4c
commit
f723afa369
7 files changed
+84
-38
No files matched your search
+16
-6
@@ -11,12 +11,20 @@ COOKIE_SECURE=false
|
||||
# Authentication (AuthGuard)
|
||||
#################################################################
|
||||
# Base URL of the AuthGuard centralized identity service this app authenticates
|
||||
# through instead of a local user table.
|
||||
# through instead of a local user table. AuthGuard integration has three states:
|
||||
# - AUTHGUARD_URL set: used immediately.
|
||||
# - AUTHGUARD_URL unset, AUTH_DISABLED unset/false (the default): "pending"
|
||||
# -- auth stays fully enabled/gated, waiting for ProjectConfigurator to
|
||||
# push a live URL (see below), and fails closed on auth calls until one
|
||||
# arrives.
|
||||
# - AUTH_DISABLED=true: authentication is fully off (no login screen,
|
||||
# everything open).
|
||||
# AUTHGUARD_URL=https://auth.example.com
|
||||
# Leaving AUTHGUARD_URL unset does NOT fall back to any local account store --
|
||||
# it disables authentication entirely (no login screen, everything open).
|
||||
# Only run without it for local development or a deployment you are certain
|
||||
# does not need access control.
|
||||
# AUTH_DISABLED=true
|
||||
# Only set AUTH_DISABLED=true for local development or a deployment you are
|
||||
# certain does not need access control. Leaving AUTHGUARD_URL unset does NOT
|
||||
# do this -- it just leaves the service "pending" until ProjectConfigurator's
|
||||
# push arrives.
|
||||
|
||||
# Base URL of a CarrierNode instance, for the generic per-project mount API
|
||||
# (not used by any feature here yet).
|
||||
@@ -29,7 +37,9 @@ COOKIE_SECURE=false
|
||||
# automatically (PUT /api/core-services/internal) and keeps them current --
|
||||
# see Core/ProjectConfigurator/README.md's "Pushing core service info to
|
||||
# other projects". That push is itself authenticated with this secret, so it
|
||||
# still needs to be set even though AUTHGUARD_URL/CARRIERNODE_URL don't.
|
||||
# still needs to be set even though AUTHGUARD_URL/CARRIERNODE_URL don't. A
|
||||
# push never overrides AUTH_DISABLED=true; it only ever retargets an
|
||||
# already-enabled AuthGuard connection.
|
||||
# INTERNAL_SERVICE_SECRET=
|
||||
|
||||
#################################################################
|
||||
|
||||
Reference in new issue
Block a user