mirror of
https://github.com/vee1e/KubeArmor.git
synced 2026-09-01 18:27:29 +00:00
Merge pull request #968 from achrefbensaad/add-apparmor-doc
docs(apparmor): add apparmor docs
This commit is contained in:
commit
1a6fbf4727
3 changed files with 27 additions and 0 deletions
|
|
@ -0,0 +1,27 @@
|
|||
# KubeArmor AppArmor implementation overview
|
||||
|
||||
Kubearmor support enforcing policies on systems running apparmor.
|
||||
|
||||
## Implementation overview
|
||||
|
||||

|
||||
|
||||
Upon the detection of a new Pod or a new policy, KubeArmor will launch a policy matching process that works as follow:
|
||||
|
||||
- If a new pod is detected, KubeArmor will only search for policies that matches that perticular pod.
|
||||
- If a new policy is detected, KubeArmor will search for all pods that the policy include.
|
||||
|
||||
When all policies are identified, KubeArmor combines all policies into a single policy. If two policies are conflicting KubeArmor will resolve this conflict.
|
||||
|
||||
Once we have a single policy, KubeArmor will generate and load the corresponding AppArmor profile(s).
|
||||
|
||||
|
||||
## AppArmor profile domain transition
|
||||
|
||||
KubeArmor makes a heavy use of apparmor domain transition in order to honor `fromSource` rules.
|
||||
|
||||
The domain transion is made possible using the `px` permission in apparmor.
|
||||
|
||||

|
||||
|
||||
The above figure illustrate how we decide that we need to perform a domain transition for a certain binary.
|
||||
BIN
getting-started/resources/Apparmor-domain-transition.png
Normal file
BIN
getting-started/resources/Apparmor-domain-transition.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 50 KiB |
BIN
getting-started/resources/kubearmor-Apparmor-internals.png
Normal file
BIN
getting-started/resources/kubearmor-Apparmor-internals.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
Loading…
Add table
Add a link
Reference in a new issue