Skip to content

[BUG] ADMIN_PASSWORD env var allows for invalid passwords #3711

@solidDoWant

Description

@solidDoWant

Describe the issue
When seeing the database with admin credentials via ADMIN_PASSWORD, the seed job succeeds with any password value. If this doesn't meet the "at least 8 characters in length, contain an upper and lowercase letter, and contain at least one number" requirement, then users cannot log in.

Fixing this requires deleting the database and re-seeding, because the seed job will not update an existing admin user.

Environment

  • SDK: N/A
  • Engine: self-hosted v0.83.48

Expected behavior
The seed job should reject the password.

Ideally there would be a flag to force the seed job to update the admin user password as well, to aid in recovery.

Code to Reproduce, Logs, or Screenshots
Seed a new password with the env var ADMIN_PASSWORD=mypass and try to log in.

Image

Additional context
N/A

Metadata

Metadata

Labels

acceptedIssues that have been accepted by maintainers.good first issueGood for newcomers

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions