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

Allow all git repos from host (for self-hosted corporate git) #351

Closed
adamchalmers opened this issue Jul 9, 2021 · 2 comments · Fixed by #353
Closed

Allow all git repos from host (for self-hosted corporate git) #351

adamchalmers opened this issue Jul 9, 2021 · 2 comments · Fixed by #353
Labels
enhancement New feature or request

Comments

@adamchalmers
Copy link

Is your feature request related to a problem? Please describe.
I write Rust for work, and I'd like to allow any Git dependency from my work's self-hosted git server. Right now, the only way I see to do that is to manually add every Git repo I depend on to the allow-git list. If these repos were on Github, I could just trust my work's org, however, we use a private work git server.

Describe the solution you'd like
I can think of two solutions:

  1. A new allow-git-hosts key, of type List, which would trust any Git repo whose path has one of the given hosts.
  2. Allow wildcards * in the entries under allow-git, so that I can add a wildcard in the host or path, so that all repos from my org's git server are trusted.

Describe alternatives you've considered
It's really not too hard to manually add every private repo I want to use.

@adamchalmers adamchalmers added the enhancement New feature or request label Jul 9, 2021
@Jake-Shadle
Copy link
Member

I think having a private or internal entry under allow-orgs would probably be the most clear since it would only accept a host + optional path that the private repos would be all rooted to.

I haven't used a purely internal git server in years so I completely forgot about this use case, thanks for posting the issue!

@adamchalmers
Copy link
Author

Yeah, that sounds great, that would meet my needs nicely!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants