Skip to content

HDDS-15064. [STS] Artifacts for Ranger to Consider S3 Action when Authorizing#10316

Open
fmorg-git wants to merge 2 commits into
apache:ozone-2.1from
fmorg-git:HDDS-15064-2.1-release
Open

HDDS-15064. [STS] Artifacts for Ranger to Consider S3 Action when Authorizing#10316
fmorg-git wants to merge 2 commits into
apache:ozone-2.1from
fmorg-git:HDDS-15064-2.1-release

Conversation

@fmorg-git
Copy link
Copy Markdown
Contributor

@fmorg-git fmorg-git commented May 20, 2026

Please describe your PR in detail:

  • Currently, ACLs used by Ozone and Ranger are not granular enough. For example, read on volume, read on bucket, and write on key can be used by either s3:PutObjectTagging or s3:DeleteObjectTagging. Similarly, because s3:PutObject requires read on volume, read on bucket, and create and write on key, someone with s3:PutObject access can also call s3:PutObjectTagging (as an example). To prevent having more access than requested (or different access than requested), we need a means of restricting the ACL permissions further by S3 actions.
    To do this, we introduce an s3Action field in RequestContext so that if populated, the RangerOzoneAuthorizer would further restrict the permissions according to the S3 action.
    Additionally, the OzoneGrant would contain a Set representing the S3 actions that are allowed for an inline policy. If all actions are allowed, then the Set would be empty (or null).

  • This PR is to pull same commit from the master branch (HDDS-15064. [STS] Artifacts for Ranger to Consider S3 Action when Authorizing #10108) into Ozone 2.1 release branch so Ranger team can use it upstream in next Ozone release (2.1.1). It also required a prerequisite separate commit because of the refactoring done: HDDS-14104. Refactor RequestContext creation #9493

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-15064

How was this patch tested?

smoke tests in feature branch

Russole and others added 2 commits May 19, 2026 16:57
(cherry picked from commit 59ad0a1)

 Conflicts:
	hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/security/acl/RequestContext.java
@fmorg-git
Copy link
Copy Markdown
Contributor Author

hi @ChenSammi @jojochuang - this PR is ready for review. Thanks!

Copy link
Copy Markdown
Contributor

@smengcl smengcl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm pending CI

Note this is a backport of #10108 to the 2.1.x branch.

Copy link
Copy Markdown
Contributor

@smengcl smengcl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uh-oh, I realized this has two commits. Because upstream PR here only allow squash merging, you need to raise backport for HDDS-14104 first, then this one HDDS-15064 . Otherwise two commits would get squashed into one (when merged via Github UI).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants