Skip to main content

config_secret_name

Function config_secret_name 

Source
pub fn config_secret_name(
    cr_name: &str,
    radius_toml: &str,
) -> Result<String, RadiusWorkloadError>
Expand description

Name of the immutable config Secret: <cr>-<first 10 hex of sha256(toml)>.

Content addressing makes a re-render with identical content idempotent and any change a new object, so pods mounting the old Secret are never mutated (same practice as kustomize secretGenerator). The hash is over the whole TOML, which embeds the bearer token and NAS secrets; 40 bits of a SHA-256 over a high-entropy token reveal nothing usable.