fix(workspace): strip provider keys in platform-managed LLM mode #1922
Reference in New Issue
Block a user
Delete Branch "fix/platform-managed-provider-key-leak"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Tests
Security context
The actual upstream Kimi/Moonshot key must never be present in tenant workspace env. Platform-managed workspaces should receive only tenant-scoped proxy credentials; upstream vendor credentials stay in the control plane/proxy.
QA review passed. Focused handler tests pass for platform-managed LLM env behavior and the current-main MCP test import compile path.
Security review passed. Platform-managed workspaces now reject/scrub upstream LLM provider credential names and only receive platform proxy credentials. No new external dependencies or new request surface.
c5cb14833bto7098f4c584New commits pushed, approval review dismissed automatically according to repository settings
New commits pushed, approval review dismissed automatically according to repository settings
QA re-review passed after removing the unused helper. Focused handler tests pass locally.
Security re-review passed. The branch now removes the unused helper and preserves the platform-managed provider-key scrub/reject behavior.
Approved — platform-managed LLM mode now strips/rejects upstream provider credentials before injecting tenant-scoped proxy settings, and the updated tests cover the intended BYOK separation.
7098f4c584to6c7ac12631New commits pushed, approval review dismissed automatically according to repository settings
New commits pushed, approval review dismissed automatically according to repository settings
New commits pushed, approval review dismissed automatically according to repository settings
QA re-review passed after updating the MCP test expectation to current main behavior. Focused handler tests pass locally.
Security re-review passed. The provider-key scrub/reject behavior is unchanged; extra change only aligns a current-main MCP test expectation with the existing status arg.
Approved — current head preserves the platform-managed LLM provider-key stripping/rejection fix, with test updates aligned to the new delegation status argument and local module imports.