Skip to content

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Jun 17, 2025

The dpgaspar/Flask-AppBuilder#2332 introduced new configuration parameter, where it defaulted hash algorithm for passwords to "scrypt". However with our (old) version of Werkzeug, scrypt is not supported and default should be set to "pbkdf2:sha256"

Fixes: #51854


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

The dpgaspar/Flask-AppBuilder#2332 introduced
new configuration parameter, where it defaulted hash algorithm for
passwords to "scrypt". However with our (old) version of Werkzeug,
scrypt is not supported and default should be set to "pbkdf2:sha256"

Fixes: 51854
@potiuk
Copy link
Member Author

potiuk commented Jun 17, 2025

Tested with Airflow 3.0.2 with 2.2.1 provider -> works:

Screenshot 2025-06-17 at 22 21 26

@potiuk potiuk merged commit 7cecc66 into apache:main Jun 17, 2025
68 checks passed
@potiuk potiuk deleted the fix-fab-password-hash branch June 17, 2025 20:53
@potiuk
Copy link
Member Author

potiuk commented Jun 17, 2025

Future-proof fix in FAB dpgaspar/Flask-AppBuilder#2365

RoyLee1224 pushed a commit to RoyLee1224/airflow that referenced this pull request Jun 21, 2025
…51858)

The dpgaspar/Flask-AppBuilder#2332 introduced
new configuration parameter, where it defaulted hash algorithm for
passwords to "scrypt". However with our (old) version of Werkzeug,
scrypt is not supported and default should be set to "pbkdf2:sha256"

Fixes: 51854
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error "unsupported hash type scrypt" appears when creating new user in Airflow Web UI

2 participants