🐛 Fix MSW quantum passthrough to match multi-segment paths#13962
Conversation
Change '/api/quantum/*' to '/api/quantum/**' so MSW v2 correctly passes through multi-segment routes like /api/quantum/qasm/listfiles and /api/quantum/auth/status instead of swallowing them. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: kubestellar-bot <kubestellar-bot@kubestellar.io>
✅ Deploy Preview for kubestellarconsole ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
👋 Hey @kubestellar-hive[bot] — thanks for opening this PR!
This is an automated message. |
There was a problem hiding this comment.
✅ Security review: PASS
MSW handler glob fix from * → ** is correct for MSW v2 semantics. Passthrough handlers are security-neutral (they delegate to the actual backend/Netlify function which has its own allowlist validation). Also adds explicit /api/result/histogram passthrough which aligns with the quantum-proxy ALLOWED_PATHS.
|
Thank you for your contribution! Your PR has been merged. Check out what's new:
Stay connected: Slack #kubestellar-dev | Multi-Cluster Survey |
✅ Post-Merge Verification: passedCommit: |
|
Post-merge build verification passed ✅ Both Go and frontend builds compiled successfully against merge commit |
Fixes #13959
Change
'/api/quantum/*'to'/api/quantum/**'so MSW v2 correctly passes through multi-segment routes like/api/quantum/qasm/listfilesand/api/quantum/auth/statusinstead of swallowing them in demo mode.In MSW v2,
*only matches a single path segment. The double-star**is required for multi-segment matching.