base_image_auth, which is request-time only:
the API stores the auth kind for retry decisions, not the credential value.
GCP Artifact Registry
AWS ECR
BuildKit Dockerfiles
For BuildKit Dockerfile builds that pull from more than one private registry, the HTTP API also acceptsregistry_auth, a list of { registry, auth }
entries. Each registry must match a Dockerfile FROM host. These credentials
are written to a temporary Docker config on the build worker and are removed
with the build staging directory.
Retries of private-registry builds require fresh base_image_auth or
registry_auth in the retry request; old request-time values are not replayed.
Builds with internet_access=False cannot pull from private registries unless
the required content is already available from an accessible BuildKit cache or
local build context. Keep build internet access enabled for private registry
pulls that must contact the registry.