-
Notifications
You must be signed in to change notification settings - Fork 116
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
[security] deployment keys access to repositories #288
Comments
any update on this? |
Hi there! I'm sorry, I don't see the point...
since the key name is computed and incremental. |
hi, finally you got back to me, thanks :) it happened after migration from old redmine_git_hosting supported by kubitron. it might be an issue in your migration script. i've tried creating new keys they seems to be working normal so I guess I have to-recreate all SSH-keys at some point or is there more elegant way of renaming them? |
|
unfortunately it didn't work out... |
the @ in filename is normal : in 0.7 branch SSH keys are stored in a single directory in a 'flat' design so we need to be sure of the uniqueness of the keys : thus the @ with the timestamp. |
problem is: |
I don't see how. Do you have a real example? |
ok, here is how to reproduce it:
|
i've just tested this by creating 2 deployment keys, and one of the keys matched the same number (11) of the existing keys for some reason, so after creation it's already have access to all projects where redmine_user_deploy_key_11@.* is specified. |
I've done the same and here what I get :
|
On Gitolite side :
|
hey Nicholas What I meant the issue is reproduced fully if you migrate from older version of plugin maintained by kubitron. Can you check? |
Well, first deployment key I've just generated had the same number (11) I had before for some reason.. |
OK, I think I've found what is the issue. Here is how to properly re-produce:
In short: problem is because you're getting amount of user keys and add of total to the key.. I don't get why do you add @ instead of regular format: redmine_deploy_key_timestamp.pub. |
Ok now it's clear :)
|
to avoid collisions I highly recommend to add _timestamp as well there in the key name.. I don't really get why would you need to predict username key? What's the point? |
I think it would be better to improve |
If a deployment key with |
This is fixed in v0.7.9 branch. |
updated to v0.7.9 will report asap how it's working EDIT: seems to be working, thanks! |
You're welcome :) |
hello.
i've been using for quite some time older version of your's redmine_git_hosting plugin with redmine 2.2
yesterday i've decided to give a go with this new version and had some problems migrating from older version.
mainly it was because of the new scheme of keys naming, e.g:
redmine_deploy_key_10@....
or
redmine@....
the problem here is in gitolite.conf you have access keys without @ at all, so if you add just 1 deployment key to ANY project it gets access to all projects:
keydir of gitolite-admin contains this:
I'm using gitolite
gitolite3 v3.6.1-0-g3455375 on git 1.7.2.5
also tested on v2 and it was pretty much same..
The text was updated successfully, but these errors were encountered: