Skip to main content

signed_config_env

Function signed_config_env 

Source
pub fn signed_config_env(
    body: &ReleaseBody,
    workload: &str,
    config: &ConfigBody,
    deployer_values: &HashMap<String, Value>,
) -> Result<BTreeMap<String, String>>
Expand description

The env a signed config sets on workload: the values of the release’s developer inputs, resolved through the signed stack’s env mappings (with each input’s default), then the config’s own env, which wins. A controller and the verifier that checks it, the machine agent and the Kubernetes operator all build the configured env with this, so an input signed by set-inputs reaches the worker the same way it does on an unprotected install. Deployer inputs and secret mappings are not here: they never travel in a signed config. deployer_values holds the install’s own values of gating_deployer_inputs: a developer input that is conditional on a deployer input applies as the customer set that input. A verifier reads them from the install’s store; a controller uses the deployment’s input values. A value that differs between the two only makes the verifier refuse the write.