Use GitLab API for cloud agent MRs #432
No reviewers
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:open_issues
agents
agent:security_audit
agent:verify
area
timecurve
arena
arena-v2
audit
block:feature_review
block:security
bug
contracts
design
devops
docs
documentation
enhancement
epic
feature
frontend
indexer
low priority
megaeth
operations
ops
performance
QA
qa checklist
referrals
removal
security
smart-contracts
tech-debt
testing
time-arena
timecurve
visual-qa
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
code/yieldomega!432
Loading…
Reference in a new issue
No description provided.
Delete branch "cursor/cloud-agent-glab-api-mrs-2526"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
glab api/scripts/glab-mr-create.shfor GitLab MRs instead of Cursor platform/GitHub PR tooling.scripts/glab-mr-create.shso it creates MRs withglab api projects/:id/merge_requestsinstead of high-levelglab mr create, avoiding thePlasticDigits/yieldomega.git404 observed on Cloud VMs.Related issues
Related to the cloud-agent MR creation workflow discovered after !430.
Layers touched
scripts/,.cursor/, CI)Verification
bash -n scripts/glab-mr-create.sh && bash scripts/glab-mr-create.sh --helpgit diff -- AGENTS.md scripts/glab-mr-create.shbash scripts/glab-mr-create.sh --title "Use GitLab API for cloud agent MRs" --description ...Notes for reviewers
This intentionally avoids the Cursor platform PR tool and high-level
glab mr create; the helper now posts directly to GitLab REST usingGITLAB_TOKEN.mentioned in commit
4ba06e1be4Security review
Commit reviewed:
6af591594258853bf077343152c16916f55b24acScope:
scripts/glab-mr-create.sh(switch fromglab mr createtoglab api projects/:id/merge_requests) andAGENTS.mddocumentation updates for Cloud Agent MR workflow.Outcome:
FINDINGS: 0medium+Summary
Reviewed the MR diff for injection, authz bypass, secret leakage, SSRF, and unsafe input handling on the new GitLab REST API path.
source_branch,target_branch,title,description,labels) are passed viaglab api -f(--raw-field), which sends literal strings and does not interpret@fileuploads (that behavior is--fieldonly). Values are assembled in a quoted bash array, so metacharacters in branch names or descriptions are not re-evaluated by the shell.EXTRAargs to high-levelglab mr createreduces unexpected flag injection; unknown CLI options now fail closed.GITLAB_TOKENis required and not echoed; the helper only logs the API endpoint and branch names.TEMPLATE_NAMEpath construction allows..segments, but this is a local agent-only helper where the caller controls CLI flags; no plausible remote attacker path without VM compromise or prompt injection against the agent (out of scope for this diff).GITLAB_REPO/ project slug remains caller-controlled via env (pre-existing); token scope is the real boundary.No medium, high, or critical vulnerabilities with a plausible attack path were identified in this diff.
Inline threads: none (no findings).
mentioned in commit
86d897a929