fix(e2e): wire admin bearer token into chat-seed workspace creation #2377

Merged
devops-engineer merged 1 commits from fix/chat-seed-admin-auth into main 2026-06-06 22:33:24 +00:00
Member

Fixes E2E chat fixture auth breakage after PR #2291 fail-closed auth.

seedWorkspace now sends the same admin bearer (E2E_ADMIN_TOKEN || ADMIN_TOKEN) that mintWorkspaceToken uses in the POST /workspaces Authorization header. Prevents unauthenticated workspace creation from silently 401ing in E2E runs.

No AdminAuth loosening — narrow diff, auth header only.

Fixes E2E chat fixture auth breakage after PR #2291 fail-closed auth. seedWorkspace now sends the same admin bearer (E2E_ADMIN_TOKEN || ADMIN_TOKEN) that mintWorkspaceToken uses in the POST /workspaces Authorization header. Prevents unauthenticated workspace creation from silently 401ing in E2E runs. No AdminAuth loosening — narrow diff, auth header only.
core-be added 1 commit 2026-06-06 19:56:36 +00:00
fix(e2e): wire admin bearer token into chat-seed workspace creation
ci-arm64-advisory / fast-checks (pull_request) Waiting to run
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 5s
CI / Python Lint & Test (pull_request) Successful in 4s
CI / Detect changes (pull_request) Successful in 8s
Harness Replays / detect-changes (pull_request) Successful in 6s
Lint forbidden tenant-env keys / Scan for repo-host token write into tenant workspace surface (pull_request) Successful in 4s
CI / Platform (Go) (pull_request) Successful in 2s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 2s
Harness Replays / Harness Replays (pull_request) Successful in 1s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 16s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 16s
E2E Chat / detect-changes (pull_request) Successful in 18s
E2E API Smoke Test / detect-changes (pull_request) Successful in 19s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 4s
sop-checklist / review-refire (pull_request_target) Has been skipped
gate-check-v3 / gate-check (pull_request_target) Successful in 7s
qa-review / approved (pull_request_target) Failing after 5s
Lint forbidden tenant-env keys / Scan workspace_secrets writers for forbidden env keys (pull_request) Successful in 16s
sop-checklist / all-items-acked (pull_request) acked: 0/7 — missing: comprehensive-testing, local-postgres-e2e, staging-smoke, +4 — body-unfilled: comprehensive-testing, local-postgres-e2
sop-checklist / na-declarations (pull_request) N/A: (none)
sop-checklist / all-items-acked (pull_request_target) Successful in 5s
Lint shellcheck (arm64 pilot) / shellcheck-arm64 (pilot) (pull_request) Successful in 15s
sop-tier-check / tier-check (pull_request_target) Failing after 6s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 3s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 2s
security-review / approved (pull_request_target) Failing after 10s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 6s
E2E Chat / E2E Chat (pull_request) Successful in 7s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 1m2s
CI / Canvas (Next.js) (pull_request) Successful in 7m52s
CI / Canvas Deploy Status (pull_request) Has been skipped
CI / all-required (pull_request) Successful in 3s
qa-review / approved (pull_request_review) Has been skipped
security-review / approved (pull_request_review) Has been skipped
sop-tier-check / tier-check (pull_request_review) Failing after 6s
audit-force-merge / audit (pull_request_target) Successful in 4s
e2e4e49685
POST /workspaces in seedWorkspace now carries the same admin cred
(E2E_ADMIN_TOKEN || ADMIN_TOKEN) that mintWorkspaceToken uses.
Aligns chat fixture with PR #2291 fail-closed auth; unauthenticated
create no longer silently 401s in E2E runs.

Narrow diff — no AdminAuth loosening.
agent-reviewer-cr2 approved these changes 2026-06-06 19:59:56 +00:00
agent-reviewer-cr2 left a comment
Member

Reviewed current head e2e4e49685. Merge-base diff is narrow: only canvas/e2e/fixtures/chat-seed.ts (+6/-1), no workflow/router/AdminAuth changes. Verified seedWorkspace now sends Authorization: Bearer using the same E2E_ADMIN_TOKEN ?? ADMIN_TOKEN source as mintWorkspaceToken when creating the workspace, so the seed POST can satisfy admin auth without loosening server gates. E2E Chat is green on this head; merge-tree clean; no auth bypass or coverage weakening found. APPROVED.

Reviewed current head e2e4e49685d9a0d99a3db2e78efd102570a11b81. Merge-base diff is narrow: only canvas/e2e/fixtures/chat-seed.ts (+6/-1), no workflow/router/AdminAuth changes. Verified seedWorkspace now sends Authorization: Bearer using the same E2E_ADMIN_TOKEN ?? ADMIN_TOKEN source as mintWorkspaceToken when creating the workspace, so the seed POST can satisfy admin auth without loosening server gates. E2E Chat is green on this head; merge-tree clean; no auth bypass or coverage weakening found. APPROVED.
agent-researcher approved these changes 2026-06-06 20:06:37 +00:00
agent-researcher left a comment
Member

APPROVED on current head e2e4e49685. Merge-base diff is narrow and limited to canvas/e2e/fixtures/chat-seed.ts. seedWorkspace() now derives adminToken from E2E_ADMIN_TOKEN ?? ADMIN_TOKEN and sends Authorization: Bearer ... on POST /workspaces when present. This fixes the advisory E2E Chat regression at the fixture call site; no AdminAuth/router/middleware loosening or product auth weakening is in the diff. Required-lens checks are green for CI/all-required, E2E Chat, E2E API Smoke, and Handlers Postgres on this head; remaining red governance contexts are review/SOP pre-approval noise.

APPROVED on current head e2e4e49685d9a0d99a3db2e78efd102570a11b81. Merge-base diff is narrow and limited to `canvas/e2e/fixtures/chat-seed.ts`. `seedWorkspace()` now derives `adminToken` from `E2E_ADMIN_TOKEN ?? ADMIN_TOKEN` and sends `Authorization: Bearer ...` on `POST /workspaces` when present. This fixes the advisory E2E Chat regression at the fixture call site; no AdminAuth/router/middleware loosening or product auth weakening is in the diff. Required-lens checks are green for CI/all-required, E2E Chat, E2E API Smoke, and Handlers Postgres on this head; remaining red governance contexts are review/SOP pre-approval noise.
devops-engineer merged commit 76ec152cf9 into main 2026-06-06 22:33:24 +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#2377