fix(devops): Cloud Agent Docker socket diagnostics and optional verify (#288) #421
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!421
Loading…
Reference in a new issue
No description provided.
Delete branch "cursor/cloud-agent-docker-perms-288-6d29"
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
Fixes GitLab #288 — Cloud Agents hitting opaque
permission deniedon/var/run/docker.sockwhen running stack/QA scripts.What changed:
scripts/lib/docker_cloud_agent.sh— diagnosis, permission-denied vs overlay classification,/tmp/yieldomega-docker-unavailablemarker, native Postgres hint.scripts/verify-docker-cloud-agent.sh— PASS (0) / SKIP (2) / FAIL (1 withYIELDOMEGA_DOCKER_REQUIRED=1).scripts/bootstrap-cloud-vm-toolchain.sh— verify as$USER, socket perms, marker on failure.scripts/verify-cloud-vm-toolchain.sh— native Postgres verify (#287, frommain) + Docker PASS/SKIP/FAIL (#288).scripts/start-local-anvil-stack.sh— actionable hints before dying on Docker..cursor/environment.json(postgres bootstrap + post-bootstrap verify).Rebased onto
mainafter !418 / !420 merged — conflicts resolved in guardrails,AGENTS.md, bootstrap/verify scripts,environment.json.Issue #288 remains open until this MR merges.
Acceptance checklist
$USERor writes marker + native Postgres hintbash scripts/bootstrap-cloud-vm-toolchain.shdocker info+hello-worldwithout sudo or explicit SKIPbash scripts/verify-docker-cloud-agent.shYIELDOMEGA_DOCKER_REQUIRED=1 bash scripts/verify-docker-cloud-agent.shbash scripts/verify-cloud-vm-toolchain.shbash scripts/test-docker-cloud-agent-lib.shbash scripts/test-docker-cloud-agent-lib.shThird-party verification
See AGENTS.md § Docker troubleshooting (#288) and INV-DEVOPS-288-* in invariants.
changed the description
Security review (automated)
Commit reviewed:
e696a74855ef01bbbfc02dee00703bd06ef35e5fScope: Cloud Agent Docker socket diagnostics (
scripts/lib/docker_cloud_agent.sh,verify-docker-cloud-agent.sh), bootstrap/toolchain verify SKIP semantics,start-local-anvil-stack.shhints, AGENTS.md / invariants /.cursor/environment.jsondocs.Outcome:
FINDINGS: 0(no medium, high, or critical issues on this diff)Inline threads: none
Summary
Reviewed added/modified bash and docs only (no application runtime, indexer API, contracts, or frontend attack surface). Traced env/file paths and failure modes:
chmod 666on/var/run/docker.sock— pre-existing Cloud Agent dev-VM remediation (refactored intoyieldomega_fix_docker_socket_permissions); acceptable in documented single-tenant ephemeral agent context; not a new production exposure./tmp/yieldomega-docker-unavailablemarker — local state for SKIP; no auth boundary or remote input; symlink races require same-VM local attacker (out of scope for this devops change).yieldomega_docker_print_diagnosis— printsdocker info/hello-worldstderr to the agent log; no secret env vars or tokens in code paths; dev VM diagnostics only.start-local-anvil-stack(still hard-fails without Docker); strict gate remainsYIELDOMEGA_DOCKER_REQUIRED=1.Security review: no medium+ findings on this diff.
changed the description
added 7 commits
mainCompare with previous version
changed the description
added 5 commits
main8f6a936f- fix(devops): Cloud Agent Docker socket diagnostics and optional verify (#288)Compare with previous version
mentioned in commit
d9b1ed959cSecurity review (automated)
Commit reviewed:
8f6a936faabb34155e090f3025690665e05a2349Scope: MR !421 vs
main(11 files) —scripts/lib/docker_cloud_agent.sh,verify-docker-cloud-agent.sh,test-docker-cloud-agent-lib.sh,bootstrap-cloud-vm-toolchain.sh,verify-cloud-vm-toolchain.sh,start-local-anvil-stack.sh, AGENTS.md / invariants /.cursor/environment.json.Outcome: FINDINGS: 0 (no medium, high, or critical issues on this diff)
Inline threads: none
Re-review (MR update)
Re-reviewed after the latest push (rebased onto
mainper MR description). Prior automated review one696a748reached the same conclusion; this pass re-traced the current diff with no new medium+ issues.Summary
yieldomega_docker_error_kindclassifies fixed Docker CLI stderr patterns; marker reason strings are bootstrap-controlled (daemon_up_*/daemon_down_*).yieldomega_fix_docker_socket_permissions: continues documented Cloud Agent remediation (usermod -aG docker,chmod 666ondocker.sock) for ephemeral single-tenant dev VMs — not a production deploy path.start-local-anvil-stack.sh: still hard-requires working Docker before Postgres container; only adds diagnostics viayieldomega_docker_stack_failure_hint.verify-docker-cloud-agent.shexit 2): does not weaken full-stack gate;YIELDOMEGA_DOCKER_REQUIRED=1still fails closed.Security review: no medium+ findings on this diff.
Security review (automated)
Commit reviewed:
8f6a936faabb34155e090f3025690665e05a2349Scope: MR !421 vs
main(11 files) —scripts/lib/docker_cloud_agent.sh,verify-docker-cloud-agent.sh,test-docker-cloud-agent-lib.sh,bootstrap-cloud-vm-toolchain.sh,verify-cloud-vm-toolchain.sh,start-local-anvil-stack.sh, AGENTS.md / invariants /.cursor/environment.json.Outcome: FINDINGS: 0 (no medium, high, or critical issues on this diff)
Inline threads: none
Re-review
Re-read prior automated reviews on this MR (
e696a748,8f6a936); re-traced attacker-controlled input to sinks on the current diff. Conclusion unchanged.Summary
yieldomega_docker_error_kindclassifies fixed Docker CLI stderr patterns; marker reasons are bootstrap-controlled (daemon_up_*/daemon_down_*). All shell expansions quoted.chmod 666/usermod -aG dockerfix_docker_socket_permissions); not a production deploy path.start-local-anvil-stack.shyieldomega_docker_stack_failure_hintdiagnostics.YIELDOMEGA_DOCKER_REQUIRED=1still fails closed.yieldomega_docker_print_diagnosisemitsdocker info/hello-worldstderr to agent logs — no token/secret env vars in code paths.YIELDOMEGA_DOCKER_SOCK/YIELDOMEGA_DOCKER_UNAVAILABLE_MARKERare local bootstrap knobs; exploitation requires same-VM env control (out of scope for cross-tenant production threats).Security review: no medium+ findings on this diff.
mentioned in commit
7698e97f5a