Skip to content

CLI tool for deploying custom AppArmor and seccomp profiles in Kubernetes clusters

Notifications You must be signed in to change notification settings

doomholderz/k8seccomp

Repository files navigation

kube-profile-deployer

seccomp_profile_tester

Bash script to automate testing of custom SecComp profiles in Kubernetes. Script will quickly deploy your custom profile alongside a fresh Pod to allow you to test the profile works as intended.

Usage:

  • Use from a Bastion/Jump host that has SSH access to your Kubernetes Nodes
  • chmod +x seccomp_profile_tester.sh
  • ./seccomp_profile_tester path/to/custom/seccomp/profile.json

This will:

  • Find a candidate Node in your K8s cluster (not at Pod capacity)
  • Copy your custom seccomp profile onto /var/lib/kubelet/seccomp/custom_profile_name.json
  • Label candidate Node with seccomp-custom-<profile_name>
  • Deploy a Pod onto the candidate Node, using the Node-stored custom seccomp profile

Future Work: Run on an existing Pod, and profile to understand if custom profile will break functionality of Pod services

About

CLI tool for deploying custom AppArmor and seccomp profiles in Kubernetes clusters

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages