-
Notifications
You must be signed in to change notification settings - Fork 31.1k
fix(core): Prevent unauthorised workflow termination #16405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cubic found 3 issues across 5 files. Review them in cubic.dev
React with 👍 or 👎 to teach cubic. Tag @cubic-dev-ai
to give specific feedback.
packages/cli/src/executions/__tests__/executions.controller.test.ts
Outdated
Show resolved
Hide resolved
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments
✅ All Cypress E2E specs passed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
|
1 similar comment
|
✅ All Cypress E2E specs passed |
Summary
This PR addresses a security vulnerability that allowed authenticated users to terminate any workflow execution, regardless of ownership. Previously, the 'stop workflow' endpoint improperly used a direct parameter reference, bypassing user-scoped authorisation. This fix ensures that only the workflow owner can stop an execution.
Related Linear tickets, Github issues, and Community forum posts
Fixes: PAY-2960
Review / Merge checklist
[ ] Docs updated or follow-up ticket created.release/backport
(if the PR is an urgent fix that needs to be backported)