Skip to content

Conversation

cuixq
Copy link
Collaborator

@cuixq cuixq commented Sep 17, 2025

This PR introduces support for using Artifact Registry as a remote Maven repository. Users can now fetch Maven dependencies from artifact registry with a URL with the artifactregistry:// scheme.

When we see a new Maven registry, if it's artifact registry, we try to create google.DefaultClient so requests can be authenticated. This automatically handles authentication using Application Default Credentials (ADC).

After the client is created, when we try to make a request, if it's for artifact registry, we use this client; if the client is not available, we fall back to the default HTTP client. We also log StatusForbidden error for artifact registry.

References:

@cuixq cuixq marked this pull request as ready for review September 17, 2025 06:41
@cuixq cuixq requested a review from michaelkedar September 17, 2025 06:41
Copy link
Member

@michaelkedar michaelkedar left a comment

Choose a reason for hiding this comment

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

LGTM

@copybara-service copybara-service bot merged commit 56fc358 into google:main Sep 18, 2025
12 of 13 checks passed
@cuixq cuixq deleted the client branch September 23, 2025 03:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants