Skip to content

[v13] Add a delete confirmation step to SyncInventory#27961

Merged
codingllama merged 4 commits into
branch/v13from
bot/backport-27906-branch/v13
Jun 20, 2023
Merged

[v13] Add a delete confirmation step to SyncInventory#27961
codingllama merged 4 commits into
branch/v13from
bot/backport-27906-branch/v13

Conversation

@codingllama
Copy link
Copy Markdown
Contributor

Backport #27906 to branch/v13

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

Friendly ping @nklaassen ?

@codingllama codingllama added this pull request to the merge queue Jun 19, 2023
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 19, 2023
@codingllama codingllama added this pull request to the merge queue Jun 20, 2023
Merged via the queue into branch/v13 with commit 6586150 Jun 20, 2023
@codingllama codingllama deleted the bot/backport-27906-branch/v13 branch June 20, 2023 14:23
@r0mant r0mant mentioned this pull request Jul 14, 2023
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.

3 participants