Skip to content

Conversation

@jcaianirh
Copy link
Member

@jcaianirh jcaianirh commented Mar 23, 2019

https://jira.coreos.com/browse/CONSOLE-1285

Create form for OpenIDP Connect, and add route to the form via the Oath Cluster Settings Page. The form follows the design located here:
https://github.com/openshift/openshift-origin-design/blob/b1bb5ed27f9da2067f91fc24d3888c1e3efa0912/web-console/futures/oauth/oauth.md

Screen Shot 2019-03-26 at 3 29 02 PM

@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 23, 2019
@openshift-ci-robot openshift-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Mar 23, 2019
@jcaianirh
Copy link
Member Author

@bmignano The text specified for the Client Secret states:

This value may also be provided in an environment variable, external file, or encrypted file.

But the field is shown as required. Should this field not be marked required?

@bmignano
Copy link

@jcaianirh It's looking great! I think we can make that Client Secret field optional. I think we also probably want to include the default text for the claims fields (shown in the design doc).

@spadgett
Copy link
Member

spadgett commented Mar 25, 2019

It looks like client secret is required in the API.

This value may also be provided in an environment variable, external file, or encrypted file.

@jcaianirh where is that text from?

@jcaianirh
Copy link
Member Author

jcaianirh commented Mar 25, 2019

@spadgett The text came from @bmignano. I think she got the text here: https://docs.openshift.com/container-platform/3.7/install_config/configuring_authentication.html
Is that text outdated?

@spadgett
Copy link
Member

OK, this has all changed in 4.0. It's no longer optional and must be provided in a secret.

https://github.com/openshift/api/blob/master/config/v1/types_oauth.go#L496-L500

@spadgett
Copy link
Member

Claims is an array in the API. Are we going to provide a way to add additional claims? If not, we should at least adjust the heading and text.

There needs to be some additional help text on many of these fields.

It's not obvious to me how to enter extra scopes and extra authorize parameters since these aren't simple strings.

If we need to trim things back to the essentials, we can do that since feature freeze is rapidly approaching. We can always add to this form.

cc @enj

@spadgett
Copy link
Member

Related API changes pending: openshift/api#265

@jcaianirh
Copy link
Member Author

jcaianirh commented Mar 26, 2019

@spadgett added api changes for openid connect except for More Options. Do we want to move forward with that part of the form for openid? Added single array for claims. Removed the outdated client secret help text. Successfully created openid connect providers. @bmignano Added default values for claims text fields. Updated the description screenshot above.

@spadgett looks like urls and the two booleans are going away in favor of an issuer based on todays new api changes.

Copy link
Member

@spadgett spadgett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jcaianirh. The API changes are in place, so we should update this PR.

I realize this is WIP, but I don't see where you're handling the CA file. We'll need that.

We might punt on extra scopes and extra authorize parameters on the initial PR if they're not common. @enj could say better

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should eventually create a common component for mapping method so we don't repeat it 9 times, but I'd leave it for now

@jcaianirh
Copy link
Member Author

@spadgett updated code to address comments. need to add ca.

@jcaianirh
Copy link
Member Author

@spadgett Added optional ca and replied to review comments except claims. What do you think of making them mandatory and removing the help text?

@spadgett
Copy link
Member

@spadgett Added optional ca and replied to review comments except claims. What do you think of making them mandatory and removing the help text?

It doesn't look like you need to supply all of them though. We'll need confirmation from the auth team. Each of these is an array in the API.

@enj We need help understanding this :)

@jcaianirh
Copy link
Member Author

@spadgett @bmignano updated screenshot.

@spadgett
Copy link
Member

@enj I pushed a commit that allows you to set more than one claim value and extra scopes. We probably need better help text on these fields, but it's a start.

@jcaianirh PTAL

Add Identity Provider: OpenID Connect · OKD 2019-03-26 19-36-54

jcaianirh and others added 2 commits March 26, 2019 19:43
* Allow users to set more than one claim value and extra scopes
* Add generic `ListInput` component
* Clean up promises
@spadgett
Copy link
Member

/lgtm
/hold

@jcaianirh I squashed the commits as well. Feel free to hold cancel if this looks good

@openshift-ci-robot openshift-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. lgtm Indicates that a PR is ready to be merged. labels Mar 26, 2019
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jcaianirh, spadgett

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 26, 2019
@jcaianirh jcaianirh changed the title [WIP]: Add OpenIDP Connect Form to Cluster Settings Oath Page Add OpenIDP Connect Form to Cluster Settings Oath Page Mar 27, 2019
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 27, 2019
@jcaianirh
Copy link
Member Author

/hold cancel

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 27, 2019
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

2 similar comments
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@spadgett spadgett changed the title Add OpenIDP Connect Form to Cluster Settings Oath Page Add OpenIDP Connect Form to Cluster Settings OAuth Page Mar 27, 2019
@spadgett
Copy link
Member

/retest

@spadgett
Copy link
Member

It looks like the storage tests might be fixed now.

/retest

@spadgett
Copy link
Member

/retest

2 similar comments
@spadgett
Copy link
Member

/retest

@spadgett
Copy link
Member

/retest

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@spadgett
Copy link
Member

/retest

1 similar comment
@spadgett
Copy link
Member

/retest

@openshift-merge-robot openshift-merge-robot merged commit 625390c into openshift:master Mar 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants