Added by Klaus Kastler about 9 years ago
Hi,
I’m clompletly new to OpenProject and I just installed a fresh Version 5.0.9
Now I’m playing a little bit with them in a VM and try also to use the Repository Plugin.
But I can’t see how can I configure the users…
in my project repository I can create a new git repository which is under the address http://10.0.0.20/git/test.git
if I push now from my local PC a repository like git push http://10.0.0.20/git/test.git it will be uploaded and I can see it in Project details.
But now the big question how can I make this secure because now it is public…
Hope you can help me.
Thanks, djonny
Replies (9)
Hi Klaus,
the access to the project repository is determined by the roles and permissions in your OpenProject instance.
If the project is private (set in project settings (tab “Information”)) only project members with the permission to view repositories can see the files committed to the repository and only users who have the permission to commit changes can contribute / change files on the repo. (The only exception are admins who by default have more permissions.)
The permissions are added to roles which you can assign to users you add to the project in which the repository is located (in “Administration” > “Roles and permissions”).
Hello Robin,
thanks for your answer.
The Problem is that the Project is private but I don’t get a password prompt…
username@hostname ~/gittest $ git clone http://10.0.0.20/git/test.git
Nach »test« wird geklont
remote: Counting objects: 3, done.
remote: Total 3 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (3/3), done.
Verbundenheit wird überprüft … Fertig.
Its a little bit crazy…
Hello Klaus,
could you log out of your OpenProject instance and try again?
It should then not be possible to make changes in the private project.
Hi Robin,
it’s the same result…
also a push is possible.
I tried also a restart
I have the same problem.
Could it be, because I’m using http on my test instance (SSL disabled)?
There seems to be no authentication for cloning / pushing.
Hey everyone,
can you verify that my response from this thread fixes your problem?
https://community.openproject.org/topics/6019
Best,
Oliver
Hi Oliver,
Oliver Günther wrote:
I now switched to SSL. That didn’t help.
But Removing “Require all granted” from addons/apache2/includes/vhost/git_smart_http.conf helped.
So if your fix is Subversion only, please fix the problem for git, too.
Thanks Enno, you’re indeed right that I was applying an incomplete fix. I’m rebuilding the Repository addon now. If you pull the latest package and re-run the configuration (It will not change any configuration you’ve made in the past),
the problem should be resolved.
Sorry for your troubles!
Best,
Oliver
Thanks for fixing this so quickly.
(Yes, I upgraded to the latest version, that includes the fix.)