Skip to content

Gastown secrets not managed by dev:env #4013

@IamCoder18

Description

@IamCoder18

Gastown's development secrets (NEXTAUTH_SECRET, GASTOWN_JWT_SECRET) are hardcoded directly in services/gastown/wrangler.jsonc under env.dev.vars instead of being managed by the pnpm dev:env sync pipeline. This means:

  1. Secrets drift from .env.local — the source of truth for local dev secrets
  2. Changes to shared secrets (e.g. rotating NEXTAUTH_SECRET) require manual edits to wrangler.jsonc instead of being picked up automatically by pnpm dev:env
  3. Gastown is excluded from cross-worker consistency checks that verify shared secrets match across services

Steps to reproduce:

  1. Run pnpm dev:env and observe that Gastown does not appear in the output
  2. Check services/gastown/wrangler.jsonc lines 137-138, see hardcoded NEXTAUTH_SECRET and GASTOWN_JWT_SECRET values in env.dev.vars
  3. Verify services/gastown/.dev.vars.example does not exist
  4. Uupdate .env.local with new secret values
  5. Run pnpm dev:env again, Gastown still uses the old hardcoded values, not the updated ones from .env.local

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions