Skip to main content

Module inputs

Module inputs 

Source
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§

PreparedRadiusInputs
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§

InputsError
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.
RadiusPreflightError

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 resourceVersion never 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.