Skip to main content

materialise_mtls_for_dev

Function materialise_mtls_for_dev 

Source
pub fn materialise_mtls_for_dev(
    project_root: &Path,
    worker: &str,
    config: &Path,
    environment: &str,
) -> Result<bool, String>
Expand description

#3513 A: bind a served Worker’s [[mtls_certificates]] by the ids the last deploy of environment recorded, for bynk dev. An mTLS binding has no local simulation, so the development copy runs it on Cloudflare and needs the certificate’s real id, which only a deploy has resolved. Every binding with a recorded link is bound; the message names each that has none (Err), for the caller to report and carry on: a call through it then fails, naming it. Ok(false) when the Worker declares no certificate.