Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GCP Batch Google Secret Manager [AN-193] #7573

Merged
merged 5 commits into from
Oct 23, 2024
Merged

GCP Batch Google Secret Manager [AN-193] #7573

merged 5 commits into from
Oct 23, 2024

Conversation

mcovarr
Copy link
Contributor

@mcovarr mcovarr commented Oct 22, 2024

Description

Release Notes Confirmation

CHANGELOG.md

  • I updated CHANGELOG.md in this PR
  • I assert that this change shouldn't be included in CHANGELOG.md because it doesn't impact community users

Terra Release Notes

  • I added a suggested release notes entry in this Jira ticket
  • I assert that this change doesn't need Jira release notes because it doesn't impact Terra users

@mcovarr mcovarr changed the title Secret manager GCP Batch Google Secret Manager [AN-193] Oct 22, 2024
@mcovarr mcovarr marked this pull request as ready for review October 22, 2024 22:40
@mcovarr mcovarr requested a review from a team as a code owner October 22, 2024 22:40
echo "hello"
}
runtime {
docker: "broadinstitute/cloud-cromwell:dev"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This image is so old it does not pull or run in Docker Desktop. Obviously not the only place we use it, but it might be worth not propagating it into the new backend.

> docker run -it --entrypoint /bin/bash broadinstitute/cloud-cromwell:dev
Unable to find image 'broadinstitute/cloud-cromwell:dev' locally
dev: Pulling from broadinstitute/cloud-cromwell
docker: [DEPRECATION NOTICE] Docker Image Format v1 and Docker Image manifest version 2, schema 1 support is disabled by default and will be removed in an upcoming release. Suggest the author of docker.io/broadinstitute/cloud-cromwell:dev to upgrade the image to the OCI Format or Docker Image manifest v2, schema 2. More information at https://docs.docker.com/go/deprecated-image-specs/.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This image does pull and run on both PAPI v2 and Batch, but I'll see if I can push something a little less archaic.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like you pushed updates to it in August, seems like we might just change the tag

https://hub.docker.com/repository/docker/broadinstitute/cloud-cromwell/general

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated to reference one of those August images 🤞

```

Note that as per the Google Secret Manager docs, the compute service account for the project in which the GCP Batch
jobs will run will need to be assigned the `Secret Manager Secret Accessor` IAM role.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sounds like it might be a change we need to make in RBS, could you file a ticket to make sure we remember to do this? Or maybe update https://broadworkbench.atlassian.net/browse/AN-186 to cover this as well if it is indeed an RBS change.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated AN-186, inserted a new item 6 into the referenced Google doc to cover the GSM-related config.

# 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}}"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind also creating a ticket to cover the changes we'll need to make to get this working in Terra? Currently we store a docker_token that is b64 encoded username:password, we'll need to add a secret containing just the password and maybe another containing the new token, and update Cromwell config to use the new secret.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GCPBATCHGoogleSecretManager {
actor-factory = "cromwell.backend.google.batch.GcpBatchBackendLifecycleActorFactory"
config {
include "gcp_batch_provider_config.inc.conf"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, looks like since this is configured per backend, it won't be a problem to have the PAPI and Batch backends authing with different tokens while they're both in use.

Copy link
Collaborator

@aednichols aednichols left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docker image considerations definitely optional and not a blocker

@mcovarr mcovarr merged commit 6e21229 into develop Oct 23, 2024
37 checks passed
@mcovarr mcovarr deleted the secret_manager branch October 23, 2024 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants