Expand description
Workload governance actions, the default-deny rule set and permit rules (ADR-099 section 4, ADR-092 distribution).
Structs§
- Workload
Permit Rule - An explicit allowance that lifts the
workload.*default deny.
Constants§
- ACTION_
INSTALL - Install a package on a node.
- ACTION_
LOAD - Load an instance into a runtime.
- ACTION_
MIGRATE - Migrate an instance to another node.
- ACTION_
NODE_ BIND - Bind a fleet identity to a mesh node.
- ACTION_
PLACE - Place an instance on a node.
- ACTION_
REVOKE - Revoke a package, signer key or artifact hash.
- ACTION_
START - Start a loaded instance.
- ACTION_
STOP - Stop a running instance.
- ACTION_
UNLOAD - Unload an instance.
- CATALOG_
PRINCIPAL - The principal the daemon’s catalog verbs (
workload install/unload) decide as. The catalog verifies nothing, so those requests areunsigned; a permit that accepts unsigned packages has to be limited to this principal (validaterefuses one that names none), so it cannot also admit an unsigned placement. - DEFAULT_
DENY_ CATEGORY - SOP category marking rules that a matching permit rule lifts.
- DEFAULT_
DENY_ RULE_ ID - Rule id of the
workload.*default-deny rule. - EFFECT_
CEILING_ RULE_ ID - Rule id of the effect-magnitude ceiling that still applies after a permit.
- GOVERNED_
ACTIONS - Every action the workload gate governs. Any other
workload.*string is refused as unknown. - SUPERVISOR_
PRINCIPAL - The internal principal the user-daemon project supervisor acts as. Never
accepted from a request: the supervisor builds its own gate and host with
this id, so an operator-facing placement path (whose gate has no such
permit) cannot start a
projectworkload. - WORKLOAD_
ACTION_ PREFIX - Prefix shared by every workload governance action.
Functions§
- default_
rules - The workload rules shipped in the governance rule set.
- install_
default_ rules - Seed the workload rules into a cluster rule store (ADR-092).
- is_
governed_ action - Whether
actionis one ofGOVERNED_ACTIONS. - project_
supervisor_ permit - The permit that lets the supervisor, and only the supervisor, run the
projectkind on this node. It does not reach any other kind.