Skip to content

User table - insufficient column length for password_hash #449

@bhodges-navapbc

Description

@bhodges-navapbc

Describe the bug
User creation fails when using a version of the Werkzeug dependency >= v3.0.0

Flask-MonitoringDashboard uses generate_password_hash, which has switched to defaulting to scrypt in werkzeug.security. This results in hashes with a length of 162, whereas the User table password_hash column has a length of 128.

To Reproduce
Steps to reproduce the behavior:

Perform a base install and attempt to login with the default credentials. An account is not created in the User table.

Example error output using PostgreSQL for the database would include "value too long for type character varying(128)"

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