Skip to content

Self‑hosted: Admin user not seeded on first boot despite FLAG_AUTH_ENABLED=true and dashboard creds set #5243

@14deepu

Description

@14deepu

Summary

When running nangohq/nango-server:hosted with FLAG_AUTH_ENABLED=true and NANGO_DASHBOARD_USERNAME / NANGO_DASHBOARD_PASSWORD set, the dashboard does not create the admin user on first boot. Instead, the database contains a placeholder user (unknown@example.com).

What I expected

  • On first boot with an empty Postgres volume, the server should seed the dashboard admin user from:
NANGO_DASHBOARD_USERNAME=admin@example.com
NANGO_DASHBOARD_PASSWORD=Admin@123
  • Dashboard should prompt for login; supplied credentials should work.
  • _nango_users table in postgress should ideally contain the configured admin user (not a placeholder) if I am not mistaken.

What actually happened

  • After multiple clean attempts (removing the DB volume and recreating), the first boot results in a placeholder user:
id: 0
name: unknown
email: unknown@example.com
hashed_password: unkown
salt: unknown
  • No way to log in with the provided env credentials because the admin user was not created.

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