SlideShare a Scribd company logo
1
GitOps Security
primer
Aqua / Weaveworks Webinar
June 2019
2
The GitOps Model
3
4
Kubernetes
Cluster
GitOps ON Kubernetes
5
GitOps ON Kubernetes
Kubectl /
Direct access
6
GitOps ON Kubernetes
7
Configuration
Repository
GitOps ON Kubernetes
8
GitOps ON Kubernetes
9
Deployment
Agent *
GitOps ON Kubernetes
10
Security
Boundary
*
11
GitOps ON Kubernetes
12
GitOps ON Kubernetes
Image
Repository
13
GitOps ON Kubernetes
State
continuously
monitored
14
1 The entire system is described declaratively.
2 The desired system state is versioned
3 Approved changes to the desired state are
automatically applied to the system
4 Software agents ensure correctness
and alert on divergence
15
GitOps ON Kubernetes
Image
Repository
1
The entire system is described declaratively.
16
GitOps ON Kubernetes
Image
Repository
2
The desired system state is versioned
17
GitOps ON Kubernetes
Image
Repository
3
Approved changes to the desired state are
automatically applied to the system
18
GitOps ON Kubernetes
Image
Repository
4
Software agents ensure correctness
and alert on divergence
Why do we care
19
Typical CICD pipeline
Continuous Integration
Cluster API
Continuous Delivery/Deployment
Container
Registry
CI
Code
Repo
Dev RW
CI credsGit creds
RW
CR creds3
RO
RW
API creds
CR creds1
Shares credentials cross several logical security boundaries.
Boundary
RO RW
Container
Registry (CR)
creds2
Cluster API
GitOps pipeline
Container
Registry
CI
Code
Repo
Dev RO
CR creds2CI credsGit creds
RO
Deploy
CR creds3
RO
RW
Config repo
creds
CR creds1
Credentials are never shared across a logical security boundary.
RW RW
RW
Cluster API
creds
Canonical desired
state store
Config Repo
Cluster API
GitOps pipeline
Container
Registry
CI
Code
Repo
Dev RO
CR creds2CI credsGit creds
RO
Deploy
CR creds3
RO
RW
Config repo
creds
CR creds1
Credentials are never shared across a logical security boundary.
RW RW
RW
Cluster API
creds
Operator RW Config Repo
Cluster API
GitOps pipeline
Container
Registry
CI
Code
Repo
Dev RO
CR creds2CI credsGit creds
RO
Deploy
CR creds3
RO
RW
Config repo
creds
CR creds1
Credentials are never shared across a logical security boundary.
RW RW
RW
Cluster API
creds
Operator RW Config Repo
Process & constraints
enforcement
Cluster API
GitOps pipeline
Container
Registry
CI
Code
Repo
Dev RO
CR creds2CI credsGit creds
RO
Deploy
CR creds3
RO
RW
Config repo
creds
CR creds1
Credentials are never shared across a logical security boundary.
RW RW
RW
Cluster API
creds
Operator RW Config Repo
Exceptional auditing
and attribution*
Secure your GitOps pipeline
25
Move from access to cluster to access to
repository.
...So how to secure your repository?
Moving the burden of security
26
Mitigating user impersonation
27
1. Enforce Strong Identity in VCS (GitHub/GitLab)
with GPG Signed Commits *
1. Use Physical GPG Keys to increase security
1. Run GPG-Validating Code in CI
28
Signing each commit is [a bad idea]. It just
means that you automate it, and you make the
signature worth less. It also doesn't add any real
value, since the way the git DAG-chain of SHA1's
work, you only ever need one signature to make
all the commits reachable from that one be
effectively covered by that one. So signing each
commit is simply missing the point.
* A word from above
Prevent History Rewrites
29
1. Prevent Force Pushes to Master Branch
1. Backup Git Repositories
Prevent Removal of Security Features
30
1. Configure Git Provider with Infrastructure as
Code (Meta-GitOps FTW!)
1. Monitor Git Provider’s Audit Logs
1. Verify Commits to Master
Don’t use deprecated software
31
Securing your repositories
32
33
A GitOps
pipeline in
practice
34
Thank you
Over to you Liz
brice@weave.works
@fractallambda
© 2019 Aqua Security Software Ltd., All Rights Reserved
The State of Kubernetes
Security
Liz Rice, Aqua Security
@lizrice | @aquasecteam
36
Attack vectors
36 @lizrice Photo by Henry Hustava on Unsplash
37
Control plane
Securing access to the APIs
• API server
• Kubelets
• etcd
Photo by James Sutton on Unsplash39 @lizrice
Control plane checks
CIS Benchmarks
kube-bench
Photo by James Sutton on Unsplash40 @lizrice
Keep up to date
with Kubernetes
releases
Section Title
Keep up to date
with Kubernetes
releases
43
Don’t allow privileged containers
„ Except that it’s needed for some components like kube-dns
Don’t allow anonymous API access
„ Health checks
„ Current thinking is to rely on RBAC
@lizrice Photo by Nik Shuliahin on Unsplash43
Control plane conundrums
Authentication & Authorization
@lizrice Photo by Annie Spratt on Unsplash44
Authentication
@lizrice Photo by Annie Spratt on Unsplash45
Static password/token file
X509 client certs
Proxy + header
OpenID Connect
Custom Webhook
46
Node (kubelet)
ABAC - outdated!
RBAC
Webhook
l Open Policy Agent
@lizrice Photo by Belinda Fewings on Unsplash46
Authorization
47 @lizrice Photo by Belinda Fewings on Unsplash47
Authorization - RBAC
Entity
l Service account, User,
Group
Scope
l Namespace / Cluster
Roles and bindings
Container Images
@lizrice Photo by Glenn Carstens-Peters on Unsplash48
49
Trusted base images
Define USER
Automate vulnerability scans
Private registries
Pin dependencies
(for reproducible builds)
@lizrice
Container Images
49
Running containers
Running containers
@lizrice Photo by Josh Hild on Unsplash50
Don’t run as root
§ RunAsUser
PodSecurityPolicy
§ Limit volume mounts
NetworkPolicy
Seccomp / AppArmor / SELinux
Section Title
Keep up to date
with Kubernetes
releases
Section Title
Use RunAsUser
@lizrice Photo by Sai De Silva on Unsplash53
Secrets
Secrets
@lizrice Photo by Sai De Silva on Unsplash54
Namespaced objects
Access via volume or env var
Data in tmpfs volumes
Per-secret size limit of 1MB
Default: base64 encoded
§ Enable encryption at rest, or
§ Use third-party tool
Additional considerations
Stay safe!
@lizrice Photo by Piotr Chrobot on Unsplash55
Stay up to date
Check configuration
Image scanning
Don’t run as root
Use RBAC
Manage secrets carefully
Stay safe!
info.aquasec.com/kubernetes-security
@lizrice | @aquasecteam

More Related Content

What's hot (20)

PPTX
Kubernetes security
Saiyam Pathak
 
PDF
What is Google Cloud Good For at DevFestInspire 2021
Robert John
 
PDF
Security threats with Kubernetes - Igor Khoroshchenko
Kuberton
 
PDF
Orchestrating Microservices with Kubernetes
Weaveworks
 
PPTX
Security best practices for kubernetes deployment
Michael Cherny
 
PPTX
Kube Apps in action
Karthik Gaekwad
 
PDF
Keeping your Kubernetes Cluster Secure
Gene Gotimer
 
PPTX
网易云K8S应用实践 | practices for kubernetes cluster provisioning, management and ap...
Xiaohui Chen
 
PDF
Moving to Kubernetes - Tales from SoundCloud
Tobias Schmidt
 
PPTX
10 tips for Cloud Native Security
Karthik Gaekwad
 
PDF
Kubescape single pane of glass
LibbySchulze1
 
PPTX
Luca Relandini - Microservices and containers networking: Contiv, deep dive a...
Codemotion
 
PPTX
Containerizing a REST API and Deploying to Kubernetes
Ashley Roach
 
PDF
DCEU 18: Docker Enterprise Platform and Architecture
Docker, Inc.
 
PDF
MongoDB.local Austin 2018: MongoDB Ops Manager + Kubernetes
MongoDB
 
PPT
Building Clustered Applications with Kubernetes and Docker
Steve Watt
 
PDF
Watch How The Giants Fall: Learning from Bug Bounty Results
jtmelton
 
PDF
Continuous Delivery With Containers
All Things Open
 
PDF
Securing Kubernetes Workloads
Jim Bugwadia
 
PDF
The top 5 Kubernetes metrics to monitor
Sysdig
 
Kubernetes security
Saiyam Pathak
 
What is Google Cloud Good For at DevFestInspire 2021
Robert John
 
Security threats with Kubernetes - Igor Khoroshchenko
Kuberton
 
Orchestrating Microservices with Kubernetes
Weaveworks
 
Security best practices for kubernetes deployment
Michael Cherny
 
Kube Apps in action
Karthik Gaekwad
 
Keeping your Kubernetes Cluster Secure
Gene Gotimer
 
网易云K8S应用实践 | practices for kubernetes cluster provisioning, management and ap...
Xiaohui Chen
 
Moving to Kubernetes - Tales from SoundCloud
Tobias Schmidt
 
10 tips for Cloud Native Security
Karthik Gaekwad
 
Kubescape single pane of glass
LibbySchulze1
 
Luca Relandini - Microservices and containers networking: Contiv, deep dive a...
Codemotion
 
Containerizing a REST API and Deploying to Kubernetes
Ashley Roach
 
DCEU 18: Docker Enterprise Platform and Architecture
Docker, Inc.
 
MongoDB.local Austin 2018: MongoDB Ops Manager + Kubernetes
MongoDB
 
Building Clustered Applications with Kubernetes and Docker
Steve Watt
 
Watch How The Giants Fall: Learning from Bug Bounty Results
jtmelton
 
Continuous Delivery With Containers
All Things Open
 
Securing Kubernetes Workloads
Jim Bugwadia
 
The top 5 Kubernetes metrics to monitor
Sysdig
 

Similar to Introduction to Kubernetes Security (Aqua & Weaveworks) (20)

PDF
Delivering Quality at Speed with GitOps
Weaveworks
 
PDF
Hardening Your CI/CD Pipelines with GitOps and Continuous Security
Weaveworks
 
PDF
Secure GitOps pipelines for Kubernetes with Snyk & Weaveworks
Weaveworks
 
PDF
Speeding up your team with GitOps
Brice Fernandes
 
PPTX
GitOps - Modern best practices for high velocity app dev using cloud native t...
Weaveworks
 
PDF
What is GitOps? How GitOps works? we discuss Key Challanges.
aniporwal00
 
PDF
Whitepaper automating kuberneteswithgitops 1
Kenneth Nnadikwe
 
PPTX
GCP - Continuous Integration and Delivery into Kubernetes with GitHub, Travis...
Oleg Shalygin
 
PDF
Attacking and Defending Kubernetes - Nithin Jois
OWASP Hacker Thursday
 
PDF
Continuous Security for GitOps
Weaveworks
 
PDF
GitOps A/B testing with Istio and Helm
Weaveworks
 
PPTX
Securing microservices continuous delivery using grafeas and kritis
Vishal Banthia
 
PPTX
CI Implementation with Kubernetes at LivePerson by Saar Demri
DoiT International
 
PDF
WSO2 Screencast - How to Easily Build a Git-Based CI/CD Pipeline for your API...
Wasura Wattearachchi
 
PDF
GitOps is the best modern practice for CD with Kubernetes
Volodymyr Shynkar
 
PDF
Cncf k8s_network_03 (Ingress introduction)
Erhwen Kuo
 
PDF
Securing Prometheus. Lessons Learned from OpenShift.pdf
Jesús Ángel Samitier
 
PDF
A Guide to Adopting Kubernetes
NGINX, Inc.
 
PDF
Kubernetes in kubernetes 搭建高可用環境
inwin stack
 
PDF
5 Kubernetes Security Tools You Should Use
DevOps.com
 
Delivering Quality at Speed with GitOps
Weaveworks
 
Hardening Your CI/CD Pipelines with GitOps and Continuous Security
Weaveworks
 
Secure GitOps pipelines for Kubernetes with Snyk & Weaveworks
Weaveworks
 
Speeding up your team with GitOps
Brice Fernandes
 
GitOps - Modern best practices for high velocity app dev using cloud native t...
Weaveworks
 
What is GitOps? How GitOps works? we discuss Key Challanges.
aniporwal00
 
Whitepaper automating kuberneteswithgitops 1
Kenneth Nnadikwe
 
GCP - Continuous Integration and Delivery into Kubernetes with GitHub, Travis...
Oleg Shalygin
 
Attacking and Defending Kubernetes - Nithin Jois
OWASP Hacker Thursday
 
Continuous Security for GitOps
Weaveworks
 
GitOps A/B testing with Istio and Helm
Weaveworks
 
Securing microservices continuous delivery using grafeas and kritis
Vishal Banthia
 
CI Implementation with Kubernetes at LivePerson by Saar Demri
DoiT International
 
WSO2 Screencast - How to Easily Build a Git-Based CI/CD Pipeline for your API...
Wasura Wattearachchi
 
GitOps is the best modern practice for CD with Kubernetes
Volodymyr Shynkar
 
Cncf k8s_network_03 (Ingress introduction)
Erhwen Kuo
 
Securing Prometheus. Lessons Learned from OpenShift.pdf
Jesús Ángel Samitier
 
A Guide to Adopting Kubernetes
NGINX, Inc.
 
Kubernetes in kubernetes 搭建高可用環境
inwin stack
 
5 Kubernetes Security Tools You Should Use
DevOps.com
 
Ad

More from Weaveworks (20)

PDF
Weave AI Controllers (Weave GitOps Office Hours)
Weaveworks
 
PDF
Flamingo: Expand ArgoCD with Flux (Office Hours)
Weaveworks
 
PDF
Webinar: Capabilities, Confidence and Community – What Flux GA Means for You
Weaveworks
 
PDF
Six Signs You Need Platform Engineering
Weaveworks
 
PDF
SRE and GitOps for Building Robust Kubernetes Platforms.pdf
Weaveworks
 
PDF
Webinar: End to End Security & Operations with Chainguard and Weave GitOps
Weaveworks
 
PDF
Flux Beyond Git Harnessing the Power of OCI
Weaveworks
 
PDF
Automated Provisioning, Management & Cost Control for Kubernetes Clusters
Weaveworks
 
PDF
How to Avoid Kubernetes Multi-tenancy Catastrophes
Weaveworks
 
PDF
Building internal developer platform with EKS and GitOps
Weaveworks
 
PDF
GitOps Testing in Kubernetes with Flux and Testkube.pdf
Weaveworks
 
PDF
Intro to GitOps with Weave GitOps, Flagger and Linkerd
Weaveworks
 
PDF
Implementing Flux for Scale with Soft Multi-tenancy
Weaveworks
 
PDF
Accelerating Hybrid Multistage Delivery with Weave GitOps on EKS
Weaveworks
 
PDF
The Story of Flux Reaching Graduation in the CNCF
Weaveworks
 
PDF
Shift Deployment Security Left with Weave GitOps & Upbound’s Universal Crossp...
Weaveworks
 
PDF
Securing Your App Deployments with Tunnels, OIDC, RBAC, and Progressive Deliv...
Weaveworks
 
PDF
Flux’s Security & Scalability with OCI & Helm Slides.pdf
Weaveworks
 
PDF
Flux Security & Scalability using VS Code GitOps Extension
Weaveworks
 
PDF
Deploying Stateful Applications Securely & Confidently with Ondat & Weave GitOps
Weaveworks
 
Weave AI Controllers (Weave GitOps Office Hours)
Weaveworks
 
Flamingo: Expand ArgoCD with Flux (Office Hours)
Weaveworks
 
Webinar: Capabilities, Confidence and Community – What Flux GA Means for You
Weaveworks
 
Six Signs You Need Platform Engineering
Weaveworks
 
SRE and GitOps for Building Robust Kubernetes Platforms.pdf
Weaveworks
 
Webinar: End to End Security & Operations with Chainguard and Weave GitOps
Weaveworks
 
Flux Beyond Git Harnessing the Power of OCI
Weaveworks
 
Automated Provisioning, Management & Cost Control for Kubernetes Clusters
Weaveworks
 
How to Avoid Kubernetes Multi-tenancy Catastrophes
Weaveworks
 
Building internal developer platform with EKS and GitOps
Weaveworks
 
GitOps Testing in Kubernetes with Flux and Testkube.pdf
Weaveworks
 
Intro to GitOps with Weave GitOps, Flagger and Linkerd
Weaveworks
 
Implementing Flux for Scale with Soft Multi-tenancy
Weaveworks
 
Accelerating Hybrid Multistage Delivery with Weave GitOps on EKS
Weaveworks
 
The Story of Flux Reaching Graduation in the CNCF
Weaveworks
 
Shift Deployment Security Left with Weave GitOps & Upbound’s Universal Crossp...
Weaveworks
 
Securing Your App Deployments with Tunnels, OIDC, RBAC, and Progressive Deliv...
Weaveworks
 
Flux’s Security & Scalability with OCI & Helm Slides.pdf
Weaveworks
 
Flux Security & Scalability using VS Code GitOps Extension
Weaveworks
 
Deploying Stateful Applications Securely & Confidently with Ondat & Weave GitOps
Weaveworks
 
Ad

Recently uploaded (20)

PDF
Download Canva Pro 2025 PC Crack Full Latest Version
bashirkhan333g
 
PDF
4K Video Downloader Plus Pro Crack for MacOS New Download 2025
bashirkhan333g
 
PPTX
Transforming Mining & Engineering Operations with Odoo ERP | Streamline Proje...
SatishKumar2651
 
PPTX
Help for Correlations in IBM SPSS Statistics.pptx
Version 1 Analytics
 
PDF
The 5 Reasons for IT Maintenance - Arna Softech
Arna Softech
 
PDF
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
PPTX
Agentic Automation Journey Series Day 2 – Prompt Engineering for UiPath Agents
klpathrudu
 
PDF
Generic or Specific? Making sensible software design decisions
Bert Jan Schrijver
 
PDF
[Solution] Why Choose the VeryPDF DRM Protector Custom-Built Solution for You...
Lingwen1998
 
PPTX
Tally software_Introduction_Presentation
AditiBansal54083
 
PDF
MiniTool Partition Wizard Free Crack + Full Free Download 2025
bashirkhan333g
 
PDF
TheFutureIsDynamic-BoxLang witch Luis Majano.pdf
Ortus Solutions, Corp
 
PDF
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 
PDF
Driver Easy Pro 6.1.1 Crack Licensce key 2025 FREE
utfefguu
 
PDF
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pdf
Varsha Nayak
 
PDF
Automate Cybersecurity Tasks with Python
VICTOR MAESTRE RAMIREZ
 
PPTX
Milwaukee Marketo User Group - Summer Road Trip: Mapping and Personalizing Yo...
bbedford2
 
PDF
AI + DevOps = Smart Automation with devseccops.ai.pdf
Devseccops.ai
 
PDF
SAP Firmaya İade ABAB Kodları - ABAB ile yazılmıl hazır kod örneği
Salih Küçük
 
PDF
Open Chain Q2 Steering Committee Meeting - 2025-06-25
Shane Coughlan
 
Download Canva Pro 2025 PC Crack Full Latest Version
bashirkhan333g
 
4K Video Downloader Plus Pro Crack for MacOS New Download 2025
bashirkhan333g
 
Transforming Mining & Engineering Operations with Odoo ERP | Streamline Proje...
SatishKumar2651
 
Help for Correlations in IBM SPSS Statistics.pptx
Version 1 Analytics
 
The 5 Reasons for IT Maintenance - Arna Softech
Arna Softech
 
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
Agentic Automation Journey Series Day 2 – Prompt Engineering for UiPath Agents
klpathrudu
 
Generic or Specific? Making sensible software design decisions
Bert Jan Schrijver
 
[Solution] Why Choose the VeryPDF DRM Protector Custom-Built Solution for You...
Lingwen1998
 
Tally software_Introduction_Presentation
AditiBansal54083
 
MiniTool Partition Wizard Free Crack + Full Free Download 2025
bashirkhan333g
 
TheFutureIsDynamic-BoxLang witch Luis Majano.pdf
Ortus Solutions, Corp
 
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 
Driver Easy Pro 6.1.1 Crack Licensce key 2025 FREE
utfefguu
 
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pdf
Varsha Nayak
 
Automate Cybersecurity Tasks with Python
VICTOR MAESTRE RAMIREZ
 
Milwaukee Marketo User Group - Summer Road Trip: Mapping and Personalizing Yo...
bbedford2
 
AI + DevOps = Smart Automation with devseccops.ai.pdf
Devseccops.ai
 
SAP Firmaya İade ABAB Kodları - ABAB ile yazılmıl hazır kod örneği
Salih Küçük
 
Open Chain Q2 Steering Committee Meeting - 2025-06-25
Shane Coughlan
 

Introduction to Kubernetes Security (Aqua & Weaveworks)