Automation Security Suggestion #112
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello all!
While writing automation script for this guide How to install Ubuntu 24.04 with full disk encryption, I encountered a possible security issue when using "installimage -a -c /tmp/setup.conf -x /tmp/post-install.sh".
installimage prints the content of setup.conf on terminal, including the CRYPTPASSWORD value, making it a possible security risk if logged and leaked (This originating from autosetup.sh line 27).
I suggest replacing line 27 in autosetup.sh from:
grep -v "^#" "$FOLD/install.conf" | grep -v "^$"to
grep -v "^#" "$FOLD/install.conf" | grep -v "^$" | sed -E 's/^(CRYPTPASSWORD[[:space:]]+).*/\1<REDACTED>/'Solution was tested with fresh install of ubuntu 22.04 on EX44 dedicated machine.
I'm new to open-source contributions! what do you think?