Skip to content

Add a delete confirmation step to SyncInventory#27906

Merged
codingllama merged 4 commits intomasterfrom
codingllama/dt-deleteconfirm-proto
Jun 16, 2023
Merged

Add a delete confirmation step to SyncInventory#27906
codingllama merged 4 commits intomasterfrom
codingllama/dt-deleteconfirm-proto

Conversation

@codingllama
Copy link
Copy Markdown
Contributor

Add a delete confirmation step to SyncInventory, via the new track_missing_devices start parameter and a sequence of SyncInventoryMissingDevices/SyncInventoryDevices/SyncInventoryResult messages at the end.

The delete confirmation step is meant to address eventual pagination gaps in MDMs APIs, and the undue automatic deletions that would follow. The confirmation takes form of an MDM API query, using the newly-added external_id field.

The track_missing_devices flag allows us to cleanly replace sync modes, on_missing actions and the external_sync_successful toggle with a single stroke. The price to be paid is the extra external_id storage and a few more messages between the MDM service and Auth - a negligible price most of the time.

Deprecated fields are used in e/, so they can't be deleted right away.

https://github.com/gravitational/teleport.e/issues/826

@codingllama
Copy link
Copy Markdown
Contributor Author

@codingllama codingllama added this pull request to the merge queue Jun 16, 2023
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 16, 2023
@codingllama codingllama added this pull request to the merge queue Jun 16, 2023
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 16, 2023
@codingllama codingllama added this pull request to the merge queue Jun 16, 2023
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 16, 2023
@codingllama codingllama added this pull request to the merge queue Jun 16, 2023
Merged via the queue into master with commit 52e357f Jun 16, 2023
@codingllama codingllama deleted the codingllama/dt-deleteconfirm-proto branch June 16, 2023 18:16
@public-teleport-github-review-bot
Copy link
Copy Markdown

@codingllama See the table below for backport results.

Branch Result
branch/v13 Create PR

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants