Skip to content

Supabase start is not pulling in variables from env.local after update #2772

Closed
@dexsnake

Description

@dexsnake

Describe the bug
In my .env.local file I have two variables that overwrite the default values:

SUPABASE_AUTH_JWT_SECRET
SUPABASE_DB_ROOT_KEY

After a recent cli update, the variables are no longer being loaded in after a supabase start.

When it finishes, I get the default:
JWT secret: super-secret-jwt-token-with-at-least-32-characters-long
in the terminal.

And when I check the pgsodium_root.key file in docker, the value does not match. I'm using a custom one that matches my production project so I can access vault secrets locally.

To Reproduce
Steps to reproduce the behavior:

  1. Add SUPABASE_AUTH_JWT_SECRET= to .env.local
  2. run supabase start (from fresh)
  3. When finished, the terminal will output JWT secret: super-secret-jwt-token-with-at-least-32-characters-long instead of the provided value in the .env.local file

Expected behavior
When a value is set for SUPABASE_AUTH_JWT_SECRET in .env.local, it should use that value as the jwt secret instead of the default.

System information
Rerun the failing command with --create-ticket flag.

  • Version of OS: MacOS 14.4.1
  • Version of CLI: 1.204.3
  • Version of Docker: 25.0.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions