Open h4l0gen opened 7 months ago
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: h4l0gen Once this PR has been reviewed and has the lgtm label, please assign fededp for approval. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.
This PR involves the following steps:
/tmp
directory.waitForClusterReadiness
function to ensure that the cluster is fully prepared.newTestPod
is defined, which specifies the configuration for the test container. Initially, it creates the /tmp/created-by-event-generator.txt
file, which will be copied using kubectl cp
later.verifyPodAndContainerRunning
to verify that the pod and container are fully prepared and operational.For cleanup:
deleteTestPod
.deleteKindCluster
.I've separated the above setup from the event as it can be reused (as a utility).
Finally, in event ExfiltratingArtifactsViaKubernetesControlPlane
:
createKindCluster waitForClusterReadiness createTestPod copyFileFromContainer deleteTestPod deleteKindCluster
Functions are called in sequence. copyFileFromContainer
runs the kubectl cp
command and deletes the copied file in the host's /tmp
directory.
Rule triggered successfully
@leogr @FedeDP @jasondellaluce PTAL at this PR and provide me your valuable feedback. Thank you :)
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
/remove-lifecycle stale
What type of PR is this?
/kind feature
Any specific area of the project related to this PR?
/area events
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #192
Special notes for your reviewer: