InDefero

Sign in or create your account | Project List | Help

Issue 3: Git/Gitosis integration plugin

Reported by Loïc d'Anterroches, Aug 2, 2008

The members and owners of a project should have read/write access to
the corresponding git repository.

It should be possible for the user to upload their SSH public key.

Comment 1 by Loïc d'Anterroches, Aug 2, 2008

(No comments were given for this change.)
Labels: Type:Enhancement, -Type:Defect

Comment 2 by Loïc d'Anterroches, Aug 4, 2008

Basically it looks like we will need a way to update the
gitosis-admin repository from the web interface. Doing the push will
run the hooks to update the access rights.

Other alternative, create a clone of gitosis with a database backend.
But that would require quite some work (and quite some security
checks too).

Comment 3 by Loïc d'Anterroches, Nov 24, 2008

(No comments were given for this change.)
Labels: Priority:Low, -Priority:Medium

Comment 4 by Loïc d'Anterroches, Dec 2, 2008

(No comments were given for this change.)
Labels: Milestone:Release1.0

Comment 5 by Loïc d'Anterroches, Dec 2, 2008

I think the problem can be solved with a local checkout of the
gitosis-admin repository on the server.

Note: We need to allow users to provide their public SSH key.
Summary: Git/Gitosis integration plugin

Comment 6 by Loïc d'Anterroches, Dec 4, 2008

Ok, I did some tests and found that basically, we cannot do live
changes on the git repositories because we need to do them with the
`git` user. 

So, the way to go is to create objects in the queue when we perform
operations and then let a cron job running under the `git` id,
perform the update of the gitosis-admin checkout and push the updated
version. 

We already have the queue system in Pluf:
http://projects.ceondo.com/p/pluf/source/tree/master/src/Pluf/Queue.p
hp
so, it is rather easy to create the plugin that will simply push the
changes in the queue, the real work will be the cron job that will
perform the changes.

Comment 7 by Loïc d'Anterroches, Dec 7, 2008

Again, again, I spent a while looking at the gitosis internals, the
code is really nice. What is even nicer, is that it will be rather
easy to use it as a basis to directly hook into the indefero database
for identification.

I will work on that starting 15th of December, as this week I have
family at home.
Labels: Priority:Medium, -Priority:Low
Owner: loic

Comment 8 by Loïc d'Anterroches, Dec 14, 2008

So, I started to work on this one. It will take some days to complete
as it is not an easy task.
Status: Started

Created: 5 months 4 days ago by Loïc d'Anterroches

Updated: 23 days 21 hours ago

Status: Started

Owner: Loïc d'Anterroches

Labels:
Priority:Medium
Type:Enhancement
Milestone:Release1.0