fix: Revert "fix: redact all headers from logs"

This reverts commit d8032f47ca.
This commit is contained in:
firest 2024-03-01 10:32:57 +08:00
parent d3fb72733e
commit 0670272188
3 changed files with 2 additions and 6 deletions

View File

@ -88,7 +88,7 @@ t_http_api(_) ->
<<"method">> := <<"put">>,
<<"body">> := #{<<"mqtt">> := #{<<"max_qos_allowed">> := 1}},
<<"bindings">> := _,
<<"headers">> := "******"
<<"headers">> := #{<<"authorization">> := <<"******">>}
},
<<"http_status_code">> := 200,
<<"operation_result">> := <<"success">>,

View File

@ -2,7 +2,7 @@
{application, emqx_utils, [
{description, "Miscellaneous utilities for EMQX apps"},
% strict semver, bump manually!
{vsn, "5.0.16"},
{vsn, "5.0.15"},
{modules, [
emqx_utils,
emqx_utils_api,

View File

@ -717,9 +717,6 @@ is_sensitive_key(<<"jwt">>) -> true;
is_sensitive_key(authorization) -> true;
is_sensitive_key("authorization") -> true;
is_sensitive_key(<<"authorization">>) -> true;
is_sensitive_key(headers) -> true;
is_sensitive_key("headers") -> true;
is_sensitive_key(<<"headers">>) -> true;
is_sensitive_key(bind_password) -> true;
is_sensitive_key("bind_password") -> true;
is_sensitive_key(<<"bind_password">>) -> true;
@ -882,7 +879,6 @@ redact_test_() ->
secret_key,
secret_access_key,
security_token,
headers,
token,
bind_password
],