Using artifact-registry through api-gateway

Hi,

I am trying to use the artifact registry through the API gateway for the docker, apt, and yum repositories.

Why I want to do this - using artifact registry without using service account at the endpoint side.

I started with the APT repository, and this is what I trying to do:

ubuntu endpoint (*) ---> API gateway (**) ---> artifact registry (apt repository)

(*) using API registry URL in the sources.list
(**) using a service account with artifact registry permissions), openApi spec.

Can anyone help me with a step by step guide how to to it?
I even don't know how to write the openApi spec to fit the artifact registry (i didn't find any example for GAR)

Any help will be appreciated!

0 1 300
1 REPLY 1

Hi @tzahif,

Welcome to the Google Cloud Community!

It is not possible to use Artifact Registry through API Gateway. In this documentation, there is no way for API Gateway to interact with the artifact registry.

As for using Artifact Registry without service account, the documentation states that Artifact Registry Service Agent is a Google-managed service account that acts on behalf of Artifact Registry when interacting with Google Cloud Services. When you create an artifact registry repository, the service agent is automatically created. 

let me know if it helped, thanks!