Skip to content

[req] Private Registry Support #27

Closed

Description

@BugRoger

The concepts in Concourse are really nice. Implementing resources as Docker containers is genius. Very promising project. I feel like its feature set is dearly missing from other CI tools. 😄 Unfortunately I ran into some showstoppers immediately.

We are running a private Docker registry. It uses a self-signed certificate. I couldn't get tasks with custom docker images to work. There was a timeout in garden-linux' logs.

I am currently using the Vagrant box. I modified /var/vcap/jobs/garden/bin/garden_ctl to include -insecureDockerRegistryList or -registry but that didn't make a difference. Are there any workarounds to inject our custom root CA certificate into it? And if so, I am probably going to have to add our corporate proxy next.

Activity

  1. vito commented on Apr 27, 2015

    @vito
    Contributor

    Thanks! What format did you use when specifying insecureDockerRegistryList?
    Looks like it expects IP:port pairs. I think that flag should have worked.

    In addition to tweaking the flag manually, there is a property you can set
    as part of a bosh deployment manifest, which you'd have to stop using the
    concourse/lite boxes to use. Could try bosh lite.

    See
    http://bosh.io/jobs/garden?source=github.com/cloudfoundry-incubator/garden-linux-release&version=0.198.0
    and http://concourse.ci/deploying-with-bosh.html

    Currently there's no way to specify auth credentials with the registry, so
    that may be a second showstopper (unless you just run your registry within
    your private network with no auth).
    On Apr 27, 2015 8:47 AM, "Michael Schmidt" [email protected] wrote:

    The concepts in Concourse are really nice. Implementing resources as
    Docker containers is genius. Very promising project. I feel like its
    feature set is dearly missing from other CI tools. [image: 😄]
    Unfortunately I ran into some showstoppers immediately.

    We are running a private Docker registry. It uses a self-signed
    certificate. I couldn't get tasks with custom docker images to work. There
    was a timeout in garden-linux' logs.

    I am currently using the Vagrant box. I modified
    /var/vcap/jobs/garden/bin/garden_ctl to include
    -insecureDockerRegistryList or -registry but that didn't make a
    difference. Are there any workarounds to inject our custom root CA
    certificate into it? And if so, I am probably going to have to add our
    corporate proxy next.

    —
    Reply to this email directly or view it on GitHub
    #27.

  2. BugRoger commented on Apr 28, 2015

    @BugRoger
    Author

    Thanks for your help, @vito. I tried various other combinations but no dice. 😒

    Seems like there are some related issues for garden-linux already: cloudfoundry-attic/garden-linux#31, cloudfoundry-attic/garden-linux#24

  3. jbayer commented on Jun 14, 2015

    @jbayer
  4. BugRoger commented on Jun 15, 2015

    @BugRoger
    Author

    @jbayer Thanks for the link.

    We got this working. More or less. We are now building our own Bosh release and monkey our certificates and proxy configuration into various places.

    It still is a big struggle to get the configuration into every layer of the Docker onion. For example, we currently are reworking the docker-image-resource to allow login to our registry.

    I suppose not everyone is running their own Root Certificate Authority and is plagued with a corporate proxy. But running a private registry in HTTPs is pretty common, I think.

  5. concourse-bot commented on Jul 21, 2015

    @concourse-bot

    Hi there!

    We use Pivotal Tracker to provide visibility into what our team is working on. A story for this issue has been automatically created.

    The current status is as follows:

    • #99488428 Support registries with self-signed certs

    This comment, as well as the labels on the issue, will be automatically updated as the status in Tracker changes.

  6. hamid-elaosta commented on Apr 13, 2016

    @hamid-elaosta

    This is a feature I'm interested in too. I just deployed our private registry which is self-signed, unfortunately, using the insecure-registry options, although working, is not acceptable for our environment.

    I am not overly familiar with the structure of Concourse, but I suspect that the resource running as a Docker container is what is preventing the docker-image resource pushing to my registry from picking up the CA certs registered with the host machine.

    I need a way to have the worker trust our registry by providing it with the corporate CA we use.

  7. aquavitae commented on Jun 1, 2016

    @aquavitae

    This is a major issue for me too. Any progress on this?

    @BugRoger how did you end up monkey patching docker-image-resource? It's the one piece I can't figure out how to get working

  8. concourse-bot commented on Jun 13, 2016

    @concourse-bot

    Hello again!

    All stories related to this issue have been accepted, so I'm going to automatically close this issue.

    At the time of writing, the following stories have been accepted:

    • #99488428 Support registries with self-signed certs

    If you feel there is still more to be done, or if you have any questions, leave a comment and we'll reopen if necessary!

  9. added a commit that references this issue on Aug 17, 2016
  10. endzyme commented on Aug 23, 2016

    @endzyme

    So this is confusing - is the change being made into mainline?

  11. vito commented on Aug 23, 2016

    @vito
    Contributor
  12. endzyme commented on Aug 23, 2016

    @endzyme

    Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions