Learn AuthGuard/CarrierNode URLs from ProjectConfigurator's push
Adds the receiving end of ProjectConfigurator's core-services push (PUT /api/core-services/internal, X-Internal-Auth-gated) via the shared coreconfig package, so this service's AUTHGUARD_URL/CARRIERNODE_URL env vars become just the bootstrap/fallback value instead of the permanent source of truth. authclient.Client gains a concurrency-safe SetBaseURL so a later push retargets it in place with no restart. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
20e9461d46
commit
7c4a903f59
7 files changed
+323
-11
No files matched your search
@@ -18,6 +18,20 @@ COOKIE_SECURE=false
|
||||
# Only run without it for local development or a deployment you are certain
|
||||
# does not need access control.
|
||||
|
||||
# Base URL of a CarrierNode instance, for the generic per-project mount API
|
||||
# (not used by any feature here yet).
|
||||
# CARRIERNODE_URL=https://carrier.example.com
|
||||
|
||||
# Shared secret CarrierNode and ProjectConfigurator were also configured with,
|
||||
# sent/checked as X-Internal-Auth. AUTHGUARD_URL and CARRIERNODE_URL above are
|
||||
# only the bootstrap fallback: once this project is registered in
|
||||
# ProjectConfigurator's Projects workspace, it pushes both values here
|
||||
# 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.
|
||||
# INTERNAL_SERVICE_SECRET=
|
||||
|
||||
#################################################################
|
||||
# PostgreSQL configuration
|
||||
#################################################################
|
||||
|
||||
Reference in new issue
Block a user