79310186

Date: 2024-12-26 18:31:07
Score: 0.5
Natty:
Report link

There are different methods to authenticate to artifact registry. Since you prefer using temporary credentials, you can try using a short-lived OAuth access token for password authentication. However, keyrings.google-artifactregistry-auth relies on ADC or json credentials so the access token should follow a specific json file format.

As for AR authentication during docker build time, it is best practice to generate the access token using gcloud print-access–token before performing docker build.

I came across this StackOverflow post about injecting credentials to docker build. You can follow the suggestions made in the thread and see if those would help.

Reasons:
  • Blacklisted phrase (1): StackOverflow
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: yannco