kubevirtci icon indicating copy to clipboard operation
kubevirtci copied to clipboard

provider image publishing script doesn't configure public access for new images

Open enp0s3 opened this issue 3 years ago • 7 comments

In Quay, if the image was created for the first time (in our case adding a new provider) it will be configured with private access. We need to manually change it's access to public. We prefer an automated way to do so.

/cc @fgimenez @dhiller

enp0s3 avatar May 05 '21 11:05 enp0s3

Looks like the issue is related to the new quay account, kubevirtcibot, with the old one kubevirtbot, same publish scripts, all worked fine.

fgimenez avatar May 05 '21 13:05 fgimenez

I've asked in the quay sig mailing list here: https://groups.google.com/g/quay-sig/c/zsnYAxv7gtQ

dhiller avatar May 06 '21 12:05 dhiller

OK, looks like this is intentional behavior. As I see it we might have to add code to make the repository public via cli after the push.

dhiller avatar May 06 '21 12:05 dhiller

As I see it we need to do a call to the api against post /api/v1/repository/{repository}/changevisibility

dhiller avatar May 06 '21 13:05 dhiller

Also relevant: https://issues.redhat.com/browse/PROJQUAY-1224

dhiller avatar May 06 '21 13:05 dhiller

Did a couple of experiments. As I see it, the work here outweighs the benefits. It's quite complicated to use the Quay API as besides the Bearer token a CSRF token is required, which I know no easy way of fetching from somewhere.

IMHO we have two options now:

  • wait for the implementation of the default for new repos on quay.io and remind ourselves to make the repo public every three months
  • add a repo pull test somewhere else w/o credentials, which should fail and remind us that we need to make the repo public

dhiller avatar May 07 '21 09:05 dhiller

/lifecycle frozen

dhiller avatar May 07 '21 09:05 dhiller