-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Support public code/issue access for private repositories #33127
Support public code/issue access for private repositories #33127
Conversation
4ab3ba3
to
c9325c8
Compare
bdf9e88
to
95c296c
Compare
95c296c
to
48173b0
Compare
458a1ac
to
541a190
Compare
There is no clear definition for that part. For example: if a user is added into an org team, then they could only access "wiki" in a private repo, the user could still see "stars" and "watches", the same. So i think it is not a problem. |
I think maybe there is an old bug when watching a repository. Users may receive emails which he should not be received. |
IMO, this feature can be something like sharing a file from cloud drive: generate a unique share URL to access the repo with read permission, a pin code is optional. The current solution will cause the repo public to all signed-in users. By my understand, the use case is sharing my private code with read permission to someone who is not a user or a user without permission, not all signed-in users. Edited: |
I do not understand what's your concern.
It needs a new control like
I do not understand what's your concern.
That's not the real use case. In many cases the site admin or org admin do not want to add users one by one.
I don't understand why " #8649 is a bit different feature", this feature could fully satisfy that requirement. |
The request sounds like: I only want to public to some special people, not all signed-in users. |
It satisfies. For anonymous access, it needs a new control like AnonymousAccess, this framework is designed well enough to support it in the future. |
@go-gitea/maintainers ready for long time. |
* giteaofficial/main: (21 commits) Support public code/issue access for private repositories (go-gitea#33127) Validate that the tag doesn't exist when creating a tag via the web (go-gitea#33241) [skip ci] Updated translations via Crowdin Switch back to `vue-tsc` (go-gitea#33248) Let API create and edit system webhooks, attempt 2 (go-gitea#33180) Fix incorrect ref "blob" (go-gitea#33240) Refactor RefName (go-gitea#33234) Refactor context RefName and RepoAssignment (go-gitea#33226) [skip ci] Updated translations via Crowdin Fix upload file form (go-gitea#33230) Fix mirror bug (go-gitea#33224) Remove unused CSS styles and move some styles to proper files (go-gitea#33217) Refactor context repository (go-gitea#33202) [skip ci] Updated translations via Crowdin Fix unpin hint on the pinned pull requests (go-gitea#33207) fix(cache): cache test triggered by non memory cache (go-gitea#33220) Update README.md (go-gitea#33149) Fix editor markdown not incrementing in a numbered list (go-gitea#33187) Some small refactors (go-gitea#33144) Fix sync fork for consistency (go-gitea#33147) ...
I think the idea with #639 is to have private repos remain private, but have their tracker and wiki access be public so the public can contribute to reporting issues or provide documented usage help without being able to see the private code. At least that's it from my understanding, as I've been begging for the same for years. It doesn't change the behavior of the repos themselves. It just opens up a portion of the system to the public while the rest remains private. (Think about how private repos commonly post their commits via bots in Discord and Slack servers that are viewable to the public so they can see what is being worked on, but they can't see the actual code being committed or modified. It adds a secure way to communicate with the public without releasing your core work for everyone to see). #8649 appears to be more focused on "unlisting" repos, which makes them non-searchable, but still accessible via a controlled, provided link. That is quite a bit different in the sense of the feature from the former. Now I'm sure one PR could theoretically handle controls for both of these requests, but they are definitely not one in the same, if that makes sense. |
Thank you for your feedback.
Yes, the scenario is different while I think we can handle them by the same approach. After "WIP: Add anonymous access support #33257", I guess most cases should be able to be handled. Will try to improve it to make it usable in 1.24 |
Close #8649, close #639 (will add "anonymous access" in following PRs)