~/talk

Fine-Grained Permissions in K8s: What’s Missing, and How to Fix That

Talkat KubeCon + CloudNativeCon Europe 2019 · on Tuesday, 2019-05-21· at 14:00· Hall 8.0 B1· [security, kubernetes]
speakerdeck:vllry
links:none on file
slides:none on file

Kubernetes RBAC is too coarse to restrict actions inside a namespace, and namespaces are not security boundaries, so fine-grained control uses admission webhooks to validate or mutate requests, the Open Policy Agent (with Gatekeeper) to centralize allow/deny logic and return JSON patches, and network policies (Calico or service-mesh controls) to stop the default flat pod network. Custom API gateways work but add code and operational burden; the object-level permission idea is rejected in favor of webhooks + RBAC and smaller namespaces.

AI-written summary · about

  1. 0:00Start
  2. 22:41Kubernetes' design priority is extensibility, not out-of-the-box usability. This includes security considerations.
  3. 23:09Put individual sets of resources, like a service/project in their own namespaces.
  4. 23:38Use RBAC to restrict access to reasonable as-needed access. Prefer too-broad over painfully granular.
  5. 24:05Use policy tools like webhooks or OPA to provide narrow restrictions to resources, beyond RBAC granularity.
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.