[PATCH v2 1/3] ipe: add the .ipe policy keyring
Manuel Huber
manuelh at nvidia.com
Thu Dec 3 21:12:46 UTC 2026
On Wed, Nov 25, 2026 at 11:19:47AM -0800, Fan Wu wrote:
> [...] we need to understand the concrete threat
> model and why the existing IPE keyrings cannot work for that setup.
I was iterating forth and back about a dozen times since you sent this message, trying to strike a balance between brevity and depth to address your questions, keeping in mind the audience is possibly not familiar with the Kata and Confidential Containers open-source projects. As the prior explanation was part of a commit message, I tried to rephrase that part you commented on, which resulted in a lengthier set of paragraphs. For these, we should reconsider their placement if we manage to find overall alignment on this subject. Here's what I got:
Add a dedicated .ipe keyring for IPE policy signature verification.
With this, userspace can provision its own keys into the keyring,
then restrict it and activate it for IPE policy signature verification.
Gate creation of the keyring behind a new by-default disabled
CONFIG_SECURITY_IPE_KEYRING Kconfig option. When created, the keyring
is empty and writable. The keyring is used as a fallback after the
existing policy trust sources only when it is created, non-empty, and
restricted with restrict_link_reject.
This enables scenarios in which a trusted userspace component establishes
an IPE policy-signing authority at runtime, independently of kernel-build
or firmware certificate provisioning. That component can generate an
ephemeral key pair, enroll its public certificate, restrict the keyring,
and subsequently sign policies and policy updates.
Kata Containers is a candidate for this provisioning model [1]. It runs
Kubernetes pods in ephemeral VMs using a stack available in several
variants. These variants may use different VMMs, boot paths, guest
environments with or without systemd, container image-delivery mechanisms,
and runtime security configurations. These combinations support both
ordinary pod sandboxing and confidential computing deployments [2].
The ordinary Kata trust model protects the host from untrusted guests [3];
the confidential trust model additionally protects guest workloads from an
untrusted host [4]. Ordinary Kata sandboxing trusts the host to supply the
intended kernel, command line, and rootfs; guest UEFI Secure Boot is not a
prerequisite. Confidential Kata configurations additionally establish trust
in the guest boot assets through platform-specific measurements and remote
attestation against approved reference values. Measured boot and
attestation are distinct from UEFI Secure Boot and do not imply that
firmware certificate enrollment is available.
An overall goal for the IPE integration is to reuse provisioning mechanisms
across Kata's variants, including a common approach to installing IPE
policy-signing certificates and loading policies. Some Kata variants
deliberately boot the kernel without UEFI, keeping the boot path minimal
and avoiding additional firmware packaging and variable-store management.
Requiring firmware certificate enrollment solely for IPE would add a
dependency these variants do not otherwise require.
The Kata variants motivating IPE integration use the EROFS snapshotter
without host-guest filesystem sharing (virtio-fs). With dm-verity enabled,
container image layers are delivered as dm-verity-protected block
devices [5], alongside a dm-verity-protected guest rootfs and, where
applicable, other dm-verity-protected disks. Integrating IPE would
strengthen runtime protection by allowing the guest kernel to restrict
workload execution to files backed by approved dm-verity-protected content.
The trusted kata-agent [6], running from that rootfs, would derive and sign
IPE policies from approved root hashes or layer-signing authorities, then
activate them before starting the corresponding workloads. These inputs
depend on the deployed workloads and their approved signers, rather than
being fixed when the reusable guest kernel and rootfs are built.
An additional confidential Kata variant under development uses the same
EROFS and no-filesystem-sharing model, and requires authorization of
host-provided layer metadata. It would use the existing init-data mechanism
to convey approved dm-verity root hashes or certificates identifying
trusted signers of dm-verity root hashes. These constraints would be
encoded in an agent security policy generated with genpolicy [7], or
supplied as additional init-data configuration. Init-data is bound to
attestation evidence [8], allowing Trustee [9] to evaluate the guest
measurements and configuration against workload-owner-approved reference
values and policies [10]. The guest would reject hashes outside the
approved set or require signatures verifiable under an approved signing
authority.
The IPE policy text may still be prepared outside the guest and validated
by the agent against the authorized configuration before signing. An
already signed IPE policy could also travel through init-data, but its
delivery does not itself establish the certificate needed for kernel
verification.
The .ipe keyring lets the kata-agent establish the kernel trust anchor
for its policy signatures. Builtin certificates require kernel-build-time
provisioning, while secondary-keyring enrollment requires an existing
trusted signing authority. Platform certificates can instead be
provisioned at boot through suitable firmware. For confidential guests,
an untrusted host must not be able to establish the guest's policy-signing
authority on its own, since this would allow it to authorize policies of
its choosing. Provisioning a per-VM certificate through firmware also
requires accounting for that certificate in the attestation model.
Embedding it in measured firmware changes the expected measurements,
while other delivery paths require an authenticated binding. Generating
the signing key inside the guest keeps the private key under the control
of trusted guest software and avoids customizing the measured boot
artifacts for each policy-signing identity.
To conclude, guest-side enrollment and signing provide the simplest
common approach for the intended Kata configurations. The .ipe keyring
lets the trusted kata-agent establish the policy-signing authority
directly, without additional firmware provisioning or host-side signing
infrastructure, while keeping the ephemeral private signing key inside
the guest.
[1] https://github.com/kata-containers/kata-containers/blob/main/docs/design/architecture/kubernetes.md
[2] https://github.com/confidential-containers/confidential-containers/blob/main/README.md
[3] https://github.com/kata-containers/kata-containers/blob/main/docs/threat-model/threat-model.md#kata-security-objective
[4] https://confidentialcontainers.org/docs/architecture/trust-model/trust-model/
[5] https://github.com/kata-containers/kata-containers/blob/main/docs/how-to/how-to-use-erofs-snapshotter-with-kata.md
[6] https://github.com/kata-containers/kata-containers/blob/main/src/agent/README.md#overview
[7] https://github.com/kata-containers/kata-containers/blob/main/src/tools/genpolicy/README.md
[8] https://confidentialcontainers.org/docs/features/initdata/#integrity-and-attestation
[9] https://github.com/confidential-containers/trustee
[10] https://confidentialcontainers.org/docs/attestation/policies/
More information about the Linux-security-module-archive
mailing list