Skip to main content

Measures

SecurityContext at container level

In each podyaml should be the entry

spec:
...
  containers:
…
    securityContext:
     runAsUser: 6789 ## Zufällige Nummer
      allowPrivilegeEscalation: false
…

Which binds the user in the container to 6789 and prevents rights escalation.