Bug 1696115
| Summary: | [admin] IdentityProvider with duplicated name should not be created successfully. | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | XiaochuanWang <xiaocwan> |
| Component: | Management Console | Assignee: | Samuel Padgett <spadgett> |
| Status: | CLOSED ERRATA | QA Contact: | Yadan Pei <yapei> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 4.1.0 | CC: | aos-bugs, chuyu, eparis, evb, gblomqui, jokerman, mkhan, mmccomas, nagrawal, pweil, spadgett |
| Target Milestone: | --- | ||
| Target Release: | 4.2.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | f this bug is not fixed by Friday, May 3, we will move this to 4.2. Update 5/2: All the changes for fix are done in PR, awaiting CI | ||
| Fixed In Version: | Doc Type: | No Doc Update | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-06-04 10:47:03 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: | |||
|
Description
XiaochuanWang
2019-04-04 07:51:52 UTC
Changing component to Auth since the validation needs to happen on the backend. Otherwise it would be possible to create duplicate names from other clients. Should be handled as part of OAuth CRD validation: https://github.com/openshift/origin/pull/21922 *** Bug 1677587 has been marked as a duplicate of this bug. *** Function is acceptable, will move it to Verified. Duplicated name for identity provider is not allowed to be created on console. It behave correctly on both htpasswd and OpenId with Gitlab. Only the slightly change now is the new creating OpenId page will open as an edit view but it does create a new one. But I assume here is a new issue for OpenId creating page when there is already one: The values of ClientID and ClientSecret should better to be cleared when creating the 2nd one, otherwise the existing one still match the previous callback url and it won't work for the new Identity Provider name. User need to remove both values sooner or later. Tested on Cluster version: 4.1.0-rc.3 image: quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:e6dd4bf3fdb483a93d6e84a5574e0f2514cb1cbf1b4407e52e6c94fd66e3648d Commit ID: https://github.com/openshift/console/commit/d8fc460a3d0e9f8de3d14373de8f36ba09103537 (In reply to Samuel Padgett from comment #2) > Changing component to Auth since the validation needs to happen on the > backend. Otherwise it would be possible to create duplicate names from other > clients. Moving back to console since the issue being mentioned is specific to the UI. I do think we should just close this BZ and make a new one. (In reply to XiaochuanWang from comment #9) > > But I assume here is a new issue for OpenId creating page when there is > already one: > The values of ClientID and ClientSecret should better to be cleared when > creating the 2nd one, otherwise the existing one still match the previous > callback url and it won't work for the new Identity Provider name. User need > to remove both values sooner or later. I'm not sure I understand what the issue is. Can you give specific steps to reproduce? This sounds like it should be a different bug, however. Agree to move it to Verified since the duplicated name failed to created since the issue now is specific to console. Tested on Cluster version: 4.1.0-rc.3 image: quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:e6dd4bf3fdb483a93d6e84a5574e0f2514cb1cbf1b4407e52e6c94fd66e3648d Commit ID: https://github.com/openshift/console/commit/d8fc460a3d0e9f8de3d14373de8f36ba09103537 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 |