Skip to content

Managed deployment mode: GINI_HOSTED drives setup-status and gates operator-only web surfaces#548

Merged
Sheldenshi merged 1 commit into
mainfrom
feat/managed-mode
Jul 8, 2026
Merged

Managed deployment mode: GINI_HOSTED drives setup-status and gates operator-only web surfaces#548
Sheldenshi merged 1 commit into
mainfrom
feat/managed-mode

Conversation

@Sheldenshi

Copy link
Copy Markdown
Collaborator

Summary

  • GET /api/setup/status now reports managed: true when GINI_HOSTED=1, giving clients one signal for platform-managed deployments (ADR managed-deployment-mode.md).
  • Web gates operator-only surfaces on it: tunnel menu and self-update row (sidebar), provider/model sections (settings), /setup and /settings/add-provider (redirect home), and the proxy's setup-gate bounce. Gating is presentation only — authorization stays at the deployment's edge.
  • New /login page for edge-fronted deployments: renders a Google sign-in card linking same-tab to the relative /auth/google when the auth mode is edge; redirects home on loopback.
  • Self-hosted behavior is unchanged by construction: managed defaults 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 gate
  • Browser-verified both modes (fresh instances): unmanaged shows tunnel/providers/setup flow exactly as before; GINI_HOSTED=1 hides the gated surfaces, skips the setup bounce, renders /login

🤖 Generated with Claude Code

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>
@Sheldenshi
Sheldenshi merged commit 104680b into main Jul 8, 2026
8 checks passed
@Sheldenshi
Sheldenshi deleted the feat/managed-mode branch July 8, 2026 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant