SlideShare a Scribd company logo
Container Security:
A toolchain for automatic image rebuilds
Raphaël Pinson
www.camptocamp.com
Who am I?
■ Raphaël Pinson
■ Infrastructure Developer
■ Automation
(Puppet, Augeas,
Docker, Kubernetes)
■ Lausanne, CH
www.camptocamp.com
Camptocamp Group
www.camptocamp.com
Technologies timeline
www.camptocamp.com
Infrastructure Technology Stack
www.camptocamp.com
Partnerships
www.camptocamp.com
Containers are Static Artifacts
■ Dynamic libraries => shared security updates
■ Containers do not share libraries
○ Static artifacts
○ Might as well build static binaries
○ Need rebuilds
www.camptocamp.com
Conditions for Immutability
■ Containers are made for immutability
■ Requires separation of context
○ Code: immutable artifact, promoted
○ Configuration: injected at instantiation
○ Data: separate
www.camptocamp.com
Artifacts Promotion
■ Artifacts are built once (CI)
■ Pushed to dev (CD)
■ Promoted without rebuilds (CD)
www.camptocamp.com
CI/CD = CI + CD
■ Continuous Integration to build images
○ Diff is used to validate image diff
■ Continuous Deployment to deploy containers
○ Diff is used to validate promotion diff
www.camptocamp.com
Requirements
■ Only deploy images stored in the internal registry
(not public images)
■ Deploy automatically/promote semi-automatically
■ Mechanism to import/update images automatically
■ Keep Git history for upstream image changes
www.camptocamp.com
Infrastructure as Code (IaC)
Definition
Infrastructure as Code (IaC) is a method to provision and manage
IT infrastructure through the use of source code, rather than
through standard operating procedures and manual processes.
You’re basically treating your servers, databases, networks, and
other infrastructure like software. This code can help you
configure and deploy these infrastructure components quickly
and consistently.
IaC helps you automate the infrastructure deployment process in
a repeatable, consistent manner, which has many benefits.
www.camptocamp.com
IaC best practices
■ Code everything
■ Use version control
■ Define Code Review Processes
■ Continuously test, integrate and deploy
■ Document as little as needed
www.camptocamp.com
Release mgmt & deployments
GitOps - Operation by merge requests
■ The entire system state is under version control
■ A single Git repository describes one or multiple
namespaces. This is related to access permissions.
■ Operational changes are made by merge request
■ Rollback and audit logs are provided via Git
■ When disaster strikes, the whole infrastructure can be
quickly restored from Git
Container Security: a toolchain for automatic image rebuilds
16/
Container Patching Challenges
■ Monitor upstream images on
security patches (or other
changes)
■ Rebuild deployment image with
patched upstream image
■ Keep history of image references
for each release
■ Deploy patched deployment
image in development and/or
integration environment
■ Promotion to production
17/
ImageStreams & BuildConfigs
In OpenShift:
■ ImageStreams watch distant
Docker images, sync them
locally. Can trigger BuildConfigs.
■ BuildConfigs trigger OpenShift
builds (any action). Can trigger
DeploymentConfigs.
18/
Container Patching Using Openshift
ImageStream and Custom Build Strategy
■ ImageStream is set for listening
on image changes
■ Custom Build is Triggered to
update upstream Image
references in source repo
■ As the source code changed,
default build & deploy pipeline
are executed
■ Finally, just review the diffs and
accept the generated merge
request
19/
Container Patching Demo Goal
As soon as an image used in the openshift cluster is updated (including for
security patches), you’ll find a brand new merge request in the release
management repository asking you if you want to deploy it.
20/
■ Helm charts & Helmfile for release management
■ Gopass for encrypted secret management
■ Gitlab for:
○ Source version control
○ Private Docker registry
○ Continuous integration
○ Continuous deployment
Container Patching Demo Tools
21/
Container Patching Demo Setup
22/
Container Patching Demo Tools
23/
Container Patching Demo Tools
24/
Container Patching Demo Tools
25/
Container Patching Demo Tools
26/
Container Patching Demo Tools
27/
Container Patching Demo Tools
28/
Container Patching Demo Tools
29/
Container Patching Demo Tools
30/
Container Patching Demo Tools
31/
Container Patching Demo Tools
32/
Container Patching Demo Setup
Container Security: a toolchain for automatic image rebuilds
34
Questions?
Container Security: a toolchain for automatic image rebuilds

More Related Content

PDF
CRI, OCI, and CRI-O
PDF
OpenDataPlane Testing in Travis
ODP
Embedded recipes 2018 - End-to-end software production for embedded - Guy Lun...
ODP
FTTH Factory — an illustration of the "Everything as Code" paradigm
PDF
helm, the real world
PDF
BKK16-307 LHG OE Initiative
PDF
LinuxKit & Moby - The next level of the container ecosystem
PPTX
Hello, Docker!
CRI, OCI, and CRI-O
OpenDataPlane Testing in Travis
Embedded recipes 2018 - End-to-end software production for embedded - Guy Lun...
FTTH Factory — an illustration of the "Everything as Code" paradigm
helm, the real world
BKK16-307 LHG OE Initiative
LinuxKit & Moby - The next level of the container ecosystem
Hello, Docker!

What's hot (18)

PDF
EclipseCon Eu 2012 - Buildroot Eclipse Bundle : A powerful IDE for Embedded L...
PDF
The NetBSD package Collection - a.k.a pkgsrc
PDF
2015-09-16 georchestra @ foss4g2015 Seoul
PDF
Kvm forum 2013 - future integration points for oVirt storage
PDF
BKK16-209 Chromium with V4L2 playback - is it ready today?
PDF
Docker integration
PDF
Kubernetes on CRI-O
PDF
oVirt – open your virtual datacenter
PPT
Qt5 beta1 on ti platforms
PDF
The world of Containers with Podman, Buildah, Skopeo by Seema - CCDays
PDF
Docker off the grid
PDF
NUS-ISS Learning Day 2017 - Bots-Managed CloudOps
PDF
Gitlab Commit: How Containerized GitLab CI Pipelines Can Help You Streamline ...
PDF
Docker. General overview
PDF
Wayland support in WebKit2GTK+ (GUADEC 2014)
PDF
SFO15-203: Linaro CI - git driven workflow & Jenkins advanced usage
PDF
APPUiO Quick Start (OpenShift > DevOps > App Dev)
PDF
Virtualization Management The oVirt Way (August Penguin 2015)
EclipseCon Eu 2012 - Buildroot Eclipse Bundle : A powerful IDE for Embedded L...
The NetBSD package Collection - a.k.a pkgsrc
2015-09-16 georchestra @ foss4g2015 Seoul
Kvm forum 2013 - future integration points for oVirt storage
BKK16-209 Chromium with V4L2 playback - is it ready today?
Docker integration
Kubernetes on CRI-O
oVirt – open your virtual datacenter
Qt5 beta1 on ti platforms
The world of Containers with Podman, Buildah, Skopeo by Seema - CCDays
Docker off the grid
NUS-ISS Learning Day 2017 - Bots-Managed CloudOps
Gitlab Commit: How Containerized GitLab CI Pipelines Can Help You Streamline ...
Docker. General overview
Wayland support in WebKit2GTK+ (GUADEC 2014)
SFO15-203: Linaro CI - git driven workflow & Jenkins advanced usage
APPUiO Quick Start (OpenShift > DevOps > App Dev)
Virtualization Management The oVirt Way (August Penguin 2015)
Ad

Similar to Container Security: a toolchain for automatic image rebuilds (20)

PDF
Openshift cheat rhce_r3v1 rhce
PDF
Openbar 7 - Leuven - OpenShift - The Enterprise Container Platform - Piros
PPTX
Room 2 - 4 - Juncheng Anthony Lin - Redhat - A Practical Approach to Traditio...
PDF
Open shift and docker - october,2014
PDF
Build Your Own PaaS, Just like Red Hat's OpenShift from LinuxCon 2013 New Orl...
PDF
Fabric8 CI/CD
PDF
Veer's Container Security
PDF
Red Hat Forum Benelux 2015
PDF
Openshift Container Platform: First ItalyMeetup
PDF
DevOpsDays Houston 2019 - Shaun Ladewig, Robert Stone - From OverTheWallOps t...
PDF
Red Hat OpenShift Container Platform Overview
PDF
#SREcon Immutable Infrastructure: rethinking configuration mgmt
PDF
SRECon 18 Immutable Infrastructure
PDF
VASCAN - Docker and Security
PDF
Openshift meetup Paris - 21/03/2018
PDF
Webinar–Vulnerabilities in Containerised Production Environments
PPTX
Red Hat Openshift Fundamentals.pptx
PPTX
FICO Open Shift presentation
PDF
Immutable Infrastructure & Rethinking Configuration - Interop 2019
PDF
OPENSHIFT CONTAINER PLATFORM CI/CD Build & Deploy
Openshift cheat rhce_r3v1 rhce
Openbar 7 - Leuven - OpenShift - The Enterprise Container Platform - Piros
Room 2 - 4 - Juncheng Anthony Lin - Redhat - A Practical Approach to Traditio...
Open shift and docker - october,2014
Build Your Own PaaS, Just like Red Hat's OpenShift from LinuxCon 2013 New Orl...
Fabric8 CI/CD
Veer's Container Security
Red Hat Forum Benelux 2015
Openshift Container Platform: First ItalyMeetup
DevOpsDays Houston 2019 - Shaun Ladewig, Robert Stone - From OverTheWallOps t...
Red Hat OpenShift Container Platform Overview
#SREcon Immutable Infrastructure: rethinking configuration mgmt
SRECon 18 Immutable Infrastructure
VASCAN - Docker and Security
Openshift meetup Paris - 21/03/2018
Webinar–Vulnerabilities in Containerised Production Environments
Red Hat Openshift Fundamentals.pptx
FICO Open Shift presentation
Immutable Infrastructure & Rethinking Configuration - Interop 2019
OPENSHIFT CONTAINER PLATFORM CI/CD Build & Deploy
Ad

More from Raphaël PINSON (20)

PDF
Explore the World of Cilium, Tetragon & eBPF
PDF
Cfgmgmtcamp 2024 — eBPF-based Security Observability & Runtime Enforcement wi...
PDF
ContainerDays Hamburg 2023 — Cilium Workshop.pdf
PDF
KCD Zurich 2023 — Bridge Dev & Ops with eBPF.pdf
PDF
Cloud Native Bern 05.2023 — Zero Trust Visibility
PDF
DevOpsDays Zurich 2023 — Bridging Dev and Ops with eBPF: Extending Observabil...
PPTX
Révolution eBPF - un noyau dynamique
PPTX
Cfgmgmtcamp 2023 — eBPF Superpowers
PDF
Cloud Native Networking & Security with Cilium & eBPF
PDF
2022 DevOpsDays Geneva — The Hare and the Tortoise.pdf
PDF
SKS in git ops mode
PDF
The Hare and the Tortoise: Open Source, Standards & Technological Debt
PDF
Devops stack
PDF
YAML Engineering: why we need a new paradigm
PDF
K9s - Kubernetes CLI To Manage Your Clusters In Style
PDF
Argocd up and running
PDF
Bivac - Container Volumes Backup
PDF
Automating Puppet Certificates Renewal
PDF
Running the Puppet Stack in Containers
PDF
Automating Puppet Certificates Renewal
Explore the World of Cilium, Tetragon & eBPF
Cfgmgmtcamp 2024 — eBPF-based Security Observability & Runtime Enforcement wi...
ContainerDays Hamburg 2023 — Cilium Workshop.pdf
KCD Zurich 2023 — Bridge Dev & Ops with eBPF.pdf
Cloud Native Bern 05.2023 — Zero Trust Visibility
DevOpsDays Zurich 2023 — Bridging Dev and Ops with eBPF: Extending Observabil...
Révolution eBPF - un noyau dynamique
Cfgmgmtcamp 2023 — eBPF Superpowers
Cloud Native Networking & Security with Cilium & eBPF
2022 DevOpsDays Geneva — The Hare and the Tortoise.pdf
SKS in git ops mode
The Hare and the Tortoise: Open Source, Standards & Technological Debt
Devops stack
YAML Engineering: why we need a new paradigm
K9s - Kubernetes CLI To Manage Your Clusters In Style
Argocd up and running
Bivac - Container Volumes Backup
Automating Puppet Certificates Renewal
Running the Puppet Stack in Containers
Automating Puppet Certificates Renewal

Recently uploaded (20)

PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPT
Teaching material agriculture food technology
PPTX
Big Data Technologies - Introduction.pptx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Cloud computing and distributed systems.
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Approach and Philosophy of On baking technology
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Building Integrated photovoltaic BIPV_UPV.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Advanced methodologies resolving dimensionality complications for autism neur...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
20250228 LYD VKU AI Blended-Learning.pptx
Teaching material agriculture food technology
Big Data Technologies - Introduction.pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Chapter 3 Spatial Domain Image Processing.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Spectral efficient network and resource selection model in 5G networks
Cloud computing and distributed systems.
Dropbox Q2 2025 Financial Results & Investor Presentation
Assigned Numbers - 2025 - Bluetooth® Document
Approach and Philosophy of On baking technology

Container Security: a toolchain for automatic image rebuilds