Skip to content

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

Closed

Description

@yannickmonney

Problem

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:

  1. 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.
  2. Provider editor — API format select defaults to openai (provider-edit-panel.tsx:269) and only matters for exotic self-hosted setups — advanced-only.
  3. 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.
  4. 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
  • No behaviour change for existing saved configs

Related: #1949 (disabled-control tooltips), #2383 (settings primitives rebuild), #2368 (provider editor consolidation).

Activity

  1. added
    priority: low
    improvement
    service: platform
    on Jul 11, 2026
  2. yannickmonney commented on Jul 11, 2026

    @yannickmonney
    ContributorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    improvementpriority: lowservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions