Repository navigation
fix(spawn): close remaining 2026-06 audit findings (#175) - #364
Merged
Merged
Conversation
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 Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
*:FullAccessIAM templates require opt-in.--iam-policy s3:FullAccess/dynamodb:FullAccess/sqs:FullAccessgrant a service wildcard on all resources.ValidatePolicyNames(pkg/aws/iam.go) rejects them unless--iam-allow-full-accessis passed, and rejects unknown template names (were silently ignored). Validated before any AWS call.Ergonomics
--no-timeoutnow requires confirmation (prompt, or-y/--yes), aborting if declined.Health
cmd/zombie_guard.go(was copy-pasted across single/batch-queue/sweep with a doubled comment).pkg/agentruns under the race detector in CI, locking in theAgent.configmutex fix.Tests
New
TestValidatePolicyNames; build/gofmt/vet clean;go test ./cmd ./pkg/awsgreen (excl. #392);make test-racegreen.Refs #175.