Merge pull request #13389 from lafirest/fix/builtin_acl

fix: fix two minor issues of bulti-in authn/authz
This commit is contained in:
lafirest 2024-07-02 20:19:53 +08:00 committed by GitHub
commit dea2bf19b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 2 deletions

View File

@ -142,7 +142,7 @@ salt_position(desc) -> "Salt position for PLAIN, MD5, SHA, SHA256 and SHA512 alg
salt_position(_) -> undefined.
dk_length(type) ->
integer();
pos_integer();
dk_length(required) ->
false;
dk_length(desc) ->

View File

@ -98,7 +98,7 @@ validate_rule_topics(RuleRaw) ->
throw({missing_topic_or_topics, RuleRaw}).
validate_rule_topic(<<"eq ", TopicRaw/binary>>) ->
{eq, validate_rule_topic(TopicRaw)};
{eq, TopicRaw};
validate_rule_topic(TopicRaw) when is_binary(TopicRaw) -> TopicRaw.
validate_rule_permission(<<"allow">>) -> allow;

View File

@ -0,0 +1,3 @@
Fixed that the `Derived Key Length` for `pbkdf2` could be set to a negative integer.
Fixed topics in the authorization rules might be parsed incorrectly.