Uploaded image for project: 'Bamboo'
  1. Bamboo
  2. BAM-11369

If I want to use git submodules then I shouldn't have to upload and configure SSH keys on each Bamboo Agent.

    XMLWordPrintable

    Details

    • UIS:
      42
    • Support reference count:
      42
    • Feedback Policy:

      Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Description

      I'm not sure if this is applicable, so if someone find this issue wrong - please 'wontfix' it.

      Lets assume we have a Git repository hosted via ssh:// protocol. Access to that repository is via the ssh (rsa) private/public key authentication. Lets assume the repo contain submodules. So for example we have in .submodules

      [submodule "submodules/core"]
      	path = submodules/core
      	url = ssh://git.company.com/projects/core.git
      

      (where our repository is under ssh://git.company.com/projects/product.git)

      In such scenario Bamboo Agents will do:
      1) fetch the data from ssh://d73ceba5-2327-4e81-8c63-f61ad3024bc3@127.0.0.1:58505/projects/product.git -PROXIED> ssh://git.company.com/projects/product.git to agent's Job working directory
      2) bamboo issues "git submodule init; git submodule update" commands.
      3) thus git notices there are some submodules defined (in "workDir/.submodules" file)
      4) git will execute another fetch, this time from ssh://git.company.com/projects/core.git and will put it under ./submodules/core directory (note that here it is the Git that deduces the correct url from .submodules file, not the Bamboo).
      5) finish (update the workspace, index, etc)

      Now, problem is in step (4) - it won't go through Bamboo SSH proxy, and as it won't be proxied the Bamboo user will have to setup all Bamboo Agents correctly (with .ssh/config files and rsa-identity files). This can be PITA. Would be good if somehow Bamboo would work with submodules in more transparent way so the Bamboo user wouldn't have to do the setup manually.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              jac-bamboo-user Bamboo User on JAC
              Votes:
              229 Vote for this issue
              Watchers:
              161 Start watching this issue

                Dates

                Created:
                Updated: