Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to manage TLS certificates for registries #159

Closed
trisberg opened this issue Mar 15, 2019 · 4 comments
Closed

How to manage TLS certificates for registries #159

trisberg opened this issue Mar 15, 2019 · 4 comments
Labels
status/discussion-needed Issue or PR that requires in-depth discussion.

Comments

@trisberg
Copy link

Any thoughts on how to provide self-signed certificates for a registry that is targeted for builds?

This applies both to pack and to the knative buildtemplate AFAICT.

So far I have been getting x509: certificate signed by unknown authority errors when building against a registry that is using self-signed certificates.

@nebhale nebhale transferred this issue from buildpacks/roadmap Apr 11, 2019
@izaakschroeder
Copy link

izaakschroeder commented Jun 5, 2019

^ In the same boat 😄

For generating the builder I've pretty much resorted to using --no-pull and manually invoking docker pull on the stack run and build images.

@jonjohnsonjr
Copy link

jonjohnsonjr commented Dec 9, 2019

Dropping some breadcrumbs in case I ever fix this: google/go-containerregistry#211

tl;dr go-containerregistry doesn't respect docker's self-signed certificate configuration, but you can workaround that by adding certs to your system or by using go's environment variables for adding certs.

@jromero jromero added the status/triage Issue or PR that requires contributor attention. label Feb 5, 2020
@natalieparellano natalieparellano added the status/discussion-needed Issue or PR that requires in-depth discussion. label Feb 5, 2020
@natalieparellano
Copy link
Member

Perhaps an outcome could be that we document the workaround in some easily discoverable place?

@dfreilich
Copy link
Member

There is an open RFC for this issue here: buildpacks/rfcs#69, and this seems pretty related to #170. I'll close it in favor of that issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/discussion-needed Issue or PR that requires in-depth discussion.
Projects
None yet
Development

No branches or pull requests

6 participants