Skip to main content

secret_reads

Function secret_reads 

Source
pub fn secret_reads(
    context: &str,
    unit_tables: &HashMap<String, UnitTable>,
    unit_consumes: &HashMap<String, Vec<String>>,
    unit_consumes_aliases: &HashMap<String, HashMap<String, String>>,
    unit_flattened: &HashMap<String, HashMap<String, String>>,
) -> SecretReads
Expand description

The reads half of what a Worker knows about its own bynk.Secrets use — declared_secrets’s counterpart, read from the AST rather than derived from actor bindings. The walk itself, its bynk.secrets.computed_name diagnostic, and the reads_secrets_of_bynk capability-resolution guard live in bynk_check::secrets (P5.5); the Worker-wide closure — handlers plus every provider the composition root builds, and the adapter-binding case no pass can see (#1976) — is bynk_check::secrets::worker_secret_reads. run_checks raises the warnings, via bynk_check::project_model::phase_secrets_computed_name, per file.