[
https://issues.apache.org/jira/browse/BEAM-6472?focusedWorklogId=187383&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-187383
]
ASF GitHub Bot logged work on BEAM-6472:
----------------------------------------
Author: ASF GitHub Bot
Created on: 19/Jan/19 17:24
Start Date: 19/Jan/19 17:24
Worklog Time Spent: 10m
Work Description: mxm commented on pull request #7573: [BEAM-6472] Set
read permissions for the staged files
URL: https://github.com/apache/beam/pull/7573#discussion_r249251438
##########
File path: sdks/python/apache_beam/runners/portability/portable_stager.py
##########
@@ -71,7 +71,8 @@ def stage_artifact(self, local_path_to_artifact,
artifact_name):
def artifact_request_generator():
artifact_metadata = beam_artifact_api_pb2.ArtifactMetadata(
name=artifact_name,
- sha256=_get_file_hash(local_path_to_artifact))
+ sha256=_get_file_hash(local_path_to_artifact),
+ permissions=444)
Review comment:
This runs as root and that's why we have to set non-root permissions here?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 187383)
Time Spent: 10m
Remaining Estimate: 0h
> Artifact staging permissions are not set while staging python artifacts
> -----------------------------------------------------------------------
>
> Key: BEAM-6472
> URL: https://issues.apache.org/jira/browse/BEAM-6472
> Project: Beam
> Issue Type: Bug
> Components: sdk-py-harness
> Reporter: Ankur Goenka
> Assignee: Ankur Goenka
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> We need to pass the read permissions for the artifacts so that the artifacts
> can be read by the pip and installed.
> Inside docker this is not an issue as docker runs are root. However when
> using other types of environment which do not run as root, artifact access
> will not be possible without the right permissions.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)