fix(scripts): local scope in yieldomega_anvil_deploy_dev (#289) #419
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!419
Loading…
Reference in a new issue
No description provided.
Delete branch "cursor/anvil-deploy-local-scope-30ac"
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 #289:
yieldomega_anvil_deploy_devinscripts/lib/anvil_deploy_dev.shassignedTA,PV,DOUB,CRED, and Kumbaya vars withoutlocal, clobbering the caller shell (e.g. false failures comparingDOUBacross two deploys inverify-evm-dev-wallet-seed-anvil.sh).What changed
localfor all internal address assignments; seeding uses local copies.yieldomega_export_deploy_addrs_from_log "${DEPLOY_LOG}" "${ROOT}"→TA,PV,AV,RR,DOUB,CRED,CL8Yyieldomega_export_kumbaya_addrs_from_log "${DEPLOY_LOG}"whenYIELDOMEGA_DEPLOY_KUMBAYA=1DEPLOY_LOGfor re-export.yieldomega_anvil_deploy_devcallers updated.scripts/test-anvil-deploy-caller-scope.sh; invariantsINV-DEPLOY-289-*; docs ine2e-anvil.md.Acceptance checklist
bash scripts/verify-evm-dev-wallet-seed-anvil.shbash scripts/e2e-anvil.sh(6 Playwright specs)bash scripts/verify-evm-dev-wallet-seed-anvil.shyieldomega_anvil_deploy_devsites call export APIbash scripts/test-anvil-deploy-caller-scope.shThird-party verification
Issue #289 remains open until this MR merges.
changed the description
Security review (automated)
Reviewed commit:
823023f1054abffb5643824b0bf00e4bafe8257cScope: MR !419 — Anvil
yieldomega_anvil_deploy_devcaller-scope fix (#289):scripts/lib/anvil_deploy_dev.sh, explicityieldomega_export_*_from_logAPIs, caller updates (e2e-anvil.sh,anvil-export-bot-env.sh, verify scripts),test-anvil-deploy-caller-scope.sh, docs/CI smoke.Method: Diff-only review (
aeb3be1→823023f1, 18 files). Traced deploy/log-parse/export paths; checked for injection, secret handling, authz, and production attack surfaces. No prior security-review threads on this MR.Outcome:
FINDINGS: 0medium+ (no inline threads).Summary
This change confines DeployDev address parsing to function-local variables and requires an explicit export from
DEPLOY_LOGbefore callers useTA/DOUB/ etc. That reduces the risk of stale or cross-deploy address confusion in local Anvil tooling (a reliability fix, not a production-facing surface)._yieldomega_extract_addr_from_loguses fixed label literals (TimeArena,Doubloon, …);deploy_logis a path read bygrep, not interpolated into regex as user input.PRIVATE_KEY/KEY_EVM_*;anvil-export-bot-env.shstill writes generated env withumask 077.DEPLOY_LOG.yieldomega_anvil_deploy_devstill briefly setsKUMBAYA_*viayieldomega_kumbaya_extract_from_deploy_logduring deploy; callers that need them useyieldomega_export_kumbaya_addrs_from_log(documented). Dev-scope only; not a new medium+ issue on this diff.Security review: no medium+ findings on this diff.
mentioned in commit
0b2cbc0220mentioned in commit
3bfa6ab0a4