Skip to content

[P4] Remove dead code #98

Description

@Bccorb

Severity: P4 — Cleanup

Where:

  • src/utils/writeEnv.ts (no callers)
  • src/generators/docker/docker.ts buildJWKSConfig/generateKid + src/core/secrets.ts (test-only)
  • src/generators/auth/auth.ts setupDockerAuth (unreachable — generateAuthServer is only called with "local") and its context: any, mode: …|Symbol signature
  • src/generators/admin/admin.ts (empty) + its placeholder test
  • redundant fs.mkdirSync(apiDir) in wireApiEnv (init.ts:338)

Suggested fix
Delete unused modules/branches and tighten generateAuthServer's signature.

Filed from an internal code audit (2026-07). File references are against main at audit time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions