hanicz opened a new pull request, #1537:
URL: https://github.com/apache/knox/pull/1537

   [KNOX-3607](https://issues.apache.org/jira/browse/KNOX-3607) - harden 
PatchAcls
   
   ## What changes were proposed in this pull request?
   
   Hardens the `PathAclsAuthz` authorization provider:
   
   - Path rules are evaluated against both the request URL as received and its
     canonical form (decoded once, matrix parameters removed, dot-segments
     resolved). Requests whose path cannot be canonicalized are denied.
   - When several rules match a request, every matching rule must grant access.
     Rules are kept in declaration order, so evaluation is deterministic.
   - Documentation for the provider now covers rule selection, matching,
     precedence and the processing mode.
   
   ## How was this patch tested?
   
   - New unit tests for the canonical path and for rule evaluation in `AND` and
     `OR` mode, with rules in either order.
   - Existing `gateway-provider-security-authz-path-acls` tests pass.
   
   ## Integration Tests
   
   - New docker-compose integration tests (`test_pathacls_encoded_path.py`,
     `test_pathacls_rule_order.py`).
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to