Bug 1670733
| Summary: | Optional config maps / secrets are not handled correctly in IDP config | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Chuan Yu <chuyu> |
| Component: | apiserver-auth | Assignee: | Standa Laznicka <slaznick> |
| Status: | CLOSED ERRATA | QA Contact: | Chuan Yu <chuyu> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 4.1.0 | CC: | aos-bugs, mifiedle, nagrawal, slaznick |
| Target Milestone: | --- | Keywords: | TestBlocker |
| Target Release: | 4.1.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | No Doc Update | |
| Doc Text: |
undefined
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-06-04 10:42:28 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: | |||
Already tracked in https://jira.coreos.com/browse/AUTH-232 Since the PR has merged, moved to ON_QA to verify. The github and google IDP working now. $ oc get clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.0.0-0.nightly-2019-02-12-005016 True False 17h Cluster version is 4.0.0-0.nightly-2019-02-12-005016 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, 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/RHBA-2019:0758 |
Description of problem: when configure github idp 'ca' field, the field not handled correctly in IDP config Version-Release number of selected component (if applicable): oc get clusterversion NAME VERSION version 4.0.0-0.nightly-2019-01-29-025207 How reproducible: always Steps to Reproduce: 1.when configure github idp 'ca' field is optional, but pod logs display `MountVolume.SetUp failed for volume "v4-0-config-user-idp-1--ca-crt" : configmap "v4-0-config-user-idp-1--ca-crt" not found`,so after edit oauth resource, the new authentication pod can not create successfully.And set 'ca: {}',still have this problem. ''' apiVersion: config.openshift.io/v1 kind: OAuth metadata: name: cluster spec: identityProviders: - name: htpassidp challenge: true login: true mappingMethod: claim type: HTPasswd htpasswd: fileData: name: htpass-secret - name: github challenge: false login: true mappingMethod: claim type: GitHub github: ca: {} clientID: c8ae7fa7fb268595719b clientSecret: name: my-secret ''' 2. 3. Actual results: pod failed to create. Expected results: The pod created successfully. Additional info: Also tried the Google IDP, the clientSecret still could not mount to the openshift-authentication pod.