Skip to content

Commit

Permalink
Mask SMB credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
frmunozp authored and LiliDeng committed Apr 26, 2024
1 parent 402711d commit 9a4d546
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lisa/sut_orchestrator/azure/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -3211,6 +3211,7 @@ def _prepare_azure_file_share(
echo = node.tools[Echo]
username = account_credential["account_name"]
password = account_credential["account_key"]
add_secret(password)
echo.write_to_file(f"username={username}", file_path, sudo=True, append=True)
echo.write_to_file(f"password={password}", file_path, sudo=True, append=True)
node.execute("cp -f /etc/fstab /etc/fstab_cifs", sudo=True)
Expand Down

0 comments on commit 9a4d546

Please sign in to comment.