liveBook · Manning

Chapter 11: Additional security considerations

What you will learn in chapter 11 of Podman in Action: Secure, rootless containers for Kubernetes, microservices, and more

The introduction previews Podman security topics and warns against using --privileged as a quick fix for denied container access.

After this chapter you will be able to

What it builds on

Section by section

Introduction

The introduction previews Podman security topics and warns against using --privileged as a quick fix for denied container access.

Key terms: fork and exec, Linux security features, container image trust, signing images, --privileged mode, security separation

11.1 Daemon versus the fork/exec model

11.1.1 Access to the docker.sock

This section shows how access to Docker’s root-owned daemon can grant host root privileges and contrasts that risk with rootless Podman’s user-level access.

Key terms: root-owned daemon, docker group, /run/docker.sock, root shell, rootless Podman, user UID, file-based logging, audit logs

11.1.2 Auditing and logging

This section shows how Podman’s fork/exec model preserves the launching user’s identity in Linux audit records, while Docker’s daemon model obscures it.

Key terms: loginuid, /proc/self/loginuid, fork/exec model, Docker daemon, 4294967295, audit subsystem, audit.log, auditctl, auid, /etc/passwd

11.2 Podman secret handling

This section explains how Podman supplies secrets to containers without saving them in images created by committing those containers.

Key terms: secret, environment variables, commit, image, podman secret, --secret my_secret,type=env

11.3 Podman image trust

This section explains how Podman image trust policies control which image sources are accepted, rejected, or required to provide signed images.

Key terms: transport, registry host, registry scope, repository, default, policy.json, podman image trust, podman image trust show, accept, reject

11.3.1 Podman image signing

This section shows how to sign an image during a Podman push, publish its signature, and configure Podman to accept signed images while rejecting unsigned ones.

Key terms: GPG key pair, simple signing, podman push, sigstore-staging, sigstore, /etc/containers/registries.d/default.yaml, image trust, policy.json, publickey.gpg, signature

11.4 Podman image scanning

This section shows how Podman helps external tools scan an image safely by mounting its contents without running code from the image.

Key terms: image scanner, mounted content, host operating system, rootless mode, user namespace, podman image mount, podman unshare, ubi8, find

11.5 Security in depth

Introduces security in depth as layered protection and says Podman applies it by using Linux security mechanisms together.

Key terms: security in depth, Linux security mechanisms

11.5.1 Podman uses all security mechanisms simultaneously

Podman can layer multiple container defenses, and users should tailor those defenses to an application rather than disable them wholesale.

Key terms: read-only filesystems, namespaces, dropped capabilities, SELinux, seccomp, --privileged, security mechanisms, rootless containers, rootful containers, Linux capabilities

11.5.2 Where should you run your containers?

The section shows how to strengthen container security by separating workloads across VMs, machines, and networks.

Key terms: containers, VMs, separate machines, web frontend, database with credit card data, DMZ, private network

11.6 Summary

The summary ties container isolation and image control together as complementary ways to protect the host.

Concepts explained in this chapter

← Chapter 10: Security container isolation

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.