Skip to content

[audit] Dead code: delete unused DNS encoding inverse helpers (DecodeAccountID/GetAccountSubdomain/ParseDNSName + pkg-level GetFQDN) #289

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 0 — do now (dead code)

Evidence

  • pkg/dns/encoding.go:22 GetAccountSubdomain, :30 DecodeAccountID, :44 ParseDNSName — dead
  • pkg/dns/client.go:393 — package-level GetFQDN dead (DecodeAccountID dies once ParseDNSName goes)

Recommendation
Delete the 4 as one set + their unit tests. KEEP the (c *Client) GetFQDN METHOD (distinct from the dead package-level func).

User-facing / SemVer: No — internal. Optional CHANGELOG entry.

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

Activity

  1. added
    area:networking
    audit:2026-07
    on Jul 11, 2026
  2. scttfrdmn commented on Jul 11, 2026

    @scttfrdmn
    ContributorAuthor

    Shipped in #330 (squash-merged to main). GitHub only auto-closed the first issue in the PR's closing list; closing the rest manually.

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:networkingaudit:2026-07

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions