Skip to content

Commit

Permalink
Prevents admin credentials from being logged in cleartext (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktpv authored and keshto committed Jul 29, 2019
1 parent 48c7276 commit 78740ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tile_generator/templates/jobs/deploy-all.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ function add_env_vars() {
}

function add_cf_credentials() {
cf set-env $1 CF_ADMIN_USER "$ADMIN_USER"
cf set-env $1 CF_ADMIN_USERNAME "$ADMIN_USER"
cf set-env $1 CF_ADMIN_PASSWORD "$ADMIN_PASSWORD"
echo "Setting $1 CF_ADMIN_USER environment variable" ; cf set-env $1 CF_ADMIN_USER "$ADMIN_USER" &> /dev/null
echo "Setting $1 CF_ADMIN_USERNAME environment variable" ; cf set-env $1 CF_ADMIN_USERNAME "$ADMIN_USER" &> /dev/null
echo "Setting $1 CF_ADMIN_PASSWORD environment variable" ; cf set-env $1 CF_ADMIN_PASSWORD "$ADMIN_PASSWORD" &> /dev/null
}

function delete_older_versions() {
Expand Down

0 comments on commit 78740ad

Please sign in to comment.