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

git + davfs2, is it safe?

From
GFGábor Farkas <gabor@nekomancer.net>
Date
Feb 9, 2010, 16:39 UTC
Message-ID
<2c173a351002090839v45d01d5dt17e4b4af37e84615@mail.gmail.com>
hi,

for various reasons our git repositories are hosted using https (webdav), which is http-auth and client-certificate authenticated.

(linux on both the server and the client)

it's possible to somehow persuade git to push/fetch from such repositories, but it's very annoying because either you have to enter your username+password+cert_password on every fetch and twice on every push, or you have to write them down in $HOME/.netrc .

an alternative that seems to work is to mount the webdav directory using davfs2, and then use it with git as a normal mounted filesystem.

it seems to work ok (a little slow, but usable), but i'm a little worried about possible corner-cases. for example, will it be ok if two people are trying to push into it at the same time, etc?

so generally, is it safe/recommended to use git in such a deployment, or not?

p.s: or, does anyone know about a better way to handle the username/password/cert_password when accessing the webdav-repo directly (without davfs2)?

thanks, gabor

Next: Shawn O. Pearce
Message 1 of 2 in “git + davfs2, is it safe?”
  1. Gábor FarkasFeb 9, 2010
  2. Shawn O. PearceFeb 9, 2010

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.