Skip to content

Commit 33aec16

Browse files
committed
MB-49709 [BP] Do not pass password as an arg
This is a backport of MB-48129. Change-Id: Ib65b69b407d0008bff3f2faa9630a77479fabbad Reviewed-on: https://review.couchbase.org/c/ns_server/+/172388 Well-Formed: Restriction Checker Well-Formed: Build Bot <[email protected]> Reviewed-by: Timofey Barmin <[email protected]> Tested-by: Steve Watanabe <[email protected]>
1 parent 240ed3d commit 33aec16

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

deps/ns_babysitter/src/encryption_service.erl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
data_key_store_path() ->
3131
filename:join(path_config:component_path(data, "config"), "encrypted_data_keys").
3232

33-
remote_set_password([Node, Password]) ->
33+
remote_set_password([Node]) ->
34+
remote_set_password([Node, os:getenv("SETPASSWORD")]);
35+
remote_set_password([Node, Password]) when is_list(Password) ->
3436
N = list_to_atom(Node),
3537
RV = rpc:call(N, encryption_service, set_password, [Password]),
3638

0 commit comments

Comments
 (0)