fix(qa): make verify-issue-365 chmod only the script it runs (#375) #900
No reviewers
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:implement
agent:implement
agent:open_issues
agent:ready
agent:research
agent:security_audit
agent:verify
architecture
backend
blocker:hybrid
blocker:launch
blocker:limit-orders
blocker:v2
block:log_only
block:security
bug
ci
contracts
correctness
deploy
dev
devops
docs
documentation
duplicate
e2e
enhancement
epic
feature
frontend
functional-completion
gas
good first issue
governance
help wanted
high-risk
hooks
hybrid
indexer
infra
infrastructure
integrators
invalid
launch-blocker
limit-orders
localnet
localterra
low priority
missing-implementation
needs-design
ops
performance
priority
high
priority
medium
product
qa
QA
question
ready
ready
research
scripts
security
security-hardening
smartcontracts
tech-debt
testing
ux
UX
v2
verification
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
code/cl8y-dex-terraclassic!900
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "qa/375-verify-365-make-chmod"
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?
Fixes the
make verify-issue-365portability nit flagged on #375.The recipe chmod-ed three scripts, but two of them aren't directly exec'd by the ladder:
scripts/with-node.shis invoked asbash scripts/with-node.sh ...(no exec bit needed).scripts/setup-cloud-agent-indexer-postgres.shisn't invoked by the script at all — the bootstrap path shellsmake setup-indexer-postgres.When either of those isn't owned by the invoking user (e.g. a cloud-agent run left one non-user-owned),
chmodfails and the whole target errors out before the ladder runs. Now the recipe chmods only the one script it execs (scripts/qa/verify-issue-365.sh), with a-prefix so a no-op chmod can never abort the target.Verified:
make verify-issue-365runs end-to-end, 3/3 PASS (contract P5 + indexer health API + frontend warning util). One-line recipe change, no script/source changes.mentioned in issue #375
Security review — MR !900
Commit reviewed:
10893b6b79dd253ffbd67c1840bea326cfab84c5Scope:
Makefileverify-issue-365target only (chmod surface reduction +-error-ignore on chmod).Summary
Reviewed the diff and traced execution through
scripts/qa/verify-issue-365.shand its bootstrap path (make setup-indexer-postgres→setup-indexer-postgresrecipe, which still chmodsscripts/setup-cloud-agent-indexer-postgres.sh). Child steps invokebash scripts/with-node.sh(interpreter path; exec bit not required).FINDINGS: 0 medium+
No attacker-controlled inputs reach sinks in the changed lines. Paths are static repo-relative literals. The
-prefix onchmodonly affects QA portability when the invoking user cannot chmod the target; failure modes are a non-executable script (safePermission denied) or an already-executable script (unchanged behavior). This target is dev/CI-only and does not touch on-chain contracts, indexer APIs, or frontend runtime.Outcome: Security review: no medium+ findings on this diff.
Inline threads: none (no findings to anchor).
Pull request closed