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(k8smeta): introduce /proc scan to recover the pod uid of threads already spawned #517

Merged
merged 2 commits into from
Jul 24, 2024

Conversation

Andreagit97
Copy link
Member

What type of PR is this?

/kind bug

/kind feature

Any specific area of the project related to this PR?

/area plugins

What this PR does / why we need it:

This PR introduces a proc-scan feature in the k8smeta plugin init phase. We need this to collect the pod uid of threads already running when Falco and the k8smeta plugin are started.

Which issue(s) this PR fixes:

Fixes ##514

Special notes for your reviewer:

@Andreagit97 Andreagit97 changed the title [WIP]: Fix k8smeta proc scan [WIP]: fix(k8smeta): introduce /proc scan to recover the pod uid of threads already spawned Jul 24, 2024
Copy link

Rules files suggestions

Copy link

Rules files suggestions

Copy link
Member

@alacuku alacuku left a comment

Choose a reason for hiding this comment

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

/lgtm

@poiana
Copy link
Contributor

poiana commented Jul 24, 2024

LGTM label has been added.

Git tree hash: 7e40b508b8f3b049105fb9198e0119f088dba6c3

@alacuku
Copy link
Member

alacuku commented Jul 24, 2024

Thanks for the fix @Andreagit97!

plugins/k8smeta/src/plugin.cpp Outdated Show resolved Hide resolved
plugins/k8smeta/src/plugin.cpp Outdated Show resolved Hide resolved
Copy link

Rules files suggestions

Signed-off-by: Andrea Terzolo <[email protected]>
@@ -77,7 +77,7 @@ limitations under the License.
// Generic plugin consts
/////////////////////////
#define PLUGIN_NAME "k8smeta"
#define PLUGIN_VERSION "0.1.0"
#define PLUGIN_VERSION "0.1.1"
Copy link
Member Author

Choose a reason for hiding this comment

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

We bumped a patch version of the plugin

Copy link

Rules files suggestions

@alacuku
Copy link
Member

alacuku commented Jul 24, 2024

hey @Andreagit97, is this PR ready?

@Andreagit97 Andreagit97 changed the title [WIP]: fix(k8smeta): introduce /proc scan to recover the pod uid of threads already spawned fix(k8smeta): introduce /proc scan to recover the pod uid of threads already spawned Jul 24, 2024
@Andreagit97
Copy link
Member Author

yes! i removed the [WIP]

Copy link
Member

@alacuku alacuku left a comment

Choose a reason for hiding this comment

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

/lgtm

@poiana poiana added the lgtm label Jul 24, 2024
@poiana
Copy link
Contributor

poiana commented Jul 24, 2024

LGTM label has been added.

Git tree hash: dcd3c1e88753eab241d35ca59573f4d1a7de208a

@poiana
Copy link
Contributor

poiana commented Jul 24, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alacuku, Andreagit97, leogr

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

The pull request process is described here

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

@poiana poiana merged commit 1c569c4 into falcosecurity:main Jul 24, 2024
14 checks passed
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.

4 participants