Skip to content

Block API-key credentials and mislead-free model UI in shared deployment - #4

Merged
junwen94 merged 1 commit into
mainfrom
stfc-cloud-shared-ux-fixes
Sep 29, 2026
Merged

junwen94 merged 1 commit into
mainfrom
stfc-cloud-shared-ux-fixes

Conversation

@junwen94

Copy link
Copy Markdown
Collaborator

/api/credentials had no shared-deployment guard: any STFC-internal visitor to the now-public agent-gpu instance could POST a new provider key and silently override it for every subsequent user (or read configured-provider presence). Reject both routes like projects/conversations already do (design doc §19.2 precedent).

Frontend: Settings' API-key rows now show disabled with an explanatory message instead of a live, silently-rejected Save button; the model picker defaults to and can only select the local Qwen model in shared deployment, since resolve_model()'s env override serves it regardless of what's picked -- a selectable-looking Claude/OpenAI/Gemini option would misrepresent which model actually answers.

/api/credentials had no shared-deployment guard: any STFC-internal
visitor to the now-public agent-gpu instance could POST a new provider
key and silently override it for every subsequent user (or read
configured-provider presence). Reject both routes like
projects/conversations already do (design doc §19.2 precedent).

Frontend: Settings' API-key rows now show disabled with an explanatory
message instead of a live, silently-rejected Save button; the model
picker defaults to and can only select the local Qwen model in shared
deployment, since resolve_model()'s env override serves it regardless
of what's picked -- a selectable-looking Claude/OpenAI/Gemini option
would misrepresent which model actually answers.
@junwen94
junwen94 merged commit baa894d into main Sep 29, 2026
2 checks passed
@junwen94
junwen94 deleted the stfc-cloud-shared-ux-fixes branch September 29, 2026 09:29
junwen94 added a commit that referenced this pull request Sep 29, 2026
Resolves the selectedModel init conflict: shared deployment still
locks to the local Qwen model (stfc/main's fix), non-shared restores
whatever model was last picked instead of resetting to Claude (#4,
this branch's own fix) -- both apply, gated on SHARED_DEPLOYMENT.
junwen94 added a commit that referenced this pull request Oct 9, 2026
…mmits

The "#3/#4/#5/#6/#7/#9" comments and README's "see issue #1" referred to
junwen94/goldilocks-agent, which was deleted. On this repository the
same numbers are unrelated PRs (#1 is the Ollama-backend PR). The
comments now name the commits that fixed those bugs (cc5f0dc, c7bfc57),
whose messages name the original issues.

Refs #12
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