Policy defaults and capability system
Implementation, history and tests of the sections on the reference page Policy defaults and capability system. Text in square brackets is added here to say what a moved sentence refers to.
Policy defaults & enforcement
- History:
- go-kure/launcher#752 (a trait’s sub-application runs its
ApplyPolicyafter the trait’sApply, held to theTraitHandlerrule). - go-kure/launcher#786 (
ExplicitSecretPolicyandAllowExplicitSecrets() bool). - go-kure/launcher#790 (the
secretkind component, one of the places the explicit-secret check reaches). - go-kure/launcher#794 (a core Secret that the
passthroughormanifestscomponent carries, another of them). - go-kure/launcher#922 (
ObjectKindPolicy). - go-kure/launcher#1644 (
ImageReferencePolicyandSourceReferencePolicy: the level rides on the component, which the Transformer sets, so no handler method can bypass it; a config’sImageReferencesis read a second time at the policy’s level).
- go-kure/launcher#752 (a trait’s sub-application runs its
Refusal classes
- History:
- go-kure/launcher#849 (the
Classof aViolationError, so that a consumer does not match error text). - go-kure/launcher#1580 (
RefusalResourceDefaultLimit: the refusal of an authored request above the policy’s default limit, added by go-kure/launcher#1582, had no class).
- go-kure/launcher#849 (the
Capability system
- Implementation:
EvaluateProfileand this method resolve the validators through the same unexported function, so they cannot disagree. [“this method” isTransformer.CapabilityValidated; “the validators” are the trait handler, trait lowering rule orCapabilityDefinitionschema that the reference names before it.]
Rendering merge: authored values and nulls
- History:
- go-kure/launcher#742 (an authored
nullis absence in the merge of a rendering). - go-kure/launcher#750 (where both the authored value and the rendering hold an object, the merge recurses).
- go-kure/launcher#765 (
ValidateAuthoredPropertiesWithCapabilitieschecks nestedRequiredon the merged properties). - go-kure/launcher#751 (each value a
ComponentCapabilityDefaultsfill supplies is validated against the component’s ownPropertySchema). - go-kure/launcher#772 (a fill is refused when no trait handler, lowering rule or
CapabilityDefinitionvalidates the rendering and the component has no schema). - go-kure/launcher#756 (both merges copy the rendering value and keep its Go type).
- go-kure/launcher#742 (an authored