liveBook · Manning

Security

As explained in Developer Experience on Kubernetes

Security is the protection of software, data, and execution environments against unauthorized access, misuse, or compromise.

Container security protects the host, image contents, and runtime process from compromise. Treat it as a design requirement rather than an afterthought when building images. section 3.2.1

Apply two practical safeguards:

  • Run the container entry point as a non-privileged user. Docker uses root by default, while Podman uses rootless containers by default; both support alternative modes. section 3.2.1
  • Keep passwords and keys out of container images. Removing credentials in a later layer does not erase them from the original layer; use dedicated Docker or Podman secret features instead. section 3.2.1

Least-privilege container execution

A Dockerfile that creates a non-privileged user and assigns it to the entry point reduces the impact of a compromised container. Supplying package credentials through a secret mechanism avoids preserving them in image layers. section 3.2.1

How Developer Experience on Kubernetes covers it

How deep it goes
Explains root exposure, layered secret leakage, least privilege, and dedicated secret mechanisms without descending into implementation internals.
Examples
Uses root-based containers, rootless modes, non-privileged entry points, and credentials retained in lower image layers.
What it assumes
Assumes familiarity with container images, Dockerfiles, and container runtimes while addressing developers getting started with containerization.
What you can do after
Operate/configure containers with non-privileged processes and supply credentials through dedicated secret features.
How it connects
Connects container images with Docker, Podman, Dockerfiles, rootless containers, least privilege, and secrets.

Also explained in

Compare how 36 books explain security →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Developer Experience on Kubernetes. The section links point to the parts of the book it draws on.