Skip to content

Add a Rust version of the cloudtrail plugin#1350

Open
geraldcombs wants to merge 5 commits into
falcosecurity:mainfrom
geraldcombs:cloudtrail-rs
Open

Add a Rust version of the cloudtrail plugin#1350
geraldcombs wants to merge 5 commits into
falcosecurity:mainfrom
geraldcombs:cloudtrail-rs

Conversation

@geraldcombs
Copy link
Copy Markdown
Contributor

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind feature

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area plugins

/area registry

/area build

/area documentation

/area automation

What this PR does / why we need it:

This is a follow-on to #1340, and splits out the cloudtrail plugin in the first iteration of that PR into a separate PR. See that MR for details.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

The gcpaudit translation worked well, so let's try CloudTrail.

Signed-off-by: Gerald Combs <gerald@wireshark.org>
Rename cloudtrail-rs to cloudtrail_rs to conform to our plugin directory
naming convention.

Signed-off-by: Gerald Combs <gerald@wireshark.org>
Signed-off-by: Gerald Combs <gerald@wireshark.org>
Add the following changes from the Golang plugin:

78e3a89 fix(plugins/cloudtrail): replace ct.user.sessionname with ct.originaluser
07a9f40 fix(plugins/cloudtrail): restore role name for ct.user on AssumedRole events
bfee0e3 doc(plugins/cloudtrail): Assumed role user from session name, falling back to the identity userName
9c58bb2 fix(plugins/cloudtrail): Assumed role user from session name, falling back to the identity userName

The following issues were not applicable:

8608166 fix(plugins/cloudtrail): prevent panics during sqs message parsing
2f0a3bf fix(plugins/cloudtrail): preserve records when strings contain braces

Mostly generated using Claude Opus 4.6, with minor fixes.

Signed-off-by: Gerald Combs <gerald@wireshark.org>
Copy the README.md file from cloudtrail, and note that this is a Rust
version of that plugin.

Signed-off-by: Gerald Combs <gerald@wireshark.org>
@poiana
Copy link
Copy Markdown
Contributor

poiana commented May 12, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: geraldcombs
Once this PR has been reviewed and has the lgtm label, please assign lucaguerra for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

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.

2 participants