Bug 2040521
Summary: | RouterCertsDegraded certificate could not validate route hostname v4-0-config-system-custom-router-certs.apps | |||
---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Andrew Collins <ancollin> | |
Component: | apiserver-auth | Assignee: | Krzysztof Ostrowski <kostrows> | |
Status: | CLOSED ERRATA | QA Contact: | Xingxing Xia <xxia> | |
Severity: | medium | Docs Contact: | ||
Priority: | high | |||
Version: | 4.9 | CC: | aos-bugs, chrzhang, hongli, kgordeev, kostrows, ksathe, mfojtik, mjoseph, nachahua, surbania, wlewis, xxia, ytripath | |
Target Milestone: | --- | Flags: | ancollin:
needinfo-
|
|
Target Release: | 4.10.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | If docs needed, set a value | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 2077483 (view as bug list) | Environment: | ||
Last Closed: | 2022-03-10 16:39:13 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: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 2077483 |
Description
Andrew Collins
2022-01-13 22:29:41 UTC
Ok, I might have found it: https://github.com/openshift/cluster-authentication-operator/commit/7c29d664bd571ce5f8e99456a206584651d200a7#diff-0d623dfd885ad[…]e79805c3b48de6R311 "v4-0-config-system-custom-router-certs" is the last argument in pkg/operator/starter.go https://github.com/openshift/cluster-authentication-operator/commit/7c29d664bd571ce5f8e99456a206584651d200a7#diff-efa5ab900a24c[…]ffcf43ad19a67f0R59 but in the constructor we expect it as the one before the last. -> we set the routeName as customSecretName and vis a versa: "v4-0-config-system-router-certs", "oauth-openshift", "v4-0-config-system-custom-router-certs", should be "v4-0-config-system-router-certs", "v4-0-config-system-custom-router-certs", "oauth-openshift", Yes, I was thinking the same. @ancollin mentioned that he has a workaround. Set to severity medium. Pull request created with solution, but still looking for a good way to prevent it from happening again. https://github.com/openshift/cluster-authentication-operator/pull/533 Verified on upgrade from ocp-release:4.8.24-x86_64 to 4.9.0-0.nightly-2022-02-02-193336 1. Created and applied a custom certificate with Issuer: C = US, ST = NY, O = Local Developement, L = Local Developement, CN = oauth-openshift.apps.<cluster-name>.openshift.com, subjectAltName = DNS:oauth-openshift.apps.<cluster-name>.openshift.com, OU = Local Developement 2. Upgraded cluster from ocp-release:4.8.24-x86_64 to 4.9.0-0.nightly-2022-02-02-193336 Actual Results: Upgrade completes successfully $ oc get co authentication 4.9.0-0.nightly-2022-02-02-193336 True False False 6h44m Expected Results: Upgrade completes successfully Just for the sake of documentation: The "workaround" I had here was to add the "v4-0.*" route as a Subject-Alternative-Name on the certificate we were using for the ingress router. In this case, we already had all of the platform routes added as SANs, since we route application routes through different IngressControllers. Hi could be this helpful, Installation on $.8 doesn't give a problem with a bare certificate. but on 4.9 it does: This fixed it: https://access.redhat.com/solutions/4542531 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Container Platform 4.10.3 security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:0056 The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days |