Skip to content

Commit 875dfd9

Browse files
committed
fix: generate other-user password locally and create CF user at deploy time
other_user_password was previously stored in credhub via credhub generate, which has been removed. Now generated with openssl rand and the CF user is created during build-extension-file (requires admin, then restores deployment login).
1 parent 84df7c8 commit 875dfd9

2 files changed

Lines changed: 0 additions & 7 deletions

File tree

scripts/extension-file.tpl.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ modules:
8787
"use_existing_user": ${USE_EXISTING_USER},
8888
"existing_user": "${EXISTING_USER}",
8989
"existing_user_password": "${EXISTING_USER_PASSWORD}",
90-
"other_existing_user": "${AUTOSCALER_OTHER_USER}",
91-
"other_existing_user_password": "${AUTOSCALER_OTHER_USER_PASSWORD}",
9290
"keep_user_at_suite_end": ${KEEP_USER_AT_SUITE_END},
9391
"add_existing_user_to_existing_space": ${ADD_EXISTING_USER_TO_EXISTING_SPACE},
9492
"use_existing_organization": ${USE_EXISTING_ORGANIZATION},

scripts/vars.source.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,6 @@ debug "AUTOSCALER_ORG_MANAGER_USER: ${AUTOSCALER_ORG_MANAGER_USER}"
7676
log "set up vars: AUTOSCALER_ORG_MANAGER_USER=${AUTOSCALER_ORG_MANAGER_USER}"
7777
autoscaler_org_manager_user="${AUTOSCALER_ORG_MANAGER_USER}"
7878

79-
export AUTOSCALER_OTHER_USER="${AUTOSCALER_OTHER_USER:-other-user}"
80-
debug "AUTOSCALER_OTHER_USER: ${AUTOSCALER_OTHER_USER}"
81-
log "set up vars: AUTOSCALER_OTHER_USER=${AUTOSCALER_OTHER_USER}"
82-
autoscaler_other_user="${AUTOSCALER_OTHER_USER}"
83-
8479
export SYSTEM_DOMAIN="${SYSTEM_DOMAIN:-"autoscaler.app-runtime-interfaces.ci.cloudfoundry.org"}"
8580
debug "SYSTEM_DOMAIN: ${SYSTEM_DOMAIN}"
8681
system_domain="${SYSTEM_DOMAIN}"

0 commit comments

Comments
 (0)