Project

General

Profile

Actions

Idea #12961

closed

Support Bitbucket git repo access from Composer

Added by Tom Morris about 6 years ago. Updated over 4 years ago.

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

Description

  • How to discover available git repos? (currently uses "repositories" table)
  • How to authenticate to git repo? (currently uses user token)
  • Does git repo support CORS to allow browser access?
  • Can crunch-run access git repo for checkout when executing with "run" button?
Actions #1

Updated by Tom Morris about 6 years ago

  • Status changed from New to In Progress
Actions #2

Updated by Tom Morris about 6 years ago

Storing reference to the Git repo
CORS
Authentication
Run button assumes it can commit to Arvados repo

Actions #3

Updated by Peter Amstutz about 6 years ago

  • Description updated (diff)
Actions #5

Updated by Tom Clegg about 6 years ago

One possible way to achieve this (without storing credentials or requiring the client to have full git functionality and bandwidth) is a "fetch remote git repo with credentials" API.
  • API request includes necessary credentials (e.g., the Authorization header to send to the remote git server)
  • API fetches the desired ref (or the entire repo) into a local repo ("internal.git"?)
  • API response includes the necessary information to use the desired tree in the "mounts" field of a container request
Actions #6

Updated by Peter Amstutz about 6 years ago

Uh, apparently the cloud hosted bitbucket uses a different 2.0 API?

https://developer.atlassian.com/bitbucket/api/2/reference/resource/

We'll need to clarify which one we need to support.

Actions #7

Updated by Peter Amstutz about 6 years ago

Proposed Composer workflow:

  • Get Bitbucket hostname / username / password from user
  • Use Bitbucket API to list repositories (supports Basic auth over HTTPS)
  • Use git HTTPS to pull/push repository
  • To run:
    • API call "fetch remote repo" into arvados hosted repo (note 5), provides credentials to use to contact bitbucket
    • make container request using arvados hosted repo
Actions #8

Updated by Tom Morris about 6 years ago

  • Status changed from In Progress to New
Actions #9

Updated by Tom Morris about 6 years ago

  • Project changed from 35 to Arvados
Actions #10

Updated by Peter Amstutz over 4 years ago

  • Status changed from New to Closed
Actions #11

Updated by Peter Amstutz over 4 years ago

  • Target version deleted (To Be Groomed)
Actions

Also available in: Atom PDF