fix(core): add admin workspace token mint route #1633

Merged
hongming merged 1 commits from fix/admin-workspace-token-mint into main 2026-05-21 05:18:52 +00:00
Owner

Summary

  • add a production-safe AdminAuth route to mint a workspace bearer token for managed SaaS workspaces
  • update staging peer-visibility E2E to use that route before falling back to the dev-only test-token endpoint
  • add sqlmock coverage for success, missing workspace, rate limit, and issue failure

Verification

  • go test ./internal/handlers -run 'TestAdminWorkspaceTokenHandler' (workspace-server)
  • go test ./internal/router -run 'Test.*Token|TestAdmin' (workspace-server)
  • bash -n tests/e2e/test_peer_visibility_mcp_staging.sh
  • shellcheck --severity=warning tests/e2e/test_peer_visibility_mcp_staging.sh
  • python3 -m pytest tests/test_lint_workflow_yaml.py tests/test_lint_required_no_paths.py -q
## Summary - add a production-safe AdminAuth route to mint a workspace bearer token for managed SaaS workspaces - update staging peer-visibility E2E to use that route before falling back to the dev-only test-token endpoint - add sqlmock coverage for success, missing workspace, rate limit, and issue failure ## Verification - go test ./internal/handlers -run 'TestAdminWorkspaceTokenHandler' (workspace-server) - go test ./internal/router -run 'Test.*Token|TestAdmin' (workspace-server) - bash -n tests/e2e/test_peer_visibility_mcp_staging.sh - shellcheck --severity=warning tests/e2e/test_peer_visibility_mcp_staging.sh - python3 -m pytest tests/test_lint_workflow_yaml.py tests/test_lint_required_no_paths.py -q
hongming added 1 commit 2026-05-21 05:03:07 +00:00
fix(core): add admin workspace token mint route
CI / Canvas Deploy Reminder (pull_request) Blocked by required conditions
E2E API Smoke Test / E2E API Smoke Test (pull_request) Blocked by required conditions
E2E Chat / E2E Chat (pull_request) Blocked by required conditions
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Blocked by required conditions
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Blocked by required conditions
Harness Replays / Harness Replays (pull_request) Blocked by required conditions
Lint shellcheck (arm64 pilot) / shellcheck-arm64 (pilot) (pull_request) Waiting to run
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 15s
CI / Detect changes (pull_request) Successful in 16s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 18s
CI / Python Lint & Test (pull_request) Successful in 7s
E2E API Smoke Test / detect-changes (pull_request) Successful in 23s
E2E Chat / detect-changes (pull_request) Successful in 16s
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (local) (pull_request) Successful in 1m7s
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (pull_request) Has been skipped
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 8s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 4s
Harness Replays / detect-changes (pull_request) Successful in 5s
Lint forbidden tenant-env keys / Scan workspace_secrets writers for forbidden env keys (pull_request) Successful in 10s
Lint no tenant GITEA or GITHUB token write / Scan for repo-host token write into tenant workspace surface (pull_request) Successful in 7s
CI / Platform (Go) (pull_request) Successful in 7m10s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 5s
gate-check-v3 / gate-check (pull_request) Successful in 8s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 1m14s
qa-review / approved (pull_request) Failing after 17s
security-review / approved (pull_request) Failing after 16s
sop-checklist / review-refire (pull_request) Has been skipped
CI / Canvas (Next.js) (pull_request) Successful in 8m27s
sop-checklist / na-declarations (pull_request) N/A: (none)
sop-checklist / all-items-acked (pull_request) Successful in 51s
sop-tier-check / tier-check (pull_request) Successful in 46s
CI / all-required (pull_request) Successful in 6m45s
audit-force-merge / audit (pull_request) Successful in 5s
07457ad556
hongming merged commit 660fc20124 into main 2026-05-21 05:18:52 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#1633