Hi all :wave: does anyone know how to use custom ...
# ask-community
c
Hi all 👋 does anyone know how to use custom gcp images with modal work pools: I am configuring the image like so (according to this thread)
Copy code
work_pools:
    default_modal: 
      name: modal_pool
      work_queue_name: default
      job_variables:
        image:
          tag: 'us-east1-docker.pkg.dev/<gcp-project>/prefect/prefect-flows:{{ $IMAGE_TAG }}'
          secret: 'gcr-secret'
where
gcr-secret
is a secret containing a single environment variable
SERVICE_ACCOUNT_JSON
which we know to work with modal’s from_gcp_artifact_registry. The error we are getting suggests that prefect is trying to do regular registry auth with that secret:
Copy code
could not fetch task data: Private registry access requires a Modal secret with the environment variables: REGISTRY_USERNAME and REGISTRY_PASSWORD.
I cannot find the relevant prefect code for this. Is there some way to make it use the correct authentication mechanism for gcp registries?
✅ 1
I created a worker pool and checked the network tab in the dashboard and found out that one has to call the key
gcp_secret
for this to work.