Skip to content
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

Global allowlist for codesearch on projects #22842

Open
techknowlogick opened this issue Feb 9, 2023 · 2 comments
Open

Global allowlist for codesearch on projects #22842

techknowlogick opened this issue Feb 9, 2023 · 2 comments
Labels
type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@techknowlogick
Copy link
Member

techknowlogick commented Feb 9, 2023

Feature Description

Due to the size of code index not all repos should be indexed, an admin may wish to only allow certain repos (or namespaces to be indexed).

Perhaps a global setting such as CODESEARCH_ALLOWLIST: org/*, user/project,... and if a repo is not in that list then it wouldn't be indexed. This could later be extended to add options to disregard archived/forked repos, etc..

Screenshots

No response

@techknowlogick techknowlogick added type/proposal The new feature has not been accepted yet but needs to be discussed first. type/feature Completely new functionality. Can only be merged if feature freeze is not active. labels Feb 9, 2023
@brechtvl
Copy link
Contributor

brechtvl commented Feb 9, 2023

For our use case at Blender I think we would want to disable it on all forks, and that would be enough. A specific list of repos is not something we would use probably, since keeping that up to date is not so convenient.

@lunny
Copy link
Member

lunny commented Feb 10, 2023

For our use case at Blender I think we would want to disable it on all forks, and that would be enough. A specific list of repos is not something we would use probably, since keeping that up to date is not so convenient.

I think just disabling fork repositories is an easier implementation than allowlist, but there are still mirrors and even users in fact could do a localhost fork and push but not from Gitea itself.

lunny pushed a commit that referenced this issue May 25, 2023
This PR adds two new options to disable repo/code search indexing of
both forks and mirrors.

Related: #22842
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

No branches or pull requests

3 participants