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

[v9] Add nil check for billing mode in AWS DynamoDB events driver #12461

Merged
merged 2 commits into from
May 5, 2022

Conversation

xacrimon
Copy link
Contributor

@xacrimon xacrimon commented May 5, 2022

Backport of #12445

@xacrimon xacrimon requested a review from zmb3 May 5, 2022 14:46
@github-actions github-actions bot added the audit-log Issues related to Teleports Audit Log label May 5, 2022
@github-actions github-actions bot requested review from nklaassen and Tener May 5, 2022 14:46
* Check for nil in the billing mode getter + fix panic if eventtype is not set

* use a better strategy to check if the interface is nil

* add godoc

* simplify switch

* update godoc

* simplify unknown field extraction code

* ensure underlying type is correct

* Update lib/events/dynamic_test.go

Co-authored-by: Krzysztof Skrzętnicki <[email protected]>

* fix lint

* Update AWS dynamo tests as a result of the dynamic.go changes, I don't think they've ever worked in some time as they appeared quite broke.

* simplify

* simplify 2

Co-authored-by: Krzysztof Skrzętnicki <[email protected]>
lib/events/test/suite.go Outdated Show resolved Hide resolved
@xacrimon xacrimon force-pushed the joel/v9/dynamo-ppd branch from 98cd30f to 3878abc Compare May 5, 2022 14:48
@xacrimon xacrimon requested a review from Tener May 5, 2022 14:48
@zmb3 zmb3 requested a review from r0mant May 5, 2022 14:51
@xacrimon xacrimon enabled auto-merge (squash) May 5, 2022 15:18
@xacrimon xacrimon merged commit 1bcd6e0 into branch/v9 May 5, 2022
@zmb3 zmb3 deleted the joel/v9/dynamo-ppd branch May 5, 2022 15:29
@webvictim webvictim mentioned this pull request Jun 8, 2022
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants