kubearmor / KubeArmor

Runtime Security Enforcement System. Workload hardening/sandboxing and implementing least-permissive policies made easy leveraging LSMs (BPF-LSM, AppArmor).
https://kubearmor.io/
Apache License 2.0
1.34k stars 333 forks source link

Improve system test coverage and practices for KubeArmor #1749

Open DelusionalOptimist opened 3 months ago

DelusionalOptimist commented 3 months ago

Description

Currently our Ginkgo based test suite for running system tests is lacking behind. We are not testing all of KubeArmor's features in different important supported environments.

Goals

The main goals of this are going to be as given below, please see attached issues for more details

Extended Goals (to be pursued only if enough time left)

Test Matrix Tracker

Provider Environment Type AppArmor BPF LSM Arch Runtime Frequency
Onprem k3s Kubernetes Container :heavy_check_mark:, Host :x: Container :heavy_check_mark:, Host :x: amd64 :heavy_check_mark:, arm :x: Docker :heavy_check_mark: , Containerd :heavy_check_mark:, CRI-O :heavy_check_mark:, Push, PRs, Release
Linux Ubuntu, Fedora Non-k8s Container :x:, Host :x: Container :x:, Host :x: amd64 :x: Docker :x: , Systemd :x: Push, PRs, Release
Onprem KinD/Minikube, kubeadm Kubernetes Container :x:, Host :x: Container :x:, Host :x: amd64 :x: Virtualbox :x:, Containerd :x: Release
Managed TBD Kubernetes Container :x:, Host :x: Container :x:, Host :x: amd64 :x: arm64 :x: TBD Release

NOTES

Prerequisite Task

Create at least one new and unique test case for KubeArmor (can be in any mode) using the ginkgo framework and show the total improvement in coverage. The test coverage tool doesn't have to be run as part of the CI.

Deadline - 31 May 2024 11:59 PM UTC

Please don't share your task solutions publicly, prefer e-mailing a link to your fork/branch to mentors.

References

officialasishkumar commented 3 months ago

are there any pretasks?

cc: @DelusionalOptimist

Ayush9026 commented 3 months ago

@DelusionalOptimist sir is there any pretask?

DelusionalOptimist commented 3 months ago

Hey @officialasishkumar @Ayush9026, the issue description has been updated with the prerequisite task.

daemon1024 commented 1 month ago

Untitled-2024-01-03-1351(4)

// @navin772