-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Container registry cannot be set to private #24174
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
Comments
Package visibility is the same as owner visibility. If the user or organization is private, the packages are private too. A linked repository does not change the visibility but that may change in future. |
It would be cool to have it like GHCR's "every container has it's own visibility setting". |
Personally, I'd like to change the visibility of packages from the linked repository |
I would also like it if you could control visibility via the containers or the repository. |
For a private orgniazation/user, all the containers of it will be private. For all the public orgniazation/user, all the containers of it will be public. |
I discovered it today, while migrating from GitLab. I was scared. I think this can be improved, while keeping in mind how Gitea deals with repos:
I think it would be cool if packages (all package types, not just containers) follow the same principle. They can have the owners visbility by default, but users should be able to overwrite it. (for me my migration now will get hard, probably I temporarily need to put all owners to private visibility) |
Another use-case (more serious):
|
This way makes the most sense to me. It differs the least from the current behavior of mirroring visibility of the user's profile. |
Hey guys, Can someone please help me to understand how can setup docker container registry in gitea ? I have installed gitea but in packages & registry I didn't find the container registry. Please can someone help me with guiding / pointing to right documentation ? |
Hello there, I think I'm in the correct issue:
Gitlab CI/CD can push to GItea, no worries, so can I, manually, when building from multiple machines (linux/macOS). Now, the rub : in any production / staging / dev environment i have, after a successful login to Gitea via In order for me to be able to pull the image, the only solution i have is to set the Organization to public. Can provide more details if needed but pretty sure that's not expected behaviour from a "private" registry. |
Thank you for the steps. I will have a look later 👍 |
@frenchcharly I can't reproduce the behaviour.
You uploaded two images and linked image 1 to repo 1 and image 2 to repo 2? I created a private org and two private repositories in that org. I pushed an image to the org and linked it to repo 1 (linking a package does not change the permissions at the moment, so this should not change anything). Then I created a new team with view rights and added a second user to this team. This user can now pull the image without problems. If the pull-user is not in the team I get the expected error |
Push/pull : encountered no problems whatsoever. |
What's the url which makes the packages visible? If the owner is not public, every url should result in a 404 error. |
As I stated, I had to switch to Harbor because publicly accessible images were a non-starter in my use case. I could try to spin a vm from a backup I have to get you that information, but all I did was explore the Gitea instance in a private browser session and I could access and download the images. Including supposedly private images. |
@KN4CK3R This is true, but sometimes the owner is public but repositories are not. Images linked to a private repository will still show up in the public user page. I agree with @frenchcharly this is unacceptable and makes the container registry unusable for me. |
This issue seems related: #20596 |
Description
Found that there isn't a way to make a container image private meaning anyone can pull the image even if the image is part of a private repo.
Gitea Version
1.19.1
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
I deploy gitea using kubernetes with kubectl and kubeadm.
Database
None
The text was updated successfully, but these errors were encountered: