ericpaulbishop / redmine_git_hosting

A ChiliProject/Redmine plugin which makes configuring your own git hosting easy.
186 stars 37 forks source link

authorized_keys file. #93

Closed ackiejoe closed 13 years ago

ackiejoe commented 13 years ago

I've setup chiliproject, gitolite, and redmine_git_hosting but chiliproject is still not writing to the authorized_keys file when I add a users key, I'm not seeing an errors anywhere and all tests I do seem to work fine. My question is where in the code does the actual writing to the authorized_keys file take place? if I can fine that and see how it is trying to do it, I should be able to resolve my problem.

Thanks in advance.

.Ak

ericpaulbishop commented 13 years ago

It doesn't modify the authorized_keys file directly, it does so indirectly by modifying the admin repo of gitolite, which then modifies the authorized_keys file for the git user when the admin repo gets pushed. The key code for managing this is in lib/git_hosting.rb and lib/gitolite_conf.rb

ericpaulbishop commented 13 years ago

I'm going to close this issue for now. If you continue having problems, feel free to reopen it with more details of the problem.

rcross commented 13 years ago

I'm having a similar problem.

Is there a way to regenerate the gitolite configuration file(s)? or somehow check the configuration against the permissions in the redmine db?

It appears that keys that are deleted, are not deleted from the configuration which is causing some issues.