fix(e2e): stop injecting direct vendor keys into platform-managed peer-visibility workspaces (main-red #2298) #2304

Closed
core-be wants to merge 1 commits from fix/main-red-peer-visibility-platform-managed-secrets into main
Member

Summary

Fixes the E2E Peer Visibility staging failure on main (main-red #2298) by removing direct LLM vendor key injection from the peer-visibility provisioning script.

Problem

PR #2291 blocks direct vendor key writes (ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN, MINIMAX_API_KEY, etc.) for platform-managed workspaces. The peer-visibility staging E2E was injecting these keys during workspace provisioning, causing 422 errors on workspace create.

Changes

  • Switched peer-visibility E2E to E2E_LLM_PATH=platform (empty secrets, CP LLM proxy).
  • Removed E2E_MODEL_SLUG: MiniMax-M2 invalid slug override.
  • Pinned platform model to moonshot/kimi-k2.6 via harness default.

Closes main-red #2298

SOP Checklist

  • Comprehensive testing performed
  • Local-postgres E2E run
  • Staging-smoke verified or pending
  • Root-cause not symptom
  • Five-Axis review walked
  • No backwards-compat shim / dead code added
  • Memory/saved-feedback consulted
## Summary Fixes the E2E Peer Visibility staging failure on main (main-red #2298) by removing direct LLM vendor key injection from the peer-visibility provisioning script. ## Problem PR #2291 blocks direct vendor key writes (`ANTHROPIC_API_KEY`, `ANTHROPIC_AUTH_TOKEN`, `MINIMAX_API_KEY`, etc.) for platform-managed workspaces. The peer-visibility staging E2E was injecting these keys during workspace provisioning, causing 422 errors on workspace create. ## Changes - Switched peer-visibility E2E to `E2E_LLM_PATH=platform` (empty secrets, CP LLM proxy). - Removed `E2E_MODEL_SLUG: MiniMax-M2` invalid slug override. - Pinned platform model to `moonshot/kimi-k2.6` via harness default. Closes main-red #2298 ## SOP Checklist - [ ] Comprehensive testing performed - [ ] Local-postgres E2E run - [ ] Staging-smoke verified or pending - [ ] Root-cause not symptom - [ ] Five-Axis review walked - [ ] No backwards-compat shim / dead code added - [ ] Memory/saved-feedback consulted
core-be added 1 commit 2026-06-05 11:58:08 +00:00
fix(e2e): stop injecting direct vendor keys into platform-managed peer-visibility workspaces (main-red #2298)
ci-arm64-advisory / fast-checks (pull_request) Waiting to run
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 6s
Lint shellcheck (arm64 pilot) / shellcheck-arm64 (pilot) (pull_request) Successful in 2s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 7s
Lint forbidden tenant-env keys / Scan workspace_secrets writers for forbidden env keys (pull_request) Successful in 7s
CI / Python Lint & Test (pull_request) Successful in 10s
CI / Detect changes (pull_request) Successful in 12s
Lint forbidden tenant-env keys / Scan for repo-host token write into tenant workspace surface (pull_request) Successful in 9s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 6s
E2E Chat / detect-changes (pull_request) Successful in 15s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 3s
qa-review / approved (pull_request_target) Failing after 7s
CI / Platform (Go) (pull_request) Successful in 2s
CI / Canvas (Next.js) (pull_request) Successful in 2s
E2E Chat / E2E Chat (pull_request) Successful in 3s
CI / Canvas Deploy Status (pull_request) Has been skipped
CI / Shellcheck (E2E scripts) (pull_request) Successful in 13s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 30s
E2E API Smoke Test / detect-changes (pull_request) Successful in 32s
security-review / approved (pull_request_target) Failing after 27s
CI / all-required (pull_request) Successful in 5s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 7s
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (local) (pull_request) Successful in 1m17s
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (pull_request) Successful in 6s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 1m22s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 1m32s
sop-checklist / review-refire (pull_request_target) Has been skipped
sop-checklist / all-items-acked (pull_request) [info tier:low] acked: 0/7 — missing: comprehensive-testing, local-postgres-e2e, staging-smoke, +4 — body-unfilled: memory-consulted
sop-checklist / na-declarations (pull_request) N/A: (none)
sop-checklist / all-items-acked (pull_request_target) Successful in 4s
gate-check-v3 / gate-check (pull_request_target) Successful in 5s
sop-tier-check / tier-check (pull_request_target) Failing after 5s
audit-force-merge / audit (pull_request_target) Has been skipped
6a765e258c
PR #2291 blocks direct vendor key writes (ANTHROPIC_API_KEY,
ANTHROPIC_AUTH_TOKEN, MINIMAX_API_KEY, etc.) for platform-managed
workspaces. The peer-visibility staging E2E already uses platform-managed
models (anthropic/claude-sonnet-4-6, moonshot/kimi-k2.6) and does not need
tenant keys — Molecule owns billing via the CP LLM proxy.

Removes the MiniMax → Anthropic → OpenAI secrets-injection chain from
test_peer_visibility_mcp_staging.sh and keeps SECRETS_JSON empty,
matching test_staging_full_saas.sh's E2E_LLM_PATH=platform branch.
This prevents the workspace-create 400:
  "direct vendor key writes are blocked for platform-managed workspaces"
that was causing the staging E2E Peer Visibility gate to fail on every
main push.

Local peer-visibility E2E is unaffected — it uses its own provisioning
path and already passes.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
core-be requested review from agent-reviewer 2026-06-05 11:58:29 +00:00
core-be added the tier:low label 2026-06-05 13:00:42 +00:00
core-be requested review from core-qa 2026-06-05 13:18:04 +00:00
core-be requested review from core-security 2026-06-05 13:18:05 +00:00
core-be requested review from hongming 2026-06-05 13:18:05 +00:00
core-be requested review from fullstack-engineer 2026-06-05 13:18:05 +00:00
core-be closed this pull request 2026-06-05 14:26:44 +00:00
Author
Member

Closing as superseded by PR #2306, which includes this commit (6a765e25) and adds the additional lint + MiniMax-M2 slug fixes needed to fully resolve main-red #2305.

All changes from this PR are preserved in #2306; no code is lost.

Closing as superseded by PR #2306, which includes this commit (6a765e25) and adds the additional lint + MiniMax-M2 slug fixes needed to fully resolve main-red #2305. All changes from this PR are preserved in #2306; no code is lost.
Some optional checks failed
ci-arm64-advisory / fast-checks (pull_request) Waiting to run
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 6s
Lint shellcheck (arm64 pilot) / shellcheck-arm64 (pilot) (pull_request) Successful in 2s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 7s
Lint forbidden tenant-env keys / Scan workspace_secrets writers for forbidden env keys (pull_request) Successful in 7s
CI / Python Lint & Test (pull_request) Successful in 10s
CI / Detect changes (pull_request) Successful in 12s
Lint forbidden tenant-env keys / Scan for repo-host token write into tenant workspace surface (pull_request) Successful in 9s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 6s
E2E Chat / detect-changes (pull_request) Successful in 15s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 3s
Required
Details
qa-review / approved (pull_request_target) Failing after 7s
CI / Platform (Go) (pull_request) Successful in 2s
CI / Canvas (Next.js) (pull_request) Successful in 2s
E2E Chat / E2E Chat (pull_request) Successful in 3s
CI / Canvas Deploy Status (pull_request) Has been skipped
CI / Shellcheck (E2E scripts) (pull_request) Successful in 13s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 30s
E2E API Smoke Test / detect-changes (pull_request) Successful in 32s
security-review / approved (pull_request_target) Failing after 27s
CI / all-required (pull_request) Successful in 5s
Required
Details
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 7s
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (local) (pull_request) Successful in 1m17s
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (pull_request) Successful in 6s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 1m22s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 1m32s
Required
Details
sop-checklist / review-refire (pull_request_target) Has been skipped
sop-checklist / all-items-acked (pull_request) [info tier:low] acked: 0/7 — missing: comprehensive-testing, local-postgres-e2e, staging-smoke, +4 — body-unfilled: memory-consulted
sop-checklist / na-declarations (pull_request) N/A: (none)
sop-checklist / all-items-acked (pull_request_target) Successful in 4s
gate-check-v3 / gate-check (pull_request_target) Successful in 5s
sop-tier-check / tier-check (pull_request_target) Failing after 5s
audit-force-merge / audit (pull_request_target) Has been skipped

Pull request closed

Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#2304