Skip to content

fix(spawn): close remaining 2026-06 audit findings (#175) - #364

Merged
scttfrdmn merged 1 commit into
mainfrom
fix/175-audit-remaining
Jul 16, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
fix/175-audit-remaining

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

Closes the still-open items from the 2026-06 Medium/Low tracker (#175), verified against current main. (3 of the original 7 were already fixed organically; DNS-over-SSH is a duplicate of #349.)

Security

  • Wildcard *:FullAccess IAM templates require opt-in. --iam-policy s3:FullAccess/dynamodb:FullAccess/sqs:FullAccess grant a service wildcard on all resources. ValidatePolicyNames (pkg/aws/iam.go) rejects them unless --iam-allow-full-access is passed, and rejects unknown template names (were silently ignored). Validated before any AWS call.

Ergonomics

  • --no-timeout now requires confirmation (prompt, or -y/--yes), aborting if declined.

Health

  • De-duplicated the zombie-prevention block into cmd/zombie_guard.go (was copy-pasted across single/batch-queue/sweep with a doubled comment).
  • pkg/agent runs under the race detector in CI, locking in the Agent.config mutex fix.

Tests

New TestValidatePolicyNames; build/gofmt/vet clean; go test ./cmd ./pkg/aws green (excl. #392); make test-race green.

Refs #175.

Security (M): wildcard *:FullAccess IAM templates (s3:*/dynamodb:*/sqs:* on *)
now require --iam-allow-full-access; default steers to scoped ReadOnly/WriteOnly.
ValidatePolicyNames rejects them (and unknown names) before any AWS call.

Ergonomics (L): --no-timeout now requires confirmation (--yes to bypass) instead
of only warning — disabling cost guardrails is an explicit acknowledged choice.

Health (M): de-duplicated the zombie-prevention block (was copy-pasted across
launch_single/batchqueue/sweep with a doubled comment) into cmd/zombie_guard.go.

Health (M-corr follow-up): pkg/agent now runs under -race in CI (make test-race),
locking in the Agent.config mutex fix.

Not here: DNS-registration-over-SSH (L sec) is a duplicate of #349's follow-up
(move DNS registration into spored) and is tracked there.

Refs #175.
@codecov

codecov Bot commented Jul 16, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 28.57143% with 40 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
cmd/zombie_guard.go 0.00% 27 Missing ⚠️
cmd/launch_single.go 0.00% 8 Missing ⚠️
cmd/launch_sweep.go 0.00% 3 Missing ⚠️
cmd/launch_batchqueue.go 0.00% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

@scttfrdmn
scttfrdmn merged commit 415e658 into main Jul 16, 2026
6 of 7 checks passed
@scttfrdmn
scttfrdmn deleted the fix/175-audit-remaining branch July 16, 2026 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant