[
https://issues.apache.org/jira/browse/KNOX-3607?focusedWorklogId=1056594&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1056594
]
ASF GitHub Bot logged work on KNOX-3607:
----------------------------------------
Author: ASF GitHub Bot
Created on: 23/Nov/26 08:55
Start Date: 23/Nov/26 08:55
Worklog Time Spent: 10m
Work Description: 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`).
Issue Time Tracking
-------------------
Worklog Id: (was: 1056594)
Remaining Estimate: 0h
Time Spent: 10m
> Harden PathAcls
> ---------------
>
> Key: KNOX-3607
> URL: https://issues.apache.org/jira/browse/KNOX-3607
> Project: Apache Knox
> Issue Type: Task
> Components: Server
> Affects Versions: 3.0.0
> Reporter: Tamás Hanicz
> Assignee: Tamás Hanicz
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)