gravitl / netmaker

Netmaker makes networks with WireGuard. Netmaker automates fast, secure, and distributed virtual networks.
https://netmaker.io
Other
9.51k stars 552 forks source link

[Bug]: error creating default EMQX authenticator on EMQX 5.4.0 #2752

Closed Effect-Wei closed 6 months ago

Effect-Wei commented 10 months ago

Contact Details

effect-w@outlook.com

What happened?

When I run Netmaker with EMQX 5.4.0(Latest) I always get "error creating default EMQX authenticator".

I guess the reason is as follows:

In EMQX 5.4.0, password_hash_algorithm no longer provides a default value. See EMQX v5.4 API Docs But emqx.go did not follow up on this change.

Version

v0.21.2

What OS are you using?

Linux

Relevant log output

[netmaker] 2023-12-27 12:43:47 error creating default EMQX authenticator {"code":"BAD_REQUEST","message":"{\"reason\":\"required_field\",\"path\":\"root.password_hash_algorithm.name\",\"matched_type\":\"authn:builtin_db_api/authn_hash:bcrypt_rw_api\",\"kind\":\"validation_error\"}"

Formatted JSON:
{
    "code": "BAD_REQUEST",
    "message": {
        "reason": "required_field",
        "path": "root.password_hash_algorithm.name",
        "matched_type": "authn:builtin_db_api/authn_hash:bcrypt_rw_api",
        "kind": "validation_error"
    }
}

Contributing guidelines

abhishek9686 commented 6 months ago

@Effect-Wei Currently netmaker only supports v5.0.9, emqx has incompatbile changes over different versions wrt their Apis. Unless there is an absolute requirement that we need to upgrade to a higher version of emqx, otherwise we won't be updating it soon.