git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: is gitosis secure?

From
Ddavid@lang.hm <david@lang.hm>
Date
Dec 15, 2008, 01:20 UTC
Message-ID
<alpine.DEB.1.10.0812141700330.17688@asgard.lang.hm>
In-Reply-To
<gi2rej$1mn$1@ger.gmane.org>
On Sun, 14 Dec 2008, Sitaram Chamarty wrote:
Show 18 quoted lines
> On 2008-12-14, david@lang.hm <david@lang.hm> wrote:
>> On Sun, 14 Dec 2008, martin wrote:
>>> Why do you trust VPN more than the SSH?
>> in part it's that a VPN is a single point of control for all remote
>> access.
>>
>> If you use ssh you end up exposing all the individual machines
>
> Need not be true.  None of my internal servers aer even
> accessible from the outside world; they're all in RFC1918
> space and there's only one gateway.  This *is* my single
> point of control.
>
> I can setup different port numbers to forward to different
> internal servers (ssh, http, whatever I wish); that may
> sound like a form of "exposing" but in reality it's a lot
> *more* restrictive than setting up a VPN and granting access
> to it.

if you setup multiple inbound redirects for SSH (be they different IP addresses or different ports), then you have the exact same situation as those machines being accessed directly.

Show 7 quoted lines
> I actually don't like VPNs; they imply that you're "inside"
> the network in some way, and I hate blurring that
> distinction.  If I'm outside, I want to be acutely aware of
> it, and the fact that I can't even ping one of the inside
> hosts or see what's on it, or do anything other than what is
> specifically allowed by the gateway, is one way of ensuring
> this.

this is the mindset about SSH that I don't like. I see allowing SSH in as blurring that distinction.

With a VPN you aren't blurring it, you _are_ letting the person into your network. it's not appropriate to do this for everyone, but in the initial post the desire was to have trusted company employees working remotely push data to the repository. In that scenerio a VPN makes sense. If you were doing a distributed opensource project it would probably not make sense to allow contributers that you only know via e-mail to VPN into a network to do their push (it can be agued that they shouldn't be doing a push at all, but that's a workflow discussion ;-)

many people who would never allow a person to VPN into a network seem to have no problem with that same person useing SSH to login to a machine on that same network (and usually without trying to setup a limited shell). In my opinion SSH and VPN access are both in the same category.

In both cases you can limit what the person you are granting access can do. with a VPN you would use a firewall to control what they can access after connecting to the VPN, with SSH you have to have the server they are connecting to configured to limit what they can do.

VPNs tend to have better tools for auditing access and doing strong authentication other than certificates (even certificate plus password is better than just certificate). cerificates are good and useful, but they aren't always enough by themselves.

there have been a number of breeches over the last few years that have resulted from one client machine with SSH being comprimized and the credentials then used to hop to other machines, gather other credentials to then use to comprimize other machines, etc. while I am sure that there have also been networks comprimized via VPN, I haven't heard of any daisy-chain type attacks involving VPN access.

SSH is a monoculture. there is essentially only one implementation that is used (although there are patches to it in some cases), and while it is pretty good, any problems with it give you no options. with VPNs there are many implementations, if any one has a problem it's possible to replace it (painful to change out clients, but possible)

David Lang
Previous: Sitaram ChamartyNext: Jakub Narebski
Message 30 of 41 in “is gitosis secure?”
  1. Thomas KochDec 9, 2008
  2. Sam VilainDec 9, 2008
  3. Florian WeimerJan 18, 2009
  4. Boyd Stephen Smith Jr.Jan 18, 2009
  5. Florian WeimerJan 18, 2009
  6. Boyd Stephen Smith Jr.Jan 18, 2009
  7. Tommi VirtanenFeb 3, 2009
  8. Stephen R. van den BergFeb 4, 2009
  9. Tommi VirtanenFeb 4, 2009
  10. Stephen R. van den BergFeb 5, 2009
  11. Tommi VirtanenFeb 5, 2009
  12. R. Tyler BallanceDec 9, 2008
  13. Tommi VirtanenFeb 3, 2009
  14. Sverre RabbelierDec 9, 2008
  15. NixDec 13, 2008
  16. Sverre RabbelierDec 13, 2008
  17. Sitaram ChamartyDec 14, 2008
  18. david@lang.hmDec 14, 2008
  19. martinDec 14, 2008
  20. david@lang.hmDec 14, 2008
  21. Jakub NarebskiDec 14, 2008
  22. david@lang.hmDec 15, 2008
  23. martinDec 14, 2008
  24. david@lang.hmDec 15, 2008
  25. Mike HommeyDec 15, 2008
  26. david@lang.hmDec 15, 2008
  27. Mike HommeyDec 15, 2008
  28. TaitDec 15, 2008
  29. Sitaram ChamartyDec 14, 2008
  30. david@lang.hmDec 15, 2008
  31. Jakub NarebskiDec 14, 2008
  32. david@lang.hmDec 15, 2008
  33. Rogan DawesDec 15, 2008
  34. david@lang.hmDec 15, 2008
  35. Rogan DawesDec 15, 2008
  36. Jakub NarebskiDec 14, 2008
  37. NixDec 15, 2008
  38. david@lang.hmDec 15, 2008
  39. Asheesh LaroiaDec 15, 2008
  40. david@lang.hmDec 15, 2008
  41. Garry DolleyDec 9, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.