Kubernetes Security
Updates
Suraj Deshmukh
$ whoami
● Suraj Deshmukh
● works @ Kinvolk
● Twitter @surajd_
● Kubernetes Slack @surajd
● Blog suraj.io
ServiceAccount
Features
● Fixed limited duration
● Every pod gets a different service account token
● Kubelet handles rotation of the token
● Force rotate by restarting the pod
● Not stored in secret, directly mounted inside the pod
● Need to re-read the token since it changes periodically
● Specify audiences so token is valid to talk to only those services
New API
TokenRequest
TokenRequestProjection
BoundServiceAccountTokenVolume
KEP: Service Account Token Volumes & Bound Service Account Tokens
RuntimeClass
Features
● Run heterogeneous container runtimes in cluster, allows you to run VMs and
containers together.
● Scheduling based on RuntimeClass is work in progress.
KEP: Runtime Class
● Field in PodSpec called runtimeClassName
● RuntimeClass
New API
NodeRestriction
Features
● Add restriction to kubelet
● Node isolation
● Prevent nodes from updating taints & their own labels specifically
node-restriction.kubernetes.io/*
● Can’t delete the node object itself
● Warn on whitelisted modifications
Encrypting Secret Data at Rest
Features
● Graduated from experimental
● Define what resources you want to be encrypted
● Supports various encryption providers: aescbc, secretbox, aesgcm,
kms
● Solves the long standing problem of credentials not being safe with
Kubernetes.
EncryptionConfiguration
New API
Dynamic Audit backend
Features
● Dynamically configure the audit backends
● No need to provide information to apiserver via flags
New API
AuditSink
Other announcements
● Bug bounty program is coming to Kubernetes
References
● Transition ServiceAccount admission controller to improved service account token volumes #70679
● Kubernetes Contributor Summit 2018 - Security Through the Ages
● Deep Dive: Container Identity WG - Greg Castle & Michael Danese, Google
● Encrypting Secret Data at Rest
● NodeRestriction
● Dynamic Backend
● Audit in Kubernetes, the Future is Here - Stefan Schimanski & Maciej Szulik, Red Hat
Connect with us
● Twitter @k8sBLR
● Join Kubernetes slack slack.k8s.io and channel #in-dev & #in-users
● GSOC for Kubernetes announced!
Kubernetes Security Updates from Kubecon 2018 Seattle

Kubernetes Security Updates from Kubecon 2018 Seattle