| Summary: | oc login can not handle embeded certificate-authority-data | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Ryan Howe <rhowe> |
| Component: | oc | Assignee: | Fabiano Franz <ffranz> |
| Status: | CLOSED WORKSFORME | QA Contact: | Xingxing Xia <xxia> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.3.0 | CC: | aos-bugs, jokerman, mmccomas, rhowe |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-11-10 16:54:44 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Ryan Howe
2016-11-09 21:24:09 UTC
EDIT: Example to break it again. # oc config set-cluster openshift-example-com:443 --server=https://openshift.example.com --certificate-authority=etc/origin/master/ca.crt --embed-certs=true # oc login -u system:admin The server uses a certificate signed by an unknown authority. You can bypass the certificate check, but any data you send to the server could be intercepted by others. Use insecure connections? (y/n): y Authentication required for https://openshift.example.com:443 Username: system:admin Password: Can you please attach the contents of your original admin.kubeconfig and ca.crt? Closing this as this bug is incorrect. Created new bug 1393943 https://bugzilla.redhat.com/show_bug.cgi?id=1393943 After digging deeper this issue is when the port is not included with the server in the kubeconfig file. In a cluster that has changed the default api port to 443. All the URLs in the master-config.yaml do not include port 443 in the URL, since 443 is defaulted with https. The kubeconfig has server set to just the url, this is when user gets message. The the certificate is signed by an unknown authority on login. |