From f7b7f17c12cacc3d535aaa711e4aa0cbf49de964 Mon Sep 17 00:00:00 2001 From: Pete Birley Date: Fri, 18 Jan 2019 13:03:17 -0600 Subject: [PATCH] HTK: Dont display keystone user password in ks-user job This PS updates the ks user job script to not display the password on stdout. Change-Id: I3c11601a409d6d5993c351170c7057217cfabd8a Signed-off-by: Pete Birley --- helm-toolkit/templates/scripts/_ks-user.sh.tpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/helm-toolkit/templates/scripts/_ks-user.sh.tpl b/helm-toolkit/templates/scripts/_ks-user.sh.tpl index c2d900cfe..d2f14d834 100644 --- a/helm-toolkit/templates/scripts/_ks-user.sh.tpl +++ b/helm-toolkit/templates/scripts/_ks-user.sh.tpl @@ -69,7 +69,10 @@ USER_ID=$(openstack user create --or-show --enable -f value -c id \ "${SERVICE_OS_USERNAME}"); # Manage user password (we do this in a seperate step to ensure the password is updated if required) +set +x +echo "Setting user password via: openstack user set --password=xxxxxxx ${USER_ID}" openstack user set --password="${SERVICE_OS_PASSWORD}" "${USER_ID}" +set -x # Display user openstack user show "${USER_ID}"