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

fix dynamoevents iterator compat #50735

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

fspmarshall
Copy link
Contributor

@fspmarshall fspmarshall commented Jan 3, 2025

This PR adds back combat logic to allow the current dynamoevents implementation to be able to decode cursors returned by instances using the v1 aws sdk (cursor format changed during our switch to sdk v2).

It isn't uncommon for us to forego cross-compat logic when changing cursor formats since most cursors are ephemeral things that only live for a few milliseconds, and an error in an individual request during an upgrade isn't usually anything to worry about. However, this particular cursor value is used as persistent on-disk state by the event exporter. The lack of cross-compat meant that event-handlers could become permanently broken when the control plane was upgraded, as their requests would repeatedly fail due to auth being unable to decode the cursor sent in the request.

Fixes #50554

changelog: fixed an issue that could cause teleport event handlers to become stuck in an error loop upon upgrading to v17 (fix requires upgrading auth server).

@github-actions github-actions bot added audit-log Issues related to Teleports Audit Log size/sm labels Jan 3, 2025
@github-actions github-actions bot requested review from tigrato and vapopov January 3, 2025 18:42
@fspmarshall fspmarshall added this pull request to the merge queue Jan 6, 2025
Merged via the queue into master with commit 9bf87bb Jan 6, 2025
44 of 45 checks passed
@fspmarshall fspmarshall deleted the fspmarshall/dynamoevents-iterator-fix branch January 6, 2025 20:42
@public-teleport-github-review-bot

@fspmarshall See the table below for backport results.

Branch Result
branch/v17 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
audit-log Issues related to Teleports Audit Log backport/branch/v17 size/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Event Handler failure after 17.x
3 participants