Project

General

Profile

Actions

Feature #6619

closed

[Deployment] [Documentation] Install system-wide git credential helper for arvados-hosted https git-urls

Added by Tom Clegg almost 9 years ago. Updated almost 9 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Deployment
Target version:
Story points:
-

Description

Git can be configured to use the ARVADOS_API_TOKEN environment variable to authenticate to gitolite. A single-user setup would look like this:
  • git config 'credential.https://git.zzzzz.arvadosapi.com/.username' none
    git config 'credential.https://git.zzzzz.arvadosapi.com/.helper' \
     '!cred(){ cat >/dev/null; if [ "$1" = get ]; then echo password=$ARVADOS_API_TOKEN; fi; };cred'
    
  • See source:services/arv-git-httpd/server_test.go#L77 for a working example used in the test suite.

(The literal username "none" is for real. It's just a placeholder; the arv-git-httpd server ignores it.)

This should be enabled by default on all shell VMs by running git config --system ..., installing a /etc/gitconfig with puppet, or [...].

This setup should also be documented at http://doc.arvados.org/install/install-shell-server.html


Subtasks 1 (0 open1 closed)

Task #6671: Review branch: 6619-doc-updateResolvedRadhika Chippada07/20/2015Actions

Related issues

Blocks Arvados - Idea #6617: [Workbench] [Documentation] Display https url in repositories panel in manage_account page. Update documentation as needed.ResolvedRadhika Chippada07/17/2015Actions
Actions

Also available in: Atom PDF