Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Switch to wget for integration apiserver checks #1384

Merged
merged 1 commit into from
Oct 13, 2017

Conversation

jpeeler
Copy link

@jpeeler jpeeler commented Oct 13, 2017

Read the commit for some more details. Essentially not all distros use the same encryption libraries and curl was failing validation in Fedora.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Oct 13, 2017
The NSS encryption library does not allow a CA to be used with the
extended key usage present, at least in the way we are currently doing
so. The generated self signed certificates extension section looks like:

...
        X509v3 extensions:
            X509v3 Key Usage: critical
                Digital Signature, Key Encipherment, Certificate Sign
            X509v3 Extended Key Usage:
                TLS Web Server Authentication
            X509v3 Basic Constraints: critical
                CA:TRUE
            X509v3 Subject Alternative Name:
                DNS:localhost, IP Address:127.0.0.1, IP Address:127.0.0.1

Testing with the extended key usage removed allows curl to work, but
simply switching to wget will allow integration tests to work on Fedora
immediately.

Related issue: kubernetes/client-go#311

(Also make sure when testing new certificates to delete certificates
previously generated in .var/run/kubernetes-service-catalog/. Existing
certificates are not overwritten if they already exist.)
@pmorie pmorie added the LGTM1 label Oct 13, 2017
@vaikas vaikas added the LGTM2 label Oct 13, 2017
@vaikas vaikas merged commit 11f18f3 into kubernetes-retired:master Oct 13, 2017
@pmorie pmorie added this to the 0.1.0-rc2 milestone Oct 17, 2017
@n3wscott
Copy link
Contributor

This breaks on a default Mac install.

<snip>
Waiting for API Server to be available...
Timed-out waiting for API Server
+ wget --ca-certificate ~/go/src/github.com/kubernetes-incubator/service-catalog/.var/run/kubernetes-service-catalog/apiserver.crt https://localhost:32784
~/go/src/github.com/kubernetes-incubator/service-catalog/contrib/hack/start-server.sh: line 60: wget: command not found
Cleaning up
make: *** [test-integration] Error 127

@pmorie
Copy link
Contributor

pmorie commented Oct 17, 2017 via email

@jpeeler
Copy link
Author

jpeeler commented Oct 18, 2017

If the certificate usage restriction was dropped (kubernetes/client-go#311) this wouldn't be a problem. Sounds like for now it needs to be made conditional though.

jpeeler pushed a commit to jpeeler/service-catalog that referenced this pull request Nov 17, 2017
…etired#1384)"

This reverts commit 11f18f3.

Fedora ended up switching back to OpenSSL, so there's no reason to use
wget over curl anymore. Apologies about the switching around, had no
idea the change was coming.

Closes kubernetes-retired#1418
kibbles-n-bytes pushed a commit that referenced this pull request Jan 4, 2018
This reverts commit 11f18f3.

Fedora ended up switching back to OpenSSL, so there's no reason to use
wget over curl anymore. Apologies about the switching around, had no
idea the change was coming.

Closes #1418
jberkhahn pushed a commit to jberkhahn/service-catalog that referenced this pull request Jan 17, 2018
…etired#1384)" (kubernetes-retired#1585)

This reverts commit 11f18f3.

Fedora ended up switching back to OpenSSL, so there's no reason to use
wget over curl anymore. Apologies about the switching around, had no
idea the change was coming.

Closes kubernetes-retired#1418
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. LGTM1 LGTM2 size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants