Recording of the talk available at: https://youtu.be/62p6v_A4KTM
Most popular container image build tools require extensive privileges to perform their intricate task. This makes it challenging to run them in container-based CI systems, on Kubernetes, or even in rootless environments. At the same time, CI systems are an attractive target for attacks and privileged image builds pose a well-known risk.
In many ways, the problem boils down to "running containers within containers". It received substantial attention around 2018, when various roadblocks were identified and patches were under review. But six years later, most container images are still built in privileged environments. However, the fundamentals have improved and real-world solutions are now available!
The talk will first give an overview of the technical obstacles and what has changed in recent years. It will then spotlight real-world tools and their underlying approaches. Finally, some practical guidance will be provided to engineers eager to adopt unprivileged image builds.