Skip to content

Backend should reject/warn on the dev-only-change-me JWT_SECRET placeholder #19

Description

@anitajordan22244-afk

services/backend's AppConfig::from_env() requires JWT_SECRET and DATABASE_URL (good — fails fast if unset), but doesn't validate that JWT_SECRET isn't the .env.example placeholder value (dev-only-change-me) before starting in a non-local environment. It would be easy to deploy to Railway/Render (#9) and forget to override it.

To do: either reject JWT_SECRET=dev-only-change-me outright at startup, or warn loudly (tracing::warn!) when RUST_LOG/env doesn't indicate a local/dev environment.

Activity

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions