Skip to content

Security: devpro/kubernetes-essentials

Security

docs/security.md

Security in Kubernetes

kubernetes.io/docs/concepts/security

Authentication

Two types of accounts:

  • Users through the kube-apiserver
    • Authentication mechanism
      • static password files: kube-apiserver --basic-auth-file start argument (csv file)
      • static token files: kube-apiserver --token-auth-file start argument (csv file)
      • certificates
      • identity services
  • Service Accounts

See:

Certificates

# view a certificate
openssl x509 -in <certificate path> -text
# for example to view the Common Name (CN) configured on the Kube API Server Certificate
openssl x509 -in /etc/kubernetes/pki/apiserver.crt -text -noout

Certificates folders: /etc/kubernetes/pki (control plane), /var/lib/kubelet/pki (workder node)

Roles

# check if a user can do actions
k get pods --as dev-user

Operators

Tools

Concepts

Terminology

AbbreviationMeaningLinks
CISCenter for Internet SecurityCIS Kubernetes Benchmarks
CVECommon Vulnerabilities and Exposurescve.org
DLPData Loss PreventionWhat is DLP? (example: Social Security Number (SSN))
DPIDeep Packet InspectionWhat is DPI?
eBPFebpf.io, eBPF: Put the Kubernetes Data Plane in the Kernel
FIPSFederal Information Process Standard-
FISMAFederal Information Security Management Act-
IAMIdendity and Access Management-
IDSIntrusion Systems-
IPSIntrusion Prevention Systems-
OWASPOpen Web Application Security Projectowasp.org
OSIOpen Systems InterconnectionOSI Model Explained
SIEMSecurity Information and Event Managers-
WAFWeb Application FirewallWhat is a WAF?

Securization logic

  • Principles

    • Least privilege
    • Zero-Trust
  • 3 steps of authentication security

    • Authentication
    • Authorization
    • Admission
  • Network traffic

    • North-South
    • East-West

Checklists

There aren't any published security advisories