-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into wx_927_quieter
- Loading branch information
Showing
7 changed files
with
86 additions
and
1 deletion.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
...ces/standardTestCases/docker_hash/docker_hash_dockerhub_private_google_secret_manager.wdl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
task dockerhub { | ||
command { | ||
echo "hello" | ||
} | ||
runtime { | ||
docker: "broadinstitute/cloud-cromwell:2024-08-31" | ||
backend: "GCPBATCHGoogleSecretManager" | ||
} | ||
} | ||
|
||
workflow docker_hash_dockerhub_private { | ||
call dockerhub | ||
} |
18 changes: 18 additions & 0 deletions
18
...main/resources/standardTestCases/docker_hash_dockerhub_private_google_secret_manager.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: docker_hash_dockerhub_private_google_secret_manager | ||
testFormat: workflowsuccess | ||
# see https://github.com/broadinstitute/cromwell/pull/7515 | ||
backends: [GCPBATCH] | ||
|
||
files { | ||
workflow: docker_hash/docker_hash_dockerhub_private_google_secret_manager.wdl | ||
# Updated the options to read_from_cache: false for | ||
# https://github.com/broadinstitute/cromwell/issues/3998 | ||
options-dir: "Error: BA-6546 The environment variable CROMWELL_BUILD_RESOURCES_DIRECTORY must be set/export pointing to a valid path such as '${YOUR_CROMWELL_DIR}/target/ci/resources'" | ||
options-dir: ${?CROMWELL_BUILD_RESOURCES_DIRECTORY} | ||
options: ${files.options-dir}/private_docker_papi_v2_usa.options | ||
} | ||
|
||
metadata { | ||
"calls.docker_hash_dockerhub_private.dockerhub.runtimeAttributes.docker": "broadinstitute/cloud-cromwell:2024-08-31", | ||
"calls.docker_hash_dockerhub_private.dockerhub.dockerImageUsed": "broadinstitute/cloud-cromwell@sha256:49ba8c8c2821c5b894a5bcff0a7873d6c58df7a03c45ee7c3cda159795f6e80f" | ||
} |
2 changes: 1 addition & 1 deletion
2
centaur/src/main/resources/standardTestCases/docker_hash_dockerhub_private_wf_options.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/ci/resources/dockerhub_provider_config_v2_google_secret_manager_usa.inc.conf.ctmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{{with $cromwellDockerhub := secret (printf "secret/dsde/cromwell/common/cromwell-dockerhub")}} | ||
dockerhub { | ||
# GCP Batch supports both the usual base64-encoded <username>:<password> Docker token format, | ||
# but also supports the use of Google Secret Manager (GSM). When using GSM the token is still base64 | ||
# encoded but the format becomes | ||
# <Path to GSM username secret>:<Path to GSM password secret> | ||
# This test is exercising the GCP Batch Google Secret Manager support. | ||
token = "{{$cromwellDockerhub.Data.google_secret_manager_token}}" | ||
auth = "user_service_account" | ||
} | ||
{{end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -173,5 +173,15 @@ backend { | |
filesystems.http {} | ||
} | ||
} | ||
GCPBATCHGoogleSecretManager { | ||
actor-factory = "REPLACEME!" | ||
config { | ||
include "dockerhub_provider_config_v2_google_secret_manager_usa.inc.conf" | ||
# This SA does not have permission to bill this project when accessing RP buckets. | ||
# This is on purpose so that we can assert the failure (see requester_pays_localization_negative) | ||
genomics.compute-service-account = "[email protected]" | ||
filesystems.http {} | ||
} | ||
} | ||
} | ||
} |