Skip to main content

to_redacted_json

Function to_redacted_json 

Source
pub fn to_redacted_json(module: &InfinityModule) -> Result<String>
Expand description

Serialize a module as redacted JSON.

Properties that legacy consumers rely on and auditors check:

  • secrets (and strings equal to a secret literal) become SECRET_MARKER;
  • blobs project their identity only (hash, size, media type, taint);
  • quantities project {"value": n, "unit": "<name>"};
  • annotations and provenance project as data, never as executable text.