Skip to content

Add support for custom SQS consumer lock and disabling consumer#46770

Merged
lcharkiewicz merged 8 commits intomasterfrom
leszek/sqs-consumer-locking-disabling
Oct 1, 2024
Merged

Add support for custom SQS consumer lock and disabling consumer#46770
lcharkiewicz merged 8 commits intomasterfrom
leszek/sqs-consumer-locking-disabling

Conversation

@lcharkiewicz
Copy link
Copy Markdown
Contributor

@lcharkiewicz lcharkiewicz commented Sep 19, 2024

Adding support for custom SQS consumer lock name and disabling a consumer.

Changelog: Adds support for custom SQS consumer lock name and disabling a consumer.

Goal: gravitational/cloud#10164

@espadolini espadolini self-requested a review September 19, 2024 16:21
Copy link
Copy Markdown
Contributor

@espadolini espadolini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no strong opinions on the names used, LGTM

Comment thread lib/events/athena/athena.go Outdated
Comment thread lib/events/athena/athena.go Outdated
Comment thread lib/events/athena/consumer.go Outdated
Comment thread lib/events/athena/athena.go Outdated
@lcharkiewicz lcharkiewicz force-pushed the leszek/sqs-consumer-locking-disabling branch from 97ef500 to 5b9d359 Compare September 20, 2024 09:17
@lcharkiewicz lcharkiewicz marked this pull request as ready for review September 20, 2024 20:14
@lcharkiewicz
Copy link
Copy Markdown
Contributor Author

Updated to use LockNameComponents and disabling a consumer. Let me know if that part requires more tests.

@github-actions
Copy link
Copy Markdown
Contributor

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.

@github-actions github-actions Bot added audit-log Issues related to Teleports Audit Log size/sm labels Sep 20, 2024
@flyinghermit flyinghermit removed their request for review September 23, 2024 14:22
Copy link
Copy Markdown
Contributor

@espadolini espadolini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like how we pass along an arbitrary sequence of lock name components when we know it's either athena_lock or athena/<foo>, the rest all seems good.

Comment thread lib/events/athena/athena.go Outdated
Comment thread lib/events/athena/athena.go Outdated
Comment thread lib/events/athena/consumer.go Outdated
@espadolini
Copy link
Copy Markdown
Contributor

Remember to also update the athenaevents docs (in a separate PR so reviewer checks won't complain), depending on if (and when) we intend to support this for onprem.

@espadolini
Copy link
Copy Markdown
Contributor

(we are not supporting bypassSNS just yet, if that makes the decision easier)

Comment thread lib/events/athena/athena.go Outdated
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from avatus October 1, 2024 13:27
Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com>
@lcharkiewicz lcharkiewicz added this pull request to the merge queue Oct 1, 2024
Merged via the queue into master with commit 5077b71 Oct 1, 2024
@lcharkiewicz lcharkiewicz deleted the leszek/sqs-consumer-locking-disabling branch October 1, 2024 14:33
@public-teleport-github-review-bot
Copy link
Copy Markdown

@lcharkiewicz See the table below for backport results.

Branch Result
branch/v14 Failed
branch/v15 Failed
branch/v16 Failed

@public-teleport-github-review-bot
Copy link
Copy Markdown

@lcharkiewicz See the table below for backport results.

Branch Result
branch/v14 Create PR
branch/v15 Create PR
branch/v16 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 size/sm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants