How to allow push for authenticated user, but pull for anonymous/everybody?
-
App Devwrote on Jan 27, 2024, 1:15 PM last edited by Kubernetes Jan 27, 2024, 1:17 PM
Hi there,
How to allow push for authenticated user, but pull for anonymous/everybody?
I would like to have a public available image pull repository of Docker Images.
Pushing new Docker images or updating Docker images should only possible for authenticated users.Does somebody know how to achieve this?
Thanks!
Mike
PS: This is first part of implementing the idea in this post
-
App Devwrote on Jan 27, 2024, 6:56 PM last edited by fbartels Jan 29, 2024, 11:10 AM
I don't think this is easily doable with the default registry app on Cloudron. But it can still be achieved with other apps available on Cloudron.
I would use the Gitea app as a base. You can tie this app to the Cloudron auth and allow container uploads for a certain user. Within the repo of choice you can then do a public pull. The added benefit is that you can use Gitea actions to build apps in the first place.
-
I don't think this is easily doable with the default registry app on Cloudron. But it can still be achieved with other apps available on Cloudron.
I would use the Gitea app as a base. You can tie this app to the Cloudron auth and allow container uploads for a certain user. Within the repo of choice you can then do a public pull. The added benefit is that you can use Gitea actions to build apps in the first place.
@fbartels That sounds like a very good suggestion. Thank you, I will give it a try