Skip to content

Global allowlist for codesearch on projects #22842

Open
@techknowlogick

Description

@techknowlogick
Member

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

Activity

added
type/proposalThe new feature has not been accepted yet but needs to be discussed first.
type/featureCompletely new functionality. Can only be merged if feature freeze is not active.
on Feb 9, 2023
brechtvl

brechtvl commented on Feb 9, 2023

@brechtvl
Contributor

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

lunny commented on Feb 10, 2023

@lunny
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/featureCompletely new functionality. Can only be merged if feature freeze is not active.type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @lunny@techknowlogick@brechtvl

        Issue actions

          Global allowlist for codesearch on projects · Issue #22842 · go-gitea/gitea