python - Adding a layer of authentication to git repositories on a server -
i have own private linux server. using host company git repositories. reading .git
directories using python
. have database contain information users allowed login system.
the problem now, have linux user called git. user has repositories, , when try connect outside machine have upload ssh keys server before pulling , pushing.
what trying now.. create authentication layer github. users can clone or push private repositories entering username , password system. since username , password in database need python script or other script fetch username , password.
the question now, when user tries this.. git push origin master
first time. , there no ssh key. need please enter username , password
if user authenticated using data in database , have access repository want him/her able push repo or clone it.
please don't mention ready software host git repositories. not option me.
since have ssh access, can add authorization layer gitolite allow to:
- register public ssh keys
- define acl (access control level) various repos
that way, no need user database, , can manage entire user base , access rules gitolite-admin
repo, special administrative repo interpreted on server side gitolite.
see more @ "how programs gitolite work?".
Comments
Post a Comment