prototool icon indicating copy to clipboard operation
prototool copied to clipboard

WKT proto files are not readable by non-root users in the docker image

Open william-plano-oxb opened this issue 5 years ago • 4 comments

Hi,

When running uber/prototool@sha256:b33d097587c4a616629c90ddec351d077272a7b7464edb59e92ffb541c462de1 (currently latest) as a non-root user I am unable to access the WKT proto files in /usr/include, getting an error along the lines of:

2019-10-02T08:46:59.958Z	WARN	protoc returned a line we do not understand, please file this as an issue at https://github.com/uber/prototool/issues/new	{"protocLine": "google/protobuf/empty.proto: Read access is denied for file: /usr/include/google/protobuf/empty.proto"}

looking in the image, the files seem to only be readable by root:

/work # ls -lrt /usr/include/google/protobuf/
total 104
-rw-r-----    1 root     root          3745 Sep 10 02:27 wrappers.proto
...

Could these be set to chmod 0755?

william-plano-oxb avatar Oct 02 '19 08:10 william-plano-oxb

What OS are you running on? Also how did you install prototool?

smaye81 avatar Oct 16 '19 23:10 smaye81

What OS are you running on? Also how did you install prototool?

Hi, I'm running the docker image on a MacOS 10.14 host

william-plano-oxb avatar Oct 17 '19 08:10 william-plano-oxb

What are you actually trying to accomplish by accessing the WKT files?

smaye81 avatar Oct 17 '19 13:10 smaye81

I'm trying to lint my interfaces which use some of the WKTs. The command I'm running inside the container is prototool lint /apis where /apis is the location of my proto apis that is bind mounted into the container.

william-plano-oxb avatar Oct 17 '19 14:10 william-plano-oxb