Custom domain name to serve Python packages from Google Artifact Registry?

45 views
Skip to first unread message

Paolo Filippelli

unread,
Jan 18, 2022, 10:22:46 AM1/18/22
to Google Cloud Developers
Hi,

we're serving Python packages through Google's Artifact Registry. Actually the URL is the "default" one, so

https://[REGION].pkg.dev/[PROJECT_ID]/.....

but what if we wanted to use a custom domain name? For example we'd like to serve packages from a custom domain link like

https://[MY-CUSTOM-DOMAIN]/...

Is there an official way to do that? What are my options?

Bruno (Cloud Platform Support)

unread,
Jan 18, 2022, 12:44:24 PM1/18/22
to Google Cloud Developers
Hi, 

At this time, there is no GCP managed option that would allow you to serve your packages via a custom domain.

However, there is an existing feature request that the Artifact Registry (AR) team is studying. I recommend starring (The more stars, the more visibility the request gets) and CC'ing yourself to the thread that way you will get updates regarding the request.

In the meantime, as mentioned in this Stack Overflow post,  the only workaround available at the moment is to build a "reverse proxy" on top of your AR to forward incoming requests while still serving the traffic on the custom domain name you own. More details on this can be found in the original blog article.

Note that the above workaround is only available for Docker, and it requires the registry to be publicly accessible. If either of these requirements is not feasible for you at this time, then it would be best to wait for a response from the AR team in regarding the feature request.

Reply all
Reply to author
Forward
0 new messages