Managed deployment mode: GINI_HOSTED drives setup-status and gates operator-only web surfaces#548
Merged
Merged
Conversation
GET /api/setup/status gains managed (true iff GINI_HOSTED=1). The web reads it through useManagedMode() and, when managed, hides the sidebar tunnel menu and update row, hides the Settings provider sections, redirects /setup and /settings/add-provider home, and skips the proxy /setup gate. New /login page renders the managed sign-in card (same-tab relative /auth/google) when auth-mode is edge and redirects home on loopback. Self-hosted behavior is unchanged by construction: managed defaults false end-to-end and the existing suite runs unmodified. See ADR managed-deployment-mode.md. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GET /api/setup/statusnow reportsmanaged: truewhenGINI_HOSTED=1, giving clients one signal for platform-managed deployments (ADRmanaged-deployment-mode.md)./setupand/settings/add-provider(redirect home), and the proxy's setup-gate bounce. Gating is presentation only — authorization stays at the deployment's edge./loginpage for edge-fronted deployments: renders a Google sign-in card linking same-tab to the relative/auth/googlewhen the auth mode isedge; redirects home on loopback.manageddefaults false and a missing/failed status answer is treated as unmanaged.Test plan
bun run typecheck;bun run test— main 4803 pass / 0 fail, web 636 pass / 0 fail with coverage gateGINI_HOSTED=1hides the gated surfaces, skips the setup bounce, renders/login🤖 Generated with Claude Code