Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use bcrypt with password_hash #35

Merged
merged 1 commit into from
Jan 5, 2024
Merged

Conversation

drmatthews
Copy link
Contributor

@drmatthews drmatthews commented Jan 4, 2024

Changes:

  • Reinstate the bcrypt option for password_hash

This has been done since node_exporter expects hashed password for basic authentication to be created with brypt. I initially removed because the following appears when running the monitoring_client role:

AttributeError: module 'bcrypt' has no attribute '__about__'

The play proceeds and node_exporter is correctly installed. I tried pinning bcrypt to 4.0.1 as suggested in pyca/bcrypt#684 but the traceback still appears. Without bcrypt the node_exporter service fails to start.

Copy link
Contributor

@p-j-smith p-j-smith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, hopefully the issue gets fixed in passlib (although it looks like the maintenance status of it is up in the air)

@drmatthews
Copy link
Contributor Author

Yup, passlib looks abandoned to me - annoying that Ansible are still using it.

@drmatthews drmatthews merged commit 53267d2 into main Jan 5, 2024
3 checks passed
@drmatthews drmatthews deleted the drmatthews-fix-node-exporter branch January 5, 2024 10:01
drmatthews added a commit to UCL-MIRSG/ansible-collection-xnat that referenced this pull request Jan 5, 2024
Changes:

- Update variable names for the `firewalld` role in the molecule tests
- Update some details in `galaxy.yml`

After UCL-MIRSG/ansible-collection-infra#35 is
merged I propose creating a new release of the `mirsg.infrastructure`
collection (`1.3.0`) and pinning the version number in
[meta/requirements.yml](https://github.com/UCL-MIRSG/ansible-collection-xnat/blob/33413301671dcca18388f13a91ec363c9ce07539/meta/requirements.yml#L10)
in this PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants