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

Re: git smart http + apache mod_auth_openidc

From
RERalph Ewig <ralph.phd@protonmail.com>
Date
Oct 18, 2019, 01:18 UTC
Message-ID
<20b6729f-a05e-b658-2cd4-70cb7a9d17b7@protonmail.com>
In-Reply-To
<20191017225529.sg37cxvyssbaitfw@camp.crustytoothpaste.net>
Understood (and agree).

We do use git for source code (where we use SSH and key authentication for CI/CD), but also for configuration control of other files like financial reports, engineering drawings, etc. where access is via HTTPS.  In that 2nd group the challenge is to make it as "not coding like" as possible so the non-developer crowd isn't scared off.

Since we use trac for project management company wide (all verticals), my latest idea is to intercept the git http request on the server side to authenticate against the trac session info stored in the db (using a custom php script),  and then pass it on to git-http-backend or throw an error prompting the user to sign into trac first. Most users are signed into trac 24/7 anyway since its central to our workflow.

in the end paying the extra fee for MS Domain Services to get SSO via LDAP or Kerberos might be the right answer though - just trying to be scrappy if I can since it's an early stage startup. Nonetheless really appreciate the exchange of ideas!

Ralph
On 10/17/2019 3:55 PM, brian m. carlson wrote:
Show 20 quoted lines
> On 2019-10-17 at 14:33:38, Ralph Ewig wrote:
>> Quick follow up question: can the git client pass
>> a token read from a cookie with a request? That
>> would enable users to sign-in via a browser, store
>> the cookie, and then use that as the access token
>> to authenticate a git request.
> Git has an option, http.cookieFile, that can read a cookie from a file,
> yes.  That does, of course, require that you're able to put the cookie
> in a file from a web browser.  I'm not aware of any web browsers that
> easily provide an option to dump cookies into a file.
>
> Also, just as a note, this approach definitely won't work for automated
> systems you have, such as CI systems.  That's why I suggested Kerberos:
> because you can have services that have principals and you can use those
> credentials in your CI systems to access code and run jobs.
>
> Clearly you know your infrastructure and users better than I do, but I
> don't recommend having a web-based sign-on as your only form of
> authentication for a Git server.  It's going to cause a lot of pain and
> inconvenience on all sides.
Previous: brian m. carlson
Message 8 of 8 in “git smart http + apache mod_auth_openidc”
  1. Ralph EwigOct 15, 2019
  2. brian m. carlsonOct 16, 2019
  3. Ralph EwigOct 17, 2019
  4. Jeff KingOct 17, 2019
  5. Ralph EwigOct 17, 2019
  6. Ralph EwigOct 17, 2019
  7. brian m. carlsonOct 17, 2019
  8. Ralph EwigOct 18, 2019

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.