WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Issue with bcrypt 5.0.0 / passlib 1.7.4 - Password hash not working anymore #660

@sflotron

Description

@sflotron

Since the new release of bcrypt (5.0.0), the password hash is not working anymore


Task failed.
Origin: ./galaxy_collections/ansible_collections/prometheus/prometheus/roles/_common/tasks/configure.yml:42:3

40     - "{{ ansible_parent_role_names | first | regex_replace(ansible_collection_name ~ '.', '') }}_configure"
41
42 - name: "Install web config for {{ _common_service_name }}"
     ^ column 3

<<< caused by >>>

The filter plugin 'ansible.builtin.password_hash' failed: Could not hash the secret: password cannot be longer than 72 bytes, truncate manually if necessary (e.g. my_password[:72])
Origin: ./galaxy_collections/ansible_collections/prometheus/prometheus/roles/_common/templates/web_config.yml.j2

Downgrading the bcrypt to version 4.3.0 make the password hash working again. The root cause is the passlib that is not updated since 5 years.

Could we remove the dependency on passlib and use an other password hash ?

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