Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 179014 - egret needs git daemon support for readonly, and SSH users with git-shell read-write
Summary: egret needs git daemon support for readonly, and SSH users with git-shell rea...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Infrastructure
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 167672
  Show dependency tree
 
Reported: 2007-05-18 15:23 UTC by Markus Ullmann (RETIRED)
Modified: 2008-01-06 11:14 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Ullmann (RETIRED) gentoo-dev 2007-05-18 15:23:41 UTC
As discussed on irc with robbat2 we need git daemon support on egret. Currently we handle it through http but repositories break way too often because no commit verification can be done on the server side.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-05-18 16:19:05 UTC
jokey: you missed something that I said.

git-daemon is ONLY for read-only checkouts.

It does NOT provide commit support at all.

Commits really should be done via the Git-SSH protocol.
Comment 2 Markus Ullmann (RETIRED) gentoo-dev 2007-05-18 18:40:48 UTC
okay, then we need to change infra's policy for egret
Comment 3 Mike Doty (RETIRED) gentoo-dev 2007-05-19 04:03:07 UTC
(In reply to comment #2)
> okay, then we need to change infra's policy for egret
> 

you have to be much more specific.
Comment 4 Markus Ullmann (RETIRED) gentoo-dev 2007-05-21 20:26:52 UTC
When the overlays project was started, infra's point is that only 3 admins get ssh access to it and not $random_dev and $random_user. So for git repos we need to tweak this then...
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-06-03 16:48:09 UTC
Ok, I was talking with Solar on this, regarding security implications.
1. For read-only (eg general public), We'll be running git-daemon. It's vastly more efficient than the HTTP methods.

2. For read-write users, we will be allowing SSH on a trial basis as follows.
- Will be using RBAC/grsec lockdown stuff from solar.
- Users will be created in LDAP at ou=overlayusers,dc=gentoo,dc=org, to prevent any existing boxes using them for authentication.
- The password field will be LOCKED (classical ! will be used).
- uidNumber will start at 30001 for these users.
- shell will be set to /usr/bin/git-shell (review the very short source here: http://tinyurl.com/2ttf5z)
- The only gentooAccess LDAP attribute will be overlays-git.group. No other gentooAccess attributes will be permitted for overlay-specific users.
- Users must provide valid email/cn/sn/gpgkey for their LDAP entries.
- LDAP attribute shadowExpire will be set to +3? months on a regular basis (Maybe need some other way of regularly detecting stale users for expiring).
Comment 6 Markus Ullmann (RETIRED) gentoo-dev 2007-07-02 20:53:34 UTC
Friendly monthly ping
Comment 7 Donnie Berkholz (RETIRED) gentoo-dev 2007-08-05 07:23:26 UTC
(In reply to comment #6)
> Friendly monthly ping

Guess that makes it about time for another, since that was July 2.
Comment 8 Markus Ullmann (RETIRED) gentoo-dev 2007-08-19 18:30:05 UTC
Okay, it's not that I dislike admin work but I have to reinstate some git overlays today, as they broke on push via http again.

So some days ago on IRC, robbat2 said he wants ACLs so people would be unable to reset the overlays. From today's point of view, I'd say, let's implement them now as-is, we can apply that ACL stuff later on.
Comment 9 Donnie Berkholz (RETIRED) gentoo-dev 2007-08-19 23:12:53 UTC
(In reply to comment #8)
> Okay, it's not that I dislike admin work but I have to reinstate some git
> overlays today, as they broke on push via http again.

FWIW, I am sort of hoping the recent update to git 1.5 on the server side will magically fix this, since previously I was on 1.5 locally pushing to 1.4 on the server.
Comment 10 Donnie Berkholz (RETIRED) gentoo-dev 2007-10-13 09:40:31 UTC
In #git, I was just pointed at a possible alternative that would be a 
major improvement to the current http setup, using a single SSH account: 
http://eagain.net/gitweb/?p=gitosis.git;a=blob;f=README.rst

   1 ==========================================================
   2  ``gitosis`` -- software for hosting ``git`` repositories
   3 ==========================================================
   4
   5         Manage ``git`` repositories, provide access to them over SSH,
   6         with tight access control and not needing shell accounts.
   7
   8 .. note::
   9
   10   Documentation is still lacking, and non-default configurations
   11   (e.g. config file, repositories, installing in a location that
   12         is not in ``PATH``) basically have not been tested at all.
   13         Basic usage should be very reliable -- the project has been
   14         hosting itself for a long time. Any help is welcome.
   15
   16 ``gitosis`` aims to make hosting ``git`` repos easier and safer. It
   17 manages multiple repositories under one user account, using SSH keys
   18
   to identify users. End users do not need shell accounts on the server,
   19 they will talk to one shared account that will not let them run
   20 arbitrary commands.
Comment 11 Garry Dolley 2007-11-16 10:45:41 UTC
There's a good tutorial on gitosis here:

http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way
Comment 12 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-12-25 12:31:23 UTC
A heavily-modified gitosis is implemented on the new overlays test box.
The existing Git overlay users have gotten an email about testing it.

git-daemon for readonly is not enabled until they have finished testing.
We will move the git overlays first, followed by SVN and Trac.
Comment 13 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-01-06 11:14:50 UTC
gitosis is live on git.overlays.gentoo.org