Skip to main content

Module principal

Module principal 

Source
Expand description

principal — service-principal embodiment.

Binds a running container/process on the box (plain OS-level facts — container id, uid, optional cgroup/mount-namespace handles) to an already-defined identity_kit::ServicePrincipal.

Hard constraint: identity-kit owns the grant data model; substrate-kit only embodies it. This module must never construct a Capabilities bundle or a principal definition of its own — embody only takes an already-built ServicePrincipal and pairs it with the OS facts of a running container. See identity_kit::authz::ServicePrincipal for the type this resolves to, verbatim.

This slice is the descriptor + binding only — no live dockerd call. Resolving a real ContainerRef from a running container is lifecycle’s job, in a later slice.

Structs§

ContainerRef
The OS-level facts of a running container/process on the box.
Embodiment
A running container/process bound to the ServicePrincipal identity-kit defined for it.

Functions§

embody
Bind a running container/process to an already-defined ServicePrincipal.