Skip to content

Commit

Permalink
Deploy Flannel with unprivileged PSP
Browse files Browse the repository at this point in the history
Flannel is running in privileged mode, and is using the root user,
therefore if the container is compromised, an attacker will
inherit that level of access. An attacker compromising the flannel
container will have full root access to the host system, and access
to all secrets and containers hosted on the system.

This PR makes sure that flannel runs in unprivileged mode.

This is done by changing the flannel manifests and also adding
a new PSP policy that disables both privilege mode and privilege
escallation.

The new PSP activates 'NET_ADMIN' capability, hostNetwork
and allowedHostPaths.

* Bump K8S_VERSION from 1.7.6 up to 1.13.2 for e2e k8s tests
* Fixes #1090 - /run is mouted r/w by default in kubernetes
  • Loading branch information
drpaneas committed Feb 14, 2019
1 parent d3eea7f commit 219cb89
Show file tree
Hide file tree
Showing 3 changed files with 547 additions and 16 deletions.
Loading

0 comments on commit 219cb89

Please sign in to comment.