kubernetes-sigs / security-profiles-operator

The Kubernetes Security Profiles Operator
Apache License 2.0
720 stars 106 forks source link

Support in spoc CLI for install /remove apparmor profiles into the local system #2387

Open ccojocar opened 4 months ago

ccojocar commented 4 months ago

What would you like to be added:

It would be nice to extend the spoc CLI to install apparmor profiles into the local system. The CLI is able to record apparmor profiles either as YAML definition of ApparmorProfile CR or as a raw profile. It also has the capability to distribute the recorded profiles as OCI container images but it misses any installation capability.

Currently for installation, the user still needs to run separately the apparmor_parse tool. It would be great to provide a seamless experience from spoc CLI.

A new install commands can be added either to install a profile for an executable or as a named profile. The CLI can call the exiting ProfileManager interface method InstallProfile.

The remove command can be also implemented in the same fashion.

Why is this needed:

Improve the user experince when installing the apparmor profile on a local system.

User story covered

k8s-triage-robot commented 1 month ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

ccojocar commented 1 month ago

/remove-lifecycle stale

ccojocar commented 1 month ago

/remove-lifecycle stale