You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Siyao Meng (Jira)" <ji...@apache.org> on 2023/07/10 21:42:00 UTC

[jira] [Updated] (HDDS-8864) Remove redundant checkAcls() when caller is volume owner during key or prefix access

     [ https://issues.apache.org/jira/browse/HDDS-8864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Siyao Meng updated HDDS-8864:
-----------------------------
       Fix Version/s: 1.4.0
    Target Version/s:   (was: 1.4.0)
          Resolution: Fixed
              Status: Resolved  (was: Patch Available)

> Remove redundant checkAcls() when caller is volume owner during key or prefix access
> ------------------------------------------------------------------------------------
>
>                 Key: HDDS-8864
>                 URL: https://issues.apache.org/jira/browse/HDDS-8864
>             Project: Apache Ozone
>          Issue Type: Improvement
>            Reporter: Siyao Meng
>            Assignee: Siyao Meng
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.4.0
>
>
> It is unnecessary to call checkAcls() twice when caller is volume owner in {{OzoneAclUtils#checkAllAcls}}.
> Because the reason we had to split that into two calls in HDDS-5903 is because Ranger only has one OWNER tag, and that we want OWNER tag on bucket/key level policies to be filled in with the *bucket* owner during ACL check if the caller is NOT the volume owner.
> In the case where the caller is *volume* owner, this hierarchical check is already enforced by the authorizer (OzoneNativeAuthorizer or RangerOzoneAuthorizer) internally. Thus it is unnecessary.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org