mirror of
https://github.com/nix-community/disko.git
synced 2026-12-02 22:13:28 +01:00
luks: don't leak secret in debug logs
This commit is contained in:
1 parent
0b178c0554
commit
b18f43a9c2
1 file changed
+2
-1
+2
-1
@@ -4,7 +4,8 @@ let
|
|||||||
if lib.hasAttr "keyFile" config.settings
|
if lib.hasAttr "keyFile" config.settings
|
||||||
then config.settings.keyFile
|
then config.settings.keyFile
|
||||||
else if config.passwordFile != null
|
else if config.passwordFile != null
|
||||||
then ''<(echo -n "$(cat ${config.passwordFile})")''
|
# do not print the password to the console
|
||||||
|
then ''<(set +x; echo -n "$(cat ${config.passwordFile})"; set -x)''
|
||||||
else if config.keyFile != null
|
else if config.keyFile != null
|
||||||
then
|
then
|
||||||
lib.warn
|
lib.warn
|
||||||
|
|||||||
Reference in new issue
Block a user