-
Notifications
You must be signed in to change notification settings - Fork 101
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
No longer possible to serve shared repositories in klaus #322
Comments
Unfortunately Dulwich is still too slow for some operations. Any other ideas how to improve this in Klaus? |
We could maybe use pygit2 instead of dulwich. pygit2 depends on libgit2
and should be faster.
https://www.pygit2.org/
|
I'm open to merge that change but not interested in putting in the work right now. |
No worries! I totally understand. I don't have much time for hacking
myself. For now, I'll be running klaus with a patched git that has the
safe directory check disabled.
|
In case it's not obvious, you can work around this issue by running
I could not find any way to "batch" allow |
Yes, that's possible. But, I would prefer to have a smoother user
experience than that. I maintain a klaus service in
guix-forge. https://guix-forge.systemreboot.net/ This klaus service
automates away most of the deployment details. I would prefer to keep it
that way and not tell users to invoke additional commands.
|
duplicate of #300 |
My klaus setup involves klaus serving repositories that are owned by a different user. But, with git's new safe directory checks, it is no longer possible to use shared repositories without explicit safelisting. git's safe directory checks aren't quite relevant to klaus. It would be nice if we could avoid using the git CLI altogether and do everything with dulwich. That way, we can continue to support shared repositories while at the same time not exposing ourselves to git vulnerabilities and being immune from klaus breaking due to future changes in git.
Here's the git error message I get when trying to serve a shared repository with klaus.
Thank you!
The text was updated successfully, but these errors were encountered: