Expand description
Fail-closed input validation and public-material digest. Fail-closed preflight for referenced RADIUS inputs.
This module performs read-only Kubernetes lookups. In particular, call it BEFORE creating external Kanidm identities/tokens or modifying an existing Deployment. Validation errors must not include sensitive Secret values.
Structs§
- Prepared
Radius Inputs - Secret-bearing preflight result. Intentionally no Debug or Serialize. Supply the minted or existing READ-ONLY Kanidm bearer only after this preflight passes, and store the resulting TOML exclusively in a Secret.
Enums§
- Inputs
Error - Why inputs could not be prepared: an expected block the user must fix, or a transient API failure that keeps its source and drives backoff.
- Radius
Preflight Error
Functions§
- inputs_
digest - Digest of the public TLS material mounted into the pods: the EAP
certificate chain, the optional EAP CA bundle and the optional Kanidm CA
bundle, exactly as stored (no normalization, so any byte change rolls the
pods). Private keys are excluded on purpose: a key cannot change without
its certificate changing, and a digest of secret bytes does not belong in
a pod annotation. Secret metadata such as
resourceVersionnever enters. - prepare_
radius_ inputs - Validate every referenced input without changing either Kanidm or Kubernetes. A failed preflight must leave the running workload and token untouched.