test(e2e): use tenant auth for staging peer visibility #1797

Merged
hongming merged 1 commits from fix/pv-staging-tenant-auth into main 2026-05-24 10:39:08 +00:00
Owner

Follow-up to #1790 post-merge red. Managed runtime create responses do not expose auth_token, so the staging peer-visibility E2E now drives MCP through the real tenant admin/session bearer accepted by WorkspaceAuth instead of requiring a dev/test token or unavailable mint route.

Verification:

  • bash -n tests/e2e/test_peer_visibility_mcp_staging.sh
  • shellcheck --severity=warning -x -P tests/e2e/lib tests/e2e/test_peer_visibility_mcp_staging.sh
  • rg legacy test-token references in peer-visibility workflow/script
  • git diff --check
Follow-up to #1790 post-merge red. Managed runtime create responses do not expose auth_token, so the staging peer-visibility E2E now drives MCP through the real tenant admin/session bearer accepted by WorkspaceAuth instead of requiring a dev/test token or unavailable mint route. Verification: - bash -n tests/e2e/test_peer_visibility_mcp_staging.sh - shellcheck --severity=warning -x -P tests/e2e/lib tests/e2e/test_peer_visibility_mcp_staging.sh - rg legacy test-token references in peer-visibility workflow/script - git diff --check
hongming added 1 commit 2026-05-24 10:30:46 +00:00
test(e2e): use tenant auth for staging peer visibility
ci-arm64-advisory / fast-checks (pull_request) Waiting to run
Lint shellcheck (arm64 pilot) / shellcheck-arm64 (pilot) (pull_request) Successful in 8s
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 7s
CI / Detect changes (pull_request) Successful in 9s
CI / Python Lint & Test (pull_request) Successful in 6s
E2E Chat / detect-changes (pull_request) Successful in 12s
E2E API Smoke Test / detect-changes (pull_request) Successful in 13s
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (pull_request) Successful in 4s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 5s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 9s
Lint no tenant GITEA or GITHUB token write / Scan for repo-host token write into tenant workspace surface (pull_request) Successful in 6s
Lint forbidden tenant-env keys / Scan workspace_secrets writers for forbidden env keys (pull_request) Successful in 8s
gate-check-v3 / gate-check (pull_request) Successful in 5s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 5s
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (local) (pull_request) Successful in 52s
qa-review / approved (pull_request) Successful in 10s
security-review / approved (pull_request) Successful in 10s
sop-checklist / review-refire (pull_request) Has been skipped
sop-checklist / na-declarations (pull_request) N/A: (none)
sop-checklist / all-items-acked (pull_request) Successful in 9s
sop-tier-check / tier-check (pull_request) Successful in 9s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 1m6s
CI / Platform (Go) (pull_request) Successful in 2s
CI / Canvas (Next.js) (pull_request) Successful in 2s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 12s
E2E Chat / E2E Chat (pull_request) Successful in 3s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 5s
CI / all-required (pull_request) Successful in 6m13s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 2s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 1m19s
CI / Canvas Deploy Reminder (pull_request) Has been skipped
audit-force-merge / audit (pull_request) Successful in 46s
a1603fbc0d
core-qa approved these changes 2026-05-24 10:31:00 +00:00
core-qa left a comment
Member

[core-qa-agent] APPROVED — Fresh QA approval for HEAD a1603fbc0d: fixes staging peer-visibility token acquisition to use real tenant admin/session auth when managed runtime create omits auth_token; local syntax/shellcheck/legacy test-token grep/diff checks pass.

[core-qa-agent] APPROVED — Fresh QA approval for HEAD a1603fbc0da7af855ae291c93c43a896249d116e: fixes staging peer-visibility token acquisition to use real tenant admin/session auth when managed runtime create omits auth_token; local syntax/shellcheck/legacy test-token grep/diff checks pass.
core-security approved these changes 2026-05-24 10:31:02 +00:00
core-security left a comment
Member

[core-security-agent] APPROVED — Fresh security approval for HEAD a1603fbc0d: no dev/test token route is used; tenant admin/session bearer stays within WorkspaceAuth production boundary; no token values are logged intentionally.

[core-security-agent] APPROVED — Fresh security approval for HEAD a1603fbc0da7af855ae291c93c43a896249d116e: no dev/test token route is used; tenant admin/session bearer stays within WorkspaceAuth production boundary; no token values are logged intentionally.
hongming merged commit bf0f88b12d into main 2026-05-24 10:39:08 +00:00
Sign in to join this conversation.
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#1797