ACL
ACL is supported through the standard acl_rows header.
Configuration
In order to let the profile inject ACL information you're required to insert a custom stage using the #aclRows# operator with boolean value true.
Note:
- if the profile uses the
#aclRows#operator but theacl_rowsheader is not provided then no$matchstage is inserted.
Sample configuration:
[
{ ...some pipeline stages },
{
"#aclRows#": true
},
{ ...some pipeline stages }
]
will lead to the following profile, assuming acl_rows header has the value: {$and: [{prop: "A"}, {prop2: "B"}]}:
[
{ ...some pipeline stages },
{
"$match": {
{
$and: [
{ prop: "A" },
{ prop2: "B" }
]
}
}
},
{ ...some pipeline stages }
]