Skip to content

Commit 7afe9c0

Browse files
MB-52162: Make sure pkey pass is sanitized in UpdateDB calls
Change-Id: I940faac69ca5ca7c6d504ef1d06789ec7addd206 Reviewed-on: https://review.couchbase.org/c/ns_server/+/174957 Well-Formed: Restriction Checker Well-Formed: Build Bot <[email protected]> Reviewed-by: Abhijeeth Nuthan <[email protected]> Tested-by: Build Bot <[email protected]> Tested-by: Timofey Barmin <[email protected]>
1 parent 06364a3 commit 7afe9c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ns_config_log.erl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@ sanitize(Config, TagUserTuples) ->
215215
{stop, {{metakv, K}, {?METAKV_SENSITIVE, sanitize_value(V)}}};
216216
({cookie, Cookie}) ->
217217
{stop, {cookie, ns_cookie_manager:sanitize_cookie(Cookie)}};
218+
({privateKeyPassphrase, _}) ->
219+
{stop, {privateKeyPassphrase, "*****"}};
218220
({UName, {auth, Auth}}) ->
219221
{stop, {tag_user_name(UName),
220222
{auth, sanitize(Auth, TagUserTuples)}}};

0 commit comments

Comments
 (0)