Skip to content

[audit] Refactor: pkg/aws/client.go (2379 LOC / 60 funcs) is a grab-bag — move domains to sibling files #322

Closed

Description

@scttfrdmn

Filed from the 2026-07-11 spawn audit. Full report: docs/spawn-audit-2026-07-11.md. Assessment-only — no code changed yet.

Phase: Phase 3 — structural

Evidence

  • client.go 2379 LOC: IAM 1572-1805, SG 1932-2286, buildTags 623-845, plus EFS/pricing

Recommendation
Same-package moves: IAM→iam.go, SG→securitygroups.go, buildTags→tags.go, EFS/pricing to domain files. Watch TestBuildInlinePolicy statement-count assertion (helpers_test.go).

User-facing / SemVer: No — internal. No bump.

Adversarially verified during the audit (62/62 findings survived verification; severities/scope adjusted where the first pass was wrong).

Activity

  1. added
    area:infra
    audit:2026-07
    on Jul 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:infraaudit:2026-07

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions