We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09ce341 commit d4a7f45Copy full SHA for d4a7f45
tools.sh
@@ -219,7 +219,10 @@ function create_vm {
219
function generate_htpasswd_file {
220
local auth_file_dir=$1
221
local pass_file=$2
222
- random_password=$(cat $1/auth/kubeadmin-password)
223
- ${HTPASSWD} -c -B -b ${pass_file} developer developer
224
- ${HTPASSWD} -B -b ${pass_file} kubeadmin ${random_password}
+ (
+ set +x # use a subshell to avoid leaking the password
+ local random_password=$(cat $1/auth/kubeadmin-password)
225
+ ${HTPASSWD} -c -B -i "${pass_file}" developer <<<"developer"
226
+ ${HTPASSWD} -B -i "${pass_file}" kubeadmin <<<"${random_password}"
227
+ )
228
}
0 commit comments