Skip to main content

parse_jsonld_acl

Function parse_jsonld_acl 

Source
pub fn parse_jsonld_acl(body: &[u8]) -> Result<AclDocument, PodError>
Expand description

Parse a JSON-LD ACL body with byte and depth bounds enforced.

The resolver in StorageAclResolver routes through this helper so fuzzed or malicious ACLs are rejected before serde_json is invoked. To supply explicit limits, use parse_jsonld_acl_with_limits.