-
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
Introduce plugin cleanup endpoints. #39957
Conversation
Plugin cleanup endpoints have been introduced. One that indicates whether a plugin needs cleanup, the other that actually performs cleanup. This is primarily to address issues with the Okta integration and leftover assignments.
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 |
Can you share a bit more context about what these RPCs are going to be used for? |
Basically, the Okta access list sync can operate on leftover assignments if you delete and re-create the plugin. For example, it may find an old access list, remove it since it no longer matches the filters, and then clean up the relevant assignments. In order to get around it, we'll introduce this method to remove all the bits and pieces from the backend so that this doesn't happen. |
message NeedsCleanupRequest { | ||
// Type is the plugin type. We only need the string representation of the plugin type and not | ||
// the PluginType message, as we don't want the oauth client ID here. | ||
string type = 1; |
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.
should types like this be represented as an enum?
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.
Perhaps, but unfortunately I think that ship has sailed -- other instances where we've got a plugin type are represented as strings.
Plugin cleanup endpoints have been introduced. One that indicates whether a plugin needs cleanup, the other that actually performs cleanup. This is primarily to address issues with the Okta integration and leftover assignments.
changelog: Certain plugins are now able to be cleaned up before they're re-created after being deleted.