You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improvement: settings progressive disclosure — demote PKCE and provider API-format to Advanced, infer base URL for catalog providers, scope Data residency to instance operators #2653
A settings-surface audit for "what can the app decide for the user" found four spots where an advanced or derivable field is presented to everyone at top level:
Provider editor — Base URL is a required-looking free-form input even for catalog providers whose endpoint is fixed and known (provider-edit-panel.tsx:251-256). The catalog (builtin-configs/providers/*) knows the endpoint; asking invites typos.
Provider editor — API format select defaults to openai (provider-edit-panel.tsx:269) and only matters for exotic self-hosted setups — advanced-only.
Enterprise SSO — PKCE toggle has one sensible value (true, the default at enterprise-sso-form.tsx:150, rendered at :790-805); showing it invites turning off a security feature.
Data residency (/settings/deployment) exposes instance-level Postgres + S3 configuration (host/port/database/user/sslmode, region/endpoint/buckets — deployment-settings.tsx:51-70) with Save / Apply & restart to any org-settings admin. On multi-org or managed deployments this is operator infrastructure, not org administration.
The surface already does progressive disclosure well elsewhere (OAuth2 endpoints hidden unless protocol matches, SP URLs computed read-only, favicon derived from logo) — these are the stragglers.
Proposed change
Prefill + lock (with an "override" affordance) Base URL for catalog providers; move API format and PKCE behind an Advanced disclosure; gate the deployment page on an instance-operator capability (read-only notice for org admins, as SETUP.md's smoke table already describes for non-operators).
Acceptance criteria
Adding a catalog provider never requires typing its base URL
API format and PKCE live under Advanced; defaults unchanged
Data residency page editable only for instance operators; org admins get the read-only notice
Another instance for this "demote/scope operator-only fields" theme, found in the governance editors sweep: the Login policy editor (Governance → Security & Monitoring) exposes trustedProxies (reverse-proxy topology — getting it wrong weakens IP-based lockout) and backoffSchedule (the lockout curve) to every org admin — app/features/settings/governance/components/login-policy-editor.tsx:232-254. Neither is knowable by a typical org admin; both belong behind an Advanced disclosure or scoped to instance operators, same as the PKCE toggle / provider API-format / data-residency items already listed here.
Activity
yannickmonney commentedon Jul 11, 2026
Another instance for this "demote/scope operator-only fields" theme, found in the governance editors sweep: the Login policy editor (Governance → Security & Monitoring) exposes
trustedProxies(reverse-proxy topology — getting it wrong weakens IP-based lockout) andbackoffSchedule(the lockout curve) to every org admin —app/features/settings/governance/components/login-policy-editor.tsx:232-254. Neither is knowable by a typical org admin; both belong behind an Advanced disclosure or scoped to instance operators, same as the PKCE toggle / provider API-format / data-residency items already listed here.