SlideShare a Scribd company logo
Enhance Your Compliance and Governance
With Policy-Based CI/CD
Continuous Lifecycle & Container Conf 2021
Nico Meisenzahl
• Senior Cloud & DevOps Consultant at white duck
• Microsoft MVP, GitLab Hero
• Cloud Native, Kubernetes & Azure
© white duck GmbH 2021
Phone: +49 8031 230159 0
Email: nico.meisenzahl@whiteduck.de
Twitter: @nmeisenzahl
LinkedIn: https://www.linkedin.com/in/nicomeisenzahl
Blog: https://meisenzahl.org
Agenda
• Why do we need compliance and governance in CI/CD?
• What is Open Policy Agent and how does it work?
• How to get started – demo time
© white duck GmbH 2021
Why do we need governance?
• Regulatory compliance: comply with relevant laws,
policies, and regulations
• Standards: adhere to established and standard
requirements
• Contractual commitments: like vendor agreements,
customers contracts
• Corporate requirements: rules and policies defined by the
company to comply with its needs
© white duck GmbH 2021
Compliance and governance in CI/CD?
Shift Left!
• rises awareness
• defines the “how” around the “what” of the pipeline
• security and compliance gates
• ensures requirements are always met
© white duck GmbH 2021
Open Policy Agent (OPA)
“policy-based control for cloud native environments”
• general-purpose policy engine across your stack
• graduated CNCF project introduced by styra
• declarative policy language
• decoupled the application logic from policy decisions
• REST API with sidecar or daemon
• Golang library or Wasm module
• provides APIs for easy management
© white duck GmbH 2021
© white duck GmbH 2021
Ecosystem
• API and service authorization with Envoy, Kong, Traefik, …
• authorization policies for SQL, Kafka, …
• container network authorization with Istio and Linkerd
• test policies for Terraform infrastructure changes
• policies for SSH and sudo
• policy and governance for Kubernetes
• and many more
• https://www.openpolicyagent.org/docs/latest/ecosystem
© white duck GmbH 2021
How OPA works
How OPA works
Rego
• “ray-go”
• declarative Policy Language
• ”is Nico allowed to POST a payload to /api?”
• rules commonly return true/false
• but may return any value
• 140+ build-in functions
• date/time, string, ...
• Regex
• JWT validation
© white duck GmbH 2021
How OPA works
How to get started
• OPA playground
• https://play.openpolicyagent.org
• docs
• https://www.openpolicyagent.org/docs
• OPA CLI
• opa run (server)
• opa eval (swiss-army knife)
Demos
• Terraform change validation with GitLab CI/CD
• Kubernetes manifest security validation with GitHub Actions
• further samples
• dependency deny list
• https://play.openpolicyagent.org/p/b0n6CHElcw
• Kubernetes Ingress validation
• https://play.openpolicyagent.org/p/5o1UFjIl0S
© white duck GmbH 2021
Questions?
• Slides: https://www.slideshare.net/nmeisenzahl
• Demos:
• https://gitlab.com/nico-meisenzahl/demo-opa-terraform-validation
• https://github.com/nmeisenzahl/demo-opa-cicd-validation
© white duck GmbH 2021
Phone: +49 8031 230159 0
Email: nico.meisenzahl@whiteduck.de
Twitter: @nmeisenzahl
LinkedIn: https://www.linkedin.com/in/nicomeisenzahl
Blog: https://meisenzahl.org

More Related Content

PDF
Policy & Governance für Kubernetes
PDF
Hijack a Kubernetes Cluster - a Walkthrough
PDF
azdevcom - Hijack a Kubernetes Cluster
PDF
Azure Saturday Hamburg: Containerize Your .NET Microservice - the Right Way!
PDF
Die Evolution von Container Image Builds
PDF
Continuous Lifecycle: Hijack Kubernetes
PDF
GitLab Commit: Your Attackers Won't Be Happy! How GitLab Can Help You Secure ...
PDF
GitLab Commit DevOps: How GitLab Can Save your Kubernetes environment from Be...
Policy & Governance für Kubernetes
Hijack a Kubernetes Cluster - a Walkthrough
azdevcom - Hijack a Kubernetes Cluster
Azure Saturday Hamburg: Containerize Your .NET Microservice - the Right Way!
Die Evolution von Container Image Builds
Continuous Lifecycle: Hijack Kubernetes
GitLab Commit: Your Attackers Won't Be Happy! How GitLab Can Help You Secure ...
GitLab Commit DevOps: How GitLab Can Save your Kubernetes environment from Be...

What's hot (20)

PDF
Azure Meetup Hamburg: Production-Ready Terraform Deployments on Azure
PDF
Cloud Native Day: Cloud-native Anwendungsentwicklung im Jahr 2021
PDF
GitLab Commit: Enhance your Compliance with Policy-Based CI/CD
PDF
Azure Zürich User Group: Azure Kubernetes Service – more than just a managed ...
PDF
DevOpsCon Berlin: Helm vs Operators – Do I Need to Decide?
PDF
GitLab Remote Meetup: Enhance Your Kubernetes CI/CD Pipelines with GitLab & ...
PPTX
FestiveTechCalendar2021 - Have Yourself An​ Azure Container Registry
PDF
EVE Microservices Platform
PDF
Global Azure Bootcamp: Container, Docker & Kubernetes Basics
PDF
Dutchcontainerdays
PDF
KCD Guatemala - Abstracciones sobre Abstracciones
PDF
DevSecCon Singapore 2019: Preventative Security for Kubernetes
PDF
MadridJug From Monolith to k8s with Jenkins X and Zeebe
PDF
Orchestrating Microservices
PDF
Developing and Deploying Microservices with Project Tye
PDF
Introduction to Docker
PDF
Create A Mapping Web Part
PPTX
Secure Your Apps with NGINX Plus and the ModSecurity WAF
PDF
TechWiseTV Workshop: Cisco Developer Program
PPTX
[AzureCamp 24 Juin 2014] Témoignage de Conuxio par Arnaud Lecoufle
Azure Meetup Hamburg: Production-Ready Terraform Deployments on Azure
Cloud Native Day: Cloud-native Anwendungsentwicklung im Jahr 2021
GitLab Commit: Enhance your Compliance with Policy-Based CI/CD
Azure Zürich User Group: Azure Kubernetes Service – more than just a managed ...
DevOpsCon Berlin: Helm vs Operators – Do I Need to Decide?
GitLab Remote Meetup: Enhance Your Kubernetes CI/CD Pipelines with GitLab & ...
FestiveTechCalendar2021 - Have Yourself An​ Azure Container Registry
EVE Microservices Platform
Global Azure Bootcamp: Container, Docker & Kubernetes Basics
Dutchcontainerdays
KCD Guatemala - Abstracciones sobre Abstracciones
DevSecCon Singapore 2019: Preventative Security for Kubernetes
MadridJug From Monolith to k8s with Jenkins X and Zeebe
Orchestrating Microservices
Developing and Deploying Microservices with Project Tye
Introduction to Docker
Create A Mapping Web Part
Secure Your Apps with NGINX Plus and the ModSecurity WAF
TechWiseTV Workshop: Cisco Developer Program
[AzureCamp 24 Juin 2014] Témoignage de Conuxio par Arnaud Lecoufle
Ad

Similar to Continuous Lifecycle: Enhance Your Compliance and Governance With Policy-Based CI/CD (20)

PDF
Docker Rosenheim Meetup: Policy & Governance for Kubernetes
PDF
Dynamic Authorization & Policy Control for Docker Environments
PDF
Addressing Cloud Security with OPA
PDF
Cloud Native User Group: Shift-Left Testing IaC With PaC
PPTX
Open Policy Agent for governance as a code
PDF
Dynamic Policy Enforcement for Microservice Environments
PDF
DSO-LG 2021 Reboot: Policy As Code (Anders Eknert)
PPTX
Cloud native policy enforcement with Open Policy Agent
PDF
Defining & Enforcing Policies the GitOps Way
PPTX
apidays LIVE New York 2021 - Simplify Open Policy Agent with Styra DAS by Tim...
PPTX
OPA APIs and Use Case Survey
PDF
AWS Cloud Governance & Security through Automation - Atlanta AWS Builders
PDF
Open Policy Agent
PDF
Ronen Levinson: Unified policy enforcement with opa - Architecture Next 20
PDF
Engineering Continuous Security and Compliance
PDF
Continuous compliance using data and code
PDF
A DevOps Mario Developer Game Challenge with GRC
PDF
SOA Governance in Action REST and WS Architectures Jos Dirksen
PDF
Hardening Your CI/CD Pipelines with GitOps and Continuous Security
PDF
Optimizing the Ops in DevOps
Docker Rosenheim Meetup: Policy & Governance for Kubernetes
Dynamic Authorization & Policy Control for Docker Environments
Addressing Cloud Security with OPA
Cloud Native User Group: Shift-Left Testing IaC With PaC
Open Policy Agent for governance as a code
Dynamic Policy Enforcement for Microservice Environments
DSO-LG 2021 Reboot: Policy As Code (Anders Eknert)
Cloud native policy enforcement with Open Policy Agent
Defining & Enforcing Policies the GitOps Way
apidays LIVE New York 2021 - Simplify Open Policy Agent with Styra DAS by Tim...
OPA APIs and Use Case Survey
AWS Cloud Governance & Security through Automation - Atlanta AWS Builders
Open Policy Agent
Ronen Levinson: Unified policy enforcement with opa - Architecture Next 20
Engineering Continuous Security and Compliance
Continuous compliance using data and code
A DevOps Mario Developer Game Challenge with GRC
SOA Governance in Action REST and WS Architectures Jos Dirksen
Hardening Your CI/CD Pipelines with GitOps and Continuous Security
Optimizing the Ops in DevOps
Ad

More from Nico Meisenzahl (18)

PDF
Cloud-Native & Sustainability: How and Why to Build Sustainable Workloads
PDF
Container Day Security: How to Prevent Your Kubernetes Cluster From Being Hacked
PDF
Festive Tech Calendar: Festive time with AKS networking
PDF
ContainerConf 2022: Hijack Kubernetes
PDF
ContainerConf 2022: Kubernetes is awesome - but...
PDF
KCD Munich 2022: How to Prevent Your Kubernetes Cluster From Being Hacked
PDF
KCD Munich 2022: Hijack a Kubernetes Cluster - a Walkthrough
PDF
Cloud Love Conference: Kubernetes is awesome, but...
PDF
How to Prevent Your Kubernetes Cluster From Being Hacked
PDF
Container Days: Hijack a Kubernetes Cluster - a Walkthrough
PPTX
Hijack a Kubernetes Cluster - a Walkthrough
PDF
Hijack a Kubernetes Cluster - a Walkthrough
PDF
Microsoft DevOps Forum 2021 – DevOps & Security
PDF
GitHub Actions 101
PDF
Azure Rosenheim Meetup: Azure Service Operator
PDF
Azure Service Operator - Provision Your Resources in a Cloud-Native Way
PDF
Effiziente CI/CD-Pipelines – mit den richtigen Tools klappt das
PDF
DevOpsCon London: How containerized Pipelines can boost your CI/CD
Cloud-Native & Sustainability: How and Why to Build Sustainable Workloads
Container Day Security: How to Prevent Your Kubernetes Cluster From Being Hacked
Festive Tech Calendar: Festive time with AKS networking
ContainerConf 2022: Hijack Kubernetes
ContainerConf 2022: Kubernetes is awesome - but...
KCD Munich 2022: How to Prevent Your Kubernetes Cluster From Being Hacked
KCD Munich 2022: Hijack a Kubernetes Cluster - a Walkthrough
Cloud Love Conference: Kubernetes is awesome, but...
How to Prevent Your Kubernetes Cluster From Being Hacked
Container Days: Hijack a Kubernetes Cluster - a Walkthrough
Hijack a Kubernetes Cluster - a Walkthrough
Hijack a Kubernetes Cluster - a Walkthrough
Microsoft DevOps Forum 2021 – DevOps & Security
GitHub Actions 101
Azure Rosenheim Meetup: Azure Service Operator
Azure Service Operator - Provision Your Resources in a Cloud-Native Way
Effiziente CI/CD-Pipelines – mit den richtigen Tools klappt das
DevOpsCon London: How containerized Pipelines can boost your CI/CD

Recently uploaded (20)

PPTX
Cloud computing and distributed systems.
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
MYSQL Presentation for SQL database connectivity
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Modernizing your data center with Dell and AMD
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
KodekX | Application Modernization Development
PDF
Approach and Philosophy of On baking technology
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
cuic standard and advanced reporting.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
Cloud computing and distributed systems.
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
MYSQL Presentation for SQL database connectivity
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Advanced methodologies resolving dimensionality complications for autism neur...
Modernizing your data center with Dell and AMD
Empathic Computing: Creating Shared Understanding
Digital-Transformation-Roadmap-for-Companies.pptx
Building Integrated photovoltaic BIPV_UPV.pdf
KodekX | Application Modernization Development
Approach and Philosophy of On baking technology
Diabetes mellitus diagnosis method based random forest with bat algorithm
The Rise and Fall of 3GPP – Time for a Sabbatical?
cuic standard and advanced reporting.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Understanding_Digital_Forensics_Presentation.pptx
Unlocking AI with Model Context Protocol (MCP)
NewMind AI Monthly Chronicles - July 2025
Per capita expenditure prediction using model stacking based on satellite ima...

Continuous Lifecycle: Enhance Your Compliance and Governance With Policy-Based CI/CD

  • 1. Enhance Your Compliance and Governance With Policy-Based CI/CD Continuous Lifecycle & Container Conf 2021
  • 2. Nico Meisenzahl • Senior Cloud & DevOps Consultant at white duck • Microsoft MVP, GitLab Hero • Cloud Native, Kubernetes & Azure © white duck GmbH 2021 Phone: +49 8031 230159 0 Email: nico.meisenzahl@whiteduck.de Twitter: @nmeisenzahl LinkedIn: https://www.linkedin.com/in/nicomeisenzahl Blog: https://meisenzahl.org
  • 3. Agenda • Why do we need compliance and governance in CI/CD? • What is Open Policy Agent and how does it work? • How to get started – demo time © white duck GmbH 2021
  • 4. Why do we need governance? • Regulatory compliance: comply with relevant laws, policies, and regulations • Standards: adhere to established and standard requirements • Contractual commitments: like vendor agreements, customers contracts • Corporate requirements: rules and policies defined by the company to comply with its needs © white duck GmbH 2021
  • 5. Compliance and governance in CI/CD? Shift Left! • rises awareness • defines the “how” around the “what” of the pipeline • security and compliance gates • ensures requirements are always met © white duck GmbH 2021
  • 6. Open Policy Agent (OPA) “policy-based control for cloud native environments” • general-purpose policy engine across your stack • graduated CNCF project introduced by styra • declarative policy language • decoupled the application logic from policy decisions • REST API with sidecar or daemon • Golang library or Wasm module • provides APIs for easy management © white duck GmbH 2021
  • 7. © white duck GmbH 2021
  • 8. Ecosystem • API and service authorization with Envoy, Kong, Traefik, … • authorization policies for SQL, Kafka, … • container network authorization with Istio and Linkerd • test policies for Terraform infrastructure changes • policies for SSH and sudo • policy and governance for Kubernetes • and many more • https://www.openpolicyagent.org/docs/latest/ecosystem © white duck GmbH 2021
  • 11. Rego • “ray-go” • declarative Policy Language • ”is Nico allowed to POST a payload to /api?” • rules commonly return true/false • but may return any value • 140+ build-in functions • date/time, string, ... • Regex • JWT validation © white duck GmbH 2021
  • 13. How to get started • OPA playground • https://play.openpolicyagent.org • docs • https://www.openpolicyagent.org/docs • OPA CLI • opa run (server) • opa eval (swiss-army knife)
  • 14. Demos • Terraform change validation with GitLab CI/CD • Kubernetes manifest security validation with GitHub Actions • further samples • dependency deny list • https://play.openpolicyagent.org/p/b0n6CHElcw • Kubernetes Ingress validation • https://play.openpolicyagent.org/p/5o1UFjIl0S © white duck GmbH 2021
  • 15. Questions? • Slides: https://www.slideshare.net/nmeisenzahl • Demos: • https://gitlab.com/nico-meisenzahl/demo-opa-terraform-validation • https://github.com/nmeisenzahl/demo-opa-cicd-validation © white duck GmbH 2021 Phone: +49 8031 230159 0 Email: nico.meisenzahl@whiteduck.de Twitter: @nmeisenzahl LinkedIn: https://www.linkedin.com/in/nicomeisenzahl Blog: https://meisenzahl.org