-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate kindAppOrSAMLIdPServiceProvider, AppServerOrSAMLIdPServiceProvider
and use types.SAMLIdPServiceProvider
#38709
Deprecate kindAppOrSAMLIdPServiceProvider, AppServerOrSAMLIdPServiceProvider
and use types.SAMLIdPServiceProvider
#38709
Conversation
…dPServiceProvider in favor of SAMLIdPServiceProvider
…ious comment updates
The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with |
@ravicious @gzdunek, requested for your review as as well as this PR touches on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks fine and from what I could test, the UI still works (unified resources, and access requests)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did a quick pass and it looks good to me, on Monday I will be able to take a closer look (I'm off tomorrow).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and works with no issues
…/remove-AppOrSAMLIdPServiceProvider
kindAppOrSAMLIdPServiceProvider
and AppServerOrSAMLIdPServiceProvider
kindAppOrSAMLIdPServiceProvider, AppServerOrSAMLIdPServiceProvider
and use types.SAMLIdPServiceProvider
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested it locally and seems to work fine.
But selectively backport teleterm package so Connect will be ready to handle updated types when the changes are released in v16.
What exactly do you want to backport to v15? AFAIK we don't have to backport anything, since the server side changes are already compatible with v15.
Chatting offline with @gzdunek but posting here for visibility. The backport is needed cause from Backporting |
@zmb3 could you look on this deprecation plan? My only concern is that the v15.x client will have to be updated to work with v16.0 server. OTOH, it seems to me that SAML apps are not a popular resource anyway, so it will not affect many users. |
Zac suggested that we could detect the client version on the v16 server and then send a response compatible with v15 if needed. @flyinghermit what do you think? |
@gzdunek That is another good option. I have created ticket to track this AppServerOrSAMLIdPServiceProvider type deprecation and backport plan for Connect so we have proper discussion planning for that. Though I think it should not block this PR to get in right? cc @zmb3 |
Thanks @flyinghermit, from my side I think it is not blocking |
Thanks everyone for testing these changes. I am merging this PR now. |
Both the
types.kindAppOrSAMLIdPServiceProvider
andtypes.AppServerOrSAMLIdPServiceProvider
types were used to show SAML service provider resources as "apps" in the UI and with server side pagination.With unified resource view, these types are redundant + they demand unintended extra work if we want to apply granular resource level RBAC. Additionally, the
AppServerOrSAMLIdPServiceProvider
signature will be out of style pretty soon with the upcoming introduction of OIDC app.This PR removes the usage of these types in the Web UI and instead uses
types.SAMLIdPServiceProvider
individually where needed. In the final unified resource list handlerclusterUnifiedResourcesGet
, the SAML resource are converted to App type so that the web UI side of implementation remains unchanged.The notable changes includes:
types.kindAppOrSAMLIdPServiceProvider
andtypes.AppServerOrSAMLIdPServiceProvider
are replaced withtypes.kindSAMLIdPServiceProvider
andtypes.SAMLIdPServiceProvider
.types.kindAppOrSAMLIdPServiceProvider
andtypes.AppServerOrSAMLIdPServiceProvider
are marked as deprecated.types.AppServer
separately and were double processing it withAppServerOrSAMLIdPServiceProvider
. As such, there isn't anything new to be added to handletypes.AppServer
clusterAppsGet
is now updated to exclude SAML service provider type. It was meant to be already deleted inv15
but I have extended deletion TODO tov17.0
.GetApps
as is (they don't use the parent type anyway).Manually tested with both Web UI and Connect app and verified by fetching both apps and SAML apps, along with other resources.
Breaking changes:
The changes in type are breaking for Connect, both when Auth Service is on higher version than Connect or vice versa.
The breaking change and backport plan for Connect is discussed separately in this ticket #39031
Deprecation and deletion:
Usage of
types.kindAppOrSAMLIdPServiceProvider
andtypes.AppServerOrSAMLIdPServiceProvider
types are marked as DEPRECATED and scheduled to be deleted on v17, when both the Auth Service and the Connect will have been updated to handle correct types.