Skip to content

mosquitto_passwd -H argon2id fails with "Unable to hash password" on official Alpine images #3719

Description

@poggenpower

Description

mosquitto_passwd advertises and accepts argon2id as a hashing algorithm, but Argon2id password generation consistently fails in the official Alpine Docker images:

$ mosquitto_passwd -H argon2id -c /tmp/test esp17
Password:
Reenter password:
Adding password for user esp17
Error: Unable to hash password.

The alternative sha512-pbkdf2 implementation works correctly:

$ mosquitto_passwd -H sha512-pbkdf2 -c /tmp/test shauser
Password:
Reenter password:
Adding password for user shauser
Environment

Tested with the official images:
eclipse-mosquitto:latest
eclipse-mosquitto:2.1.1-alpine
eclipse-mosquitto:2.1.2-alpine

Interestingly I have only problem to generate new PW hashed existing hashes are processed by the mosquitto server as expected. So my guess is, that is something specific to mosquitto_passwd

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: AvailableNo one has claimed responsibility for resolving this issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions