-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
403 Forbidden when pushing custom images based on latest node.js 18.x and 20.x distroless images to GCR #1662
Comments
This doesn't feel like a distroless issue? Can you push any other new images? |
Well, i have rebuild yesterday, just for testing, with gcr.io/distroless/nodejs20-debian12:latest-amd64@sha256:21db062157b2c2ae2708211b90c7f078f8c84d95847cebfd8216b19e9b5f6c37 and that image was pushed without errors. |
Yeah I was thinking that those images are already cached on the registry and maybe that's why you may not be hitting these errors? The content of an image seems unrelated to ones ability to push to a registry? |
So this is not in any way linked to #1630? |
That only applies to the distroless gcp project. |
Some updates ...
As mentioned before, we are still using GCR and plan to migrate to AR in the next months. Our dockerfile being so simple as:
, probably all layers get cached and the docker build action sees that the google distroless image is on artifact repository and also that we try to push to AR and tries to optimise by referencing layers We chose to use a workaround - changed the dockerfile by adding a new dummy layer (also reverted back to the service account key that only allows pushing images to GCR):
We see this as a workaround and need to re-test once the migration to AR is completed on our side. Do you see any other solutions? |
Maybe this is a bug with AR. Lemme pull someone in here: @ardagnir is there any chance of gcr/ar cross caching that could arise from this? These are not the same gcp project. (and correct me if I'm wrong @claudiu-muresan-pfa) it's basically doing a image copy operation through another machine? |
does only using the label work? Or do you need to add a layer? |
Need to add a layer. It’s not working just with the label. |
Just an update here, someone is looking into this on the service side |
If I had to guess, the problem is very likely that GCR cannot mount a repo backed by AR. |
We started having issues with latest nodejs 18.x and 20.x distroless images.
I'll add more context and exemplify for nodejs 20.x.
We have a simple Dockerfile defined with following content:
A GH workflow builds a new image based on above Dockerfile using following actions:
We push our images still in GCR (so not AR) and with the latest two published distroless images we get
403 Forbidden
when pushing into GCR:Last nodejs 20.x distroless image that worked fine is
gcr.io/distroless/nodejs20-debian12:latest-amd64@sha256:21db062157b2c2ae2708211b90c7f078f8c84d95847cebfd8216b19e9b5f6c37
The text was updated successfully, but these errors were encountered: