[
https://issues.apache.org/jira/browse/HDDS-17951?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated HDDS-17951:
----------------------------------
Labels: pull-request-available (was: )
> Make the file permission reported by ofs and o3fs configurable
> --------------------------------------------------------------
>
> Key: HDDS-17951
> URL: https://issues.apache.org/jira/browse/HDDS-17951
> Project: Apache Ozone
> Issue Type: Improvement
> Reporter: Aryan Gupta
> Assignee: Aryan Gupta
> Priority: Major
> Labels: pull-request-available
>
> h3. Problem
> ofs and o3fs always report files as 666 (readable by everyone), even when
> ACLs allow only the owner to read them.
> Some applications trust this value. For example, Spark and MapReduce on YARN
> check whether a job's staging files are readable by everyone. If they are,
> the files are treated as public, and the NodeManager downloads them as its
> own user instead of the job's user. With ACLs enabled, the NodeManager user
> has no access to the job owner's files, so the download fails and the job
> fails before it starts:
> {code}
> PERMISSION_DENIED ... User yarn doesn't have READ permission to access key
> Volume:user Bucket:alice Key:.sparkStaging/application_<id>/__spark_conf__.zip
> {code}
> Giving the NodeManager user read access to all users' files works around
> this, but it exposes private job files through the NodeManager's shared
> public cache.
> h3. Proposed change
> Add a client setting, ozone.fs.file.permission.reported (default 666, so
> nothing changes unless it is set). With ACLs enabled, setting it to 600 makes
> files appear owner-only, so YARN downloads them as the job's user and the job
> works. Directories are still reported as 777.
> This only changes the reported value. Access is still controlled by ACLs.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]