Skip to content

Commit

Permalink
chore: remove secure config repo. reference from the create sandbox job
Browse files Browse the repository at this point in the history
  • Loading branch information
nadeemshahzad committed Oct 6, 2023
1 parent be646a2 commit 0588ca0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
19 changes: 1 addition & 18 deletions devops/jobs/CreateSandbox.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* BASIC_AUTH_USER
* BASIC_AUTH_PASS
* ACCESS_CONTROL: List of orgs / orgs*teams who get github access
* CONFIGURATION_SECURE_REPO (required)
* CONFIGURATION_INTERNAL_REPO (required)
* SSH_KEYPAIR_NAME (required)
Expand Down Expand Up @@ -75,18 +74,6 @@ class CreateSandbox {
relativeTargetDirectory('configuration')
}
}
git {
remote {
url(extraVars.get('CONFIGURATION_SECURE_REPO',''))
branch('$configuration_secure_version')
credentials('sandbox-secure-credentials')
}
extensions {
cleanAfterCheckout()
pruneBranches()
relativeTargetDirectory('configuration-secure')
}
}
git {
remote {
url(extraVars.get('CONFIGURATION_INTERNAL_REPO',''))
Expand Down Expand Up @@ -133,14 +120,11 @@ class CreateSandbox {
stringParam("sandbox_life","7","Number of day(s) sandbox will be online(between 1 to 30)")
booleanParam("VERBOSE",false,"Whether to run ansible in verbose mode. Useful if debugging a sandbox failure")
stringParam("configuration_version","master","")
stringParam("configuration_source_repo","https://github.com/edx/configuration.git",
"If building a sandbox to test an external configuration PR, replace this with the fork of configuration.git's https URL")
stringParam("configuration_secure_version","master",
"Select an alternative branch of sandbox-secure configuration repo")
stringParam("configuration_internal_version","master",
"Select an alternative branch of sandbox-internal configuration repo")
stringParam("docker_internal_version","master",
"Select an alternative branch of internal-dockerfiles configuration repo")
stringParam("configuration_secure_secret",extraVars.get('CONFIGURATION_SECURE_AWS_SM_SECRET'),"")
booleanParam("reconfigure",false,"Reconfigure and deploy, this will also run with --skip-tags deploy against all role <br />Leave this unchecked unless you know what you are doing")

choiceParam("mongo_version",["4.2","4.4"],"select version of MongoDB to build sandbox")
Expand Down Expand Up @@ -311,7 +295,6 @@ class CreateSandbox {
stringParam("nginx_users",'[{"name": "{{ COMMON_HTPASSWD_USER }}","password": "{{ COMMON_HTPASSWD_PASS }}","state":"present"}]',"")
}


properties {
rebuild {
autoRebuild(false)
Expand Down
2 changes: 1 addition & 1 deletion devops/resources/create-sandbox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ set +x
SESSIONID=$(date +"%s")

RESULT=(`aws sts assume-role --role-arn $ROLE_ARN \
--role-session-name $SESSIONID \
--role-session-name $SESSIONID --duration-seconds 10800 \
--query '[Credentials.AccessKeyId,Credentials.SecretAccessKey,Credentials.SessionToken]' \
--output text`)

Expand Down

0 comments on commit 0588ca0

Please sign in to comment.