Skip to main content

inputs_digest

Function inputs_digest 

Source
pub fn inputs_digest(
    eap_cert: &[u8],
    eap_ca: Option<&[u8]>,
    kanidm_ca: Option<&[u8]>,
) -> String
Expand description

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.

Each field is tagged and length-prefixed so moving bytes between inputs, or presence versus emptiness, changes the digest.