plugins icon indicating copy to clipboard operation
plugins copied to clipboard

Feature Request: Let K8saudit plugin watch/tail file and parse new lines.

Open Strigix opened this issue 2 years ago • 22 comments

Motivation

As of now the plugin reads the given filepath (file or files in directory), parses it to create the alerts and stops there. To have this more aligned with the functionality of Falco and make the filepath option of the plugin more viable I would like to request the k8saudit plugin to watch given file(s) and parse newly written k8saudit lines to generate alerts. This would allow us to use both Falco's syscall parsing, k8saudit parsing, without the need to change API-server configuration/add another webhook in the cluster.

Feature

  • Let k8saudit plugin tail/watch a given file for new entries and parse those new lines when k8saudit logs events.
  • Let plugin check if current watched/tailed file is rotated (example: close file and reopen file with the name given in filepath if no new event has been generated for X-amount of time)

Additional context

This feature should probably be built in at the source.go file of the k8sauditplugin

image

Strigix avatar Dec 07 '22 08:12 Strigix

Issues go stale after 90d of inactivity.

Mark the issue as fresh with /remove-lifecycle stale.

Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Provide feedback via https://github.com/falcosecurity/community.

/lifecycle stale

poiana avatar Mar 07 '23 09:03 poiana

/remove-lifecycle stale

RichardoC avatar Mar 07 '23 12:03 RichardoC

Issues go stale after 90d of inactivity.

Mark the issue as fresh with /remove-lifecycle stale.

Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Provide feedback via https://github.com/falcosecurity/community.

/lifecycle stale

poiana avatar Jun 05 '23 13:06 poiana

/remove-lifecycle stale

RichardoC avatar Jun 05 '23 15:06 RichardoC

Issues go stale after 90d of inactivity.

Mark the issue as fresh with /remove-lifecycle stale.

Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Provide feedback via https://github.com/falcosecurity/community.

/lifecycle stale

poiana avatar Sep 03 '23 19:09 poiana

/remove-lifecycle stale

jasondellaluce avatar Sep 04 '23 09:09 jasondellaluce

Issues go stale after 90d of inactivity.

Mark the issue as fresh with /remove-lifecycle stale.

Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Provide feedback via https://github.com/falcosecurity/community.

/lifecycle stale

poiana avatar Dec 03 '23 09:12 poiana

/remove-lifecycle stale

RichardoC avatar Dec 03 '23 13:12 RichardoC

Issues go stale after 90d of inactivity.

Mark the issue as fresh with /remove-lifecycle stale.

Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Provide feedback via https://github.com/falcosecurity/community.

/lifecycle stale

poiana avatar Mar 02 '24 15:03 poiana

/remove-lifecycle stale

RichardoC avatar Mar 03 '24 22:03 RichardoC

/help

leogr avatar May 29 '24 13:05 leogr

@leogr: This request has been marked as needing help from a contributor.

Please ensure the request meets the requirements listed here.

If this request no longer meets these requirements, the label can be removed by commenting with the /remove-help command.

In response to this:

/help

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

poiana avatar May 29 '24 13:05 poiana

Issues go stale after 90d of inactivity.

Mark the issue as fresh with /remove-lifecycle stale.

Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Provide feedback via https://github.com/falcosecurity/community.

/lifecycle stale

poiana avatar Aug 27 '24 16:08 poiana

/remove-lifecycle stale

leogr avatar Aug 28 '24 10:08 leogr