Skip to content
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

Merged
merged 1 commit into from
Mar 29, 2024
Merged

Introduce plugin cleanup endpoints. #39957

merged 1 commit into from
Mar 29, 2024

Conversation

mdwn
Copy link
Contributor

@mdwn mdwn commented Mar 28, 2024

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.

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.
Copy link

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 changelog: followed by the changelog entries for the PR.

@zmb3
Copy link
Collaborator

zmb3 commented Mar 28, 2024

Can you share a bit more context about what these RPCs are going to be used for?

@mdwn
Copy link
Contributor Author

mdwn commented Mar 28, 2024

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;
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from bl-nero March 29, 2024 06:10
@mdwn mdwn enabled auto-merge March 29, 2024 14:49
@mdwn mdwn added this pull request to the merge queue Mar 29, 2024
Merged via the queue into master with commit a153965 Mar 29, 2024
39 of 41 checks passed
@mdwn mdwn deleted the mike.wilson/plugin-cleanup branch March 29, 2024 15:07
@public-teleport-github-review-bot

@mdwn See the table below for backport results.

Branch Result
branch/v15 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants