Skip to content

fix dynamoevents iterator compat#50735

Merged
fspmarshall merged 1 commit intomasterfrom
fspmarshall/dynamoevents-iterator-fix
Jan 6, 2025
Merged

fix dynamoevents iterator compat#50735
fspmarshall merged 1 commit intomasterfrom
fspmarshall/dynamoevents-iterator-fix

Conversation

@fspmarshall
Copy link
Copy Markdown
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
@fspmarshall fspmarshall deleted the fspmarshall/dynamoevents-iterator-fix branch January 6, 2025 20:42
@public-teleport-github-review-bot
Copy link
Copy Markdown

@fspmarshall See the table below for backport results.

Branch Result
branch/v17 Create PR

carloscastrojumo pushed a commit to carloscastrojumo/teleport that referenced this pull request Feb 19, 2025
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