Commit Graph
16 Commits
Author SHA1 Message Date
Gabriel20xx 439ef02496 Sync shared snapshot from 097442f
Docker / Docker Build & Push (push) Successful in 3m20s
2026-09-11 11:57:31 +02:00
Gabriel20xx a2a96f6a46 Sync shared snapshot from 9f78995
Docker / Docker Build & Push (push) Successful in 3m45s
2026-09-11 11:38:44 +02:00
Gabriel20xxandClaude Sonnet 5 7c4a903f59 Learn AuthGuard/CarrierNode URLs from ProjectConfigurator's push
Tests / Go backend (push) Successful in 42s
Docker / Docker Build & Push (push) Successful in 3m37s
Lint / Lint (push) Successful in 39s
Tests / Dashboard checks (push) Successful in 46s
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>
2026-09-10 11:56:17 +02:00
Gabriel20xx 20e9461d46 Sync shared snapshot from 3131937
Docker / Docker Build & Push (push) Successful in 4m1s
2026-09-09 22:25:06 +02:00
Gabriel20xx 5f0524ed3c Sync shared snapshot from c5c3ec3
Docker / Docker Build & Push (push) Successful in 5m6s
2026-09-07 16:00:55 +02:00
Gabriel20xx fdf415cc8b Sync shared snapshot from d1a02a8
Docker / Docker Build & Push (push) Successful in 3m15s
2026-09-07 15:08:58 +02:00
Gabriel20xx 81b62cdc26 Sync shared snapshot from 2e6baaa 2026-09-06 22:51:07 +02:00
Gabriel20xxandClaude Sonnet 5 bbf5d8bb05 Add self-info endpoint for ProjectConfigurator discovery, sync shared updates
Lint / Lint (push) Successful in 1m5s
Docker / Docker Build & Push (push) Failing after 2m1s
Tests / Dashboard checks (push) Successful in 49s
Tests / Go backend (push) Successful in 46s
GET /api/info reports name/tabs/mount types (empty - state lives in Postgres,
no shared file mounts) so ProjectConfigurator's Projects workspace can
register this instance from just a URL.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-04 15:07:02 +02:00
Gabriel20xxandClaude Sonnet 5 40578f5392 Auto-detect scheme for AUTHGUARD_URL instead of always assuming https
A bare host:port (e.g. a LAN AuthGuard reachable only over plain HTTP)
was always defaulting to https, so a TLS handshake against a plain-HTTP
AuthGuard failed at the transport level. Now a loopback, RFC1918/RFC4193
private, or link-local host (or a .local name) defaults to http instead;
an explicit http:// or https:// is still always honored as-is.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-03 21:48:08 +02:00
Gabriel20xx 695ff742d6 Sync shared snapshot from 7b5a4e6 2026-09-03 00:15:58 +02:00
Gabriel20xx 49e3c7d561 Sync shared snapshot from de9b599 2026-09-02 20:50:21 +02:00
Gabriel20xxandClaude Sonnet 5 51e0a4217b Don't show the create-account form once AuthGuard already has an account
Lint / Lint (push) Successful in 49s
Tests / Dashboard checks (push) Successful in 1m0s
Tests / Go backend (push) Successful in 46s
Docker / Docker Build & Push (push) Successful in 4m11s
Accounts are centralized in AuthGuard now, so this project's own "first
launch, create the admin account" flow needs to know whether AuthGuard
already has one - not just whether *this* project's local setup has been
claimed. A fresh instance pointed at an AuthGuard that already has a
superadmin (created via AuthGuard's own web UI, or a sibling project's
setup) was incorrectly still showing its own create-account form.

Both the status check and the setup/registration handler now also consult
AuthGuard's GET /api/setup-status (via the vendored authclient's new
SetupStatus method) before deciding: if AuthGuard already has an account,
show the login screen instead, and reject a setup attempt that reaches the
handler anyway (e.g. a stale page) the same way an already-claimed local
setup is rejected.

Also updates the vendored shared/backend/authclient to add PublicUser's
totp_enabled field (AuthGuard has reported it for a while; the client
just hadn't picked it up).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-02 10:32:55 +02:00
Gabriel20xx ec4bdd6ac7 Sync shared snapshot from db733a6
Docker / Docker Build & Push (push) Successful in 3m20s
2026-09-01 21:51:45 +02:00
Gabriel20xx fd32419371 Sync shared snapshot from 43d77dd
Docker / Docker Build & Push (push) Successful in 3m34s
2026-09-01 08:44:09 +02:00
Gabriel20xxandClaude Sonnet 5 9a6ec940f7 Migrate auth to AuthGuard, retiring local Postgres-backed accounts
Lint / Lint (push) Failing after 32s
Tests / Dashboard checks (push) Successful in 51s
Tests / Go backend (push) Successful in 54s
Docker / Docker Build & Push (push) Successful in 5m14s
Same pattern as GameStream (commit 6a46007), adapted for CollabTable
being genuinely multi-user (not single-admin): admin user management
(list/create/update/delete, role reassignment, superadmin protection)
is fully proxied to AuthGuard, which already enforces the same rules
CollabTable checked locally. Cookie forwarding, no local session token,
AUTHGUARD_URL optional (unset = auth fully disabled), transport
failures always surface as errAuthGuardUnavailable rather than ever
letting a request through - proven with live tests against a closed
socket.

CollabTable's device-sync API token feature (separate from browser
sessions) is deliberately left local-only regardless of AUTHGUARD_URL,
keyed by a new currentUserID helper (AuthGuard's id when enabled, the
shared placeholder id 0 when disabled) - a real, functional token
either way, not faked data.

Real bug found and fixed: api_tokens.user_id had a hard FK into the
local auth_users table, which would reject new tokens once accounts
stop being written locally. Dropped the now-invalid FK.

Known, accepted gap (same as GameStream): self-service profile editing
for non-admin accounts is lost, since AuthGuard only exposes an admin
endpoint, no self-edit. TOTP QR issuer branding now comes from AuthGuard
rather than CollabTable.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-01 01:34:48 +02:00
Gabriel20xx 06efc832ca Sync shared snapshot from df68167 2026-08-06 16:53:48 +02:00