Christoph Proeschel
09/16/2025, 6:20 PMwork_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:
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?Christoph Proeschel
09/16/2025, 6:28 PMgcp_secret
for this to work.