Skip to content

Releases

Container v0.3.3

Choose a tag to compare

@github-actions github-actions released this 01 Dec 14:13
v0.3.3
3323dc5

Added

  • podman: the README records the cgroup delegation limit. Debian's
    user@.service declares Delegate=pids memory cpu, so the account's user
    manager sees cpu memory pids and a rootless unit cannot set --cpuset-cpus
    or an io limit; a site that needs them declares the host-scope Delegate=
    override. The gate fails when the record loses the default or the override.

Fixed

  • account: the two static-range proof plays take the other identifier from the
    host's first free one. On a host that runs the product, the site's container
    account holds 1500, so the holder check refused the gid before the range check
    and the gate turned red.
  • podman: the proof play keeps its user namespace drop-in inside its own
    directory. include_vars sets the role defaults as host facts, so the
    remove-if-undeclared plays ignored their play variable and tried to unlink the
    host's root-owned /etc/sysctl.d/62-podman-userns.conf.

Container v0.3.2

Choose a tag to compare

@github-actions github-actions released this 30 Nov 22:14
v0.3.2
6fbf662

Fixed

  • podman: the subordinate ID plan handed awk -f the role's own path, which
    exists on the controller and not on the target; a site that converges a host
    over SSH got an empty answer and The plan carries one known answer failed
    with nothing to read. The program is now carried to the target on stdin, and a
    failed invocation prints the command's status, stdout and stderr.

Added

  • podman: a desktop fixture (the human account and the agent hold the blocks
    at 100000 and 165536, the container account holds none) proves the plan names
    the third block, and the gate refuses a plan task that names a path of the
    controller.

Container v0.3.1

Choose a tag to compare

@github-actions github-actions released this 28 Nov 23:48
v0.3.1
e688bf2

Added

  • podman: podman_registry_blocks declares [[registry]] entries for the
    account's registries.conf: a location (required), insecure, blocked
    and mirrors. Until now the role wrote only the search list, so a host that
    declared a mirror or an insecure registry in /etc/containers lost it when
    the account's complete file replaced the host-wide one. The argument spec
    refuses a block without a location, and the gate renders the three shapes
    from the template.

Container v0.3.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 21:55
v0.3.0
12f408a

Added

  • podman: the subordinate ID ranges are planned before they are written, by
    roles/podman/files/subid-plan.awk. The plan refuses a range another account
    holds, a range shorter than podman_subuid_count, a range in one file only,
    two ranges in one file, and a host that delegates subid to an NSS provider;
    it adds the first free block at or after podman_subuid_start when the account
    has none, and it never overwrites. A candidate must also avoid every UID and
    GID that /etc/passwd and /etc/group declare, and the count is capped at
    1 048 576. A host whose accounts or subordinate ranges come from an NSS
    provider is refused, because the plan reads the files.
  • podman: podman_subuid_repair (false by default) is the one repair the role
    accepts: it removes this account's unusable ranges, then adds the block the
    plan names.
  • podman: podman_system_migrate runs podman system migrate as the owning
    account after a change, and the kernel's /proc/self/uid_map and gid_map are
    read back and asserted against the planned block.
  • podman: the host's base is asserted before anything is written (Debian 13
    read from /etc/debian_version, systemd, cgroup v2). The edition brands
    /etc/os-release, so ansible_distribution_version reads the edition's own
    1.0 and is not used.
  • podman: catatonit is installed. The Quadlet default RunInit=true needs it
    and Debian lists it as a Recommends of podman, so a host that installs no
    recommends started no container.
  • gate: the planner is proven against twenty fixture host cases, including a
    host UID inside the candidate block and a malformed line, and
    tests/playbooks/subid.yml runs the role's own decision tasks and its four
    refusals without root, in ten plays; tests/inventories/sandbox/ converges
    the collection on the test host with its configuration relocated under
    /var/tmp.
  • gate: every defect line carries at most ten lines of a failed command's output.
  • gate and CI: scripts check --deny-warnings, --module for the modules, and
    scripts run --no-warnings for the gate.
  • account: the collection creates the login account the rootless engine runs
    as, so a host needs no pre-existing human. The defaults are container with
    uid/gid 1500, the distribution's home for that name and /bin/bash; the name,
    UID, GID, home and shell are inventory values. The role refuses to rewrite an existing
    identity (an account or a group that already holds another UID or GID fails
    the run), reads the account back, and checks that the home belongs to it.
    playbooks/site.yml runs it first, when the engine or the declarations are
    enabled.
  • quadlet: a declared unit and the drop-ins the role writes for it are
    0600, not 0644: the text belongs to the account, and a credential left in
    it is readable by that account only.
  • quadlet: the boot contract reads the [Install] section itself: a
    WantedBy=/RequiredBy=/DefaultInstance= written in another section no
    longer satisfies it.
  • quadlet: a declaration carries dropins, a list of {name, content} files
    written into <name>.<type>.d/. The role refuses a name that does not end in
    .conf, a name the product owns, a duplicate and a drop-in on an absent unit,
    keeps the list it wrote in .ansible-managed.json, and removes a drop-in the
    site stops declaring (or withdraws with its unit). Quadlet merges each
    declared .conf into the generated unit without naming it there, so the
    sandbox asserts the drop-in's effect. The argument/sandbox keys stay refused
    in a drop-in too.
  • quadlet: PodmanArgs, GlobalArgs, Unmask, SeccompProfile and
    Privileged are refused in any declared unit, whatever their value, because
    they bypass the hardening drop-in rather than relax one setting. The
    published host-port floor is enforced. A PublishPort whose
    host port is below quadlet_unprivileged_port_start (the host's
    net.ipv4.ip_unprivileged_port_start when empty) fails the run, and template
    unit names (foo@.container) are accepted. A template that carries [Install]
    must also carry DefaultInstance=, or no instance is activated.
  • podman: podman_auto_update (false by default) enables the account's
    podman-auto-update.timer, without which a unit's AutoUpdate=registry is a
    dead setting. The engine read-back now refuses a vfs store, a cgroup other
    than v2 and a network backend other than netavark, instead of reading only the
    rootless flag.

Fixed

  • a subordinate range that another account also held was accepted in silence,
    while roles/podman/defaults/main.yml and SECURITY.md claimed a collision
    was a hard failure;
  • usermod was called with the same hard-coded 100000 block for every account,
    so two engines on one host collided;
  • nothing read back the mapping the kernel installed, so a file the engine
    ignored passed the run;
  • release.scs computed its program name in a helper, which raised
    SCRIPTS-LINT-0004; each call site now passes a literal run_request.

Changed

  • SECURITY.md states the mechanisms that actually isolate a container (no LSM
    confines a rootless container on Debian 13) and the risk of the socket the
    role enables.
  • podman: container_host_edition now accepts workstation as well as
    server. A workstation installs the same rootless engine and the same
    hardening for the dedicated account; a site that develops on it relaxes the
    defaults it needs (podman_read_only, quadlet_image_digest_required, ...)
    through the role's variables, so the edition stays a declared label and not a
    second profile.
  • The base image moves to debian:13-slim@sha256:8aa5a7bf… (Debian 13.8, the
    OpenSSL 3.5.7→3.5.9 security delta), pins apt to the base's own
    snapshot.debian.org date, purges the volatile apt/dpkg logs and archives the
    dpkg-query package set in the image. With --timestamp, two --no-cache
    builds of one commit produce the same digest (measured); images/base/REFRESHED
    dates the snapshot and the gate refuses a base older than 30 days.
  • quadlet: AddCapability is bounded by quadlet_permitted_capabilities
    (CAP_NET_BIND_SERVICE by default) and checked in a unit and its drop-ins:
    the hardening drop-in drops every capability, and only a named one can come
    back. CAP_SYS_ADMIN and the other administration capabilities fail the run.
  • podman: the README states what the enabled user socket grants (the
    account's engine rights) and that rootless Podman on Debian applies no
    AppArmor or SELinux layer (podman info: apparmorEnabled=false,
    selinuxEnabled=false); seccomp is the confinement.
  • podman: the Debian 13 / systemd / cgroup v2 guard sits inside the
    podman_enabled block: a disabled role now only removes its own drop-in, and
    the argument spec resolves before the account is read (podman_home has an
    empty default, like quadlet_home).
  • podman: the engine's configuration moved into the account's home
    (~/.config/containers/{containers,registries}.conf, policy.json), owned
    by the account and read before the host-wide files; for registries.conf and
    policy.json the user file replaces the host-wide one, so the account's
    registry list is complete. The role removes the host-wide
    99-container-podman.conf it wrote before and the 99-podman.conf of the
    retired edition roles, and never writes /etc/containers again.
  • podman: no_new_privileges is removed from containers.conf and the
    podman_no_new_privileges variable is gone: Podman 5.4.2 accepts the key and
    never applies it (measured: NoNewPrivs stays 0 with the key in either
    table and turns 1 with --security-opt no-new-privileges). The Quadlet
    hardening drop-in still sets NoNewPrivileges=true for the product's units.
  • podman: containers.conf states the product's choices: a read-only root
    (podman_read_only), the distribution's seccomp profile
    (podman_seccomp_profile), the caller's user namespace (podman_userns),
    the nofile ulimit (podman_default_ulimits), pull_policy, and the pasta
    rootless network command.
  • podman: registries.conf sets short-name-mode = "enforcing"
    (podman_short_name_mode), and the new policy.json accepts only the
    registries podman_registries declares.
  • quadlet: a declared Image= ending in .image must resolve at role run
    time to a declared type: image unit or to a <stem>.image file in the
    generator directory; an undeclared or path-shaped reference fails the run
    instead of writing a unit the generator refuses.
  • quadlet: a declared .container or .image must name its image by digest
    (@sha256: and 64 hex characters), or reference a .image unit by name
    (base.image, whose own Image= is checked), while
    quadlet_image_digest_required is on; image_digest: false is the per-unit
    opt-out. .kube and .build units are not parsed. The rule reads a unit's
    dropins too, and the port floor does as well: a value written beside the
    unit cannot bypass either check.
  • The supported ansible-core range is 2.20 to below 2.23: 2.19 reaches
    end of life on 2026-11-30, and the CI matrix no longer runs it.
  • The base image locks every setuid/setgid bit after it creates the account
    and locks root, so a bit introduced by the account setup cannot survive.
  • podman_user defaults to the account roles/account declares
    (account_name, container by default) instead of the undefined
    accounts_human.name, which left the engine with an empty account on any
    host that did not define that foreign variable.
  • The README no longer asks for an existing human account, and the sandbox
    inventory no longer asks the owner to create its account by hand.

Migration

  • From 0.2.0: nothing to do by hand on a host the role manages. The role
    moves the engine's configuration into the account's home and removes...
Read more

Container v0.2.0

Choose a tag to compare

@github-actions github-actions released this 21 Nov 21:26
v0.2.0
f7622e3

Added

  • podman: container_host_edition states the edition the host already
    carries. The collection owns no identity: the argument spec accepts server
    only and an unsupported value fails validation; applying the role without the
    declaration fails its first task, whether or not the engine is selected.
  • podman: the role removes the 99-podman.conf the retired server and
    workstation roles wrote under registries.conf.d and containers.conf.d,
    before writing its own 99-container-podman.conf, so exactly one file owns
    each configuration. podman_stale_config_files follows the two directories,
    and the removal restarts the user socket like any other engine change.
  • quadlet: quadlet_default_memory and quadlet_default_cpu_quota give every
    container unit a MemoryMax= and a CPUQuota= unless it declares its own.
    The role writes a per-unit drop-in only while the unit omits the key (a
    Quadlet drop-in wins over the unit file), and removes it as soon as the unit
    declares the key or the default is emptied.
  • The gate's one registries writer check: only roles/podman/defaults/main.yml
    may name a registries drop-in, and the retired name survives only as the
    removal target.

Changed

  • The base image keeps Debian's own /etc/os-release and no longer writes a
    PRETTY_NAME, a version of its own or /etc/container-edition: the
    collection is a capability and owns no identity, in an image or on a host.
  • The collection version is 0.2.0. The invariants a 0.3.0 would carry —
    images pinned by digest, storage.conf.d, the auto-update timer, a service
    account, no TCP socket — are not implemented yet, so this release does not
    claim them.

Fixed

  • podman: --check no longer fails on a host where the user-namespace
    drop-in is not applied yet. The read runs in check mode (it only reads) and
    the assert is skipped there, because check mode cannot apply the sysctl it
    asserts. Measured before: ok=8 changed=1 failed=1, "is , not 1".

Migration

  • From 0.1.0: declare container_host_edition: server in the host's
    variables. The engine role now refuses to run without it, whether or not
    podman_enabled is true, and server is the only accepted value.
  • A host that ran an edition's engine keeps no configuration of its own: the
    retired 99-podman.conf is removed on the first run, and the product's
    99-container-podman.conf replaces it.

Container v0.1.0

Choose a tag to compare

@github-actions github-actions released this 19 Nov 08:46
v0.1.0
eacc4e2

Added

  • The Ansible collection benmoussa.container and its 0.1.0 release.
  • The rootless Podman engine role: packages, registry search path, engine
    drop-in, user socket, linger and subordinate IDs. It never creates a
    container.
  • The Quadlet role: the site's unit files, a user-manager reload and a
    read-back of every generated unit. It ships no container definition.
  • The base image images/base/Containerfile: the Debian minimal base pinned by
    digest, TLS roots, tzdata, curl, procps, the Scripts interpreter (0.1.2,
    verified against its release SHA256SUMS), one non-root account, a locked
    root, no setuid bit and a branded /etc/os-release.
  • The engine's defaults in containers.conf: no_new_privileges on, the pids
    limit and the log size bounded, umask 0077 and the crun runtime — Debian
    leaves all of them permissive.
  • The Quadlet role writes the product's global hardening drop-in
    (NoNewPrivileges, all capabilities dropped, read-only rootfs, RunInit,
    pids and ulimit bounds, journald logs) and refuses a container unit that
    declares Network=host, User=0, NoNewPrivileges=false,
    ReadOnly=false or SecurityLabelDisable=true while it is on.
  • The example inventory with documentation values only (TEST-NET-1).
  • The repository gate, the CI workflow and the release workflow.

Security

  • The engine is rootless only; the rootful socket is not enabled.
  • No registry credential, secret or site definition is part of the product.
  • The configuration drop-ins are named 99-container-podman.conf, so the
    collection does not collide with a site's own Podman configuration.