COPY --chmod=444 produces wrong directory permissions in v1.23.0 #3166
Labels
area/permissions
kind/bug
Something isn't working
priority/p0
Highest priority. Break user flow. We are actively looking at delivering it.
regression/v1.22.0
regression
Actual behavior
COPY --chmod=444 test/ /file/
does not behave as expected. It drops execute permission from directories making it impossible for a non-root user to access the copied directory. This is handled correctly with docker build.Expected behavior
Permissions in the resultant image should match what
docker build
would produce:To Reproduce
Steps to reproduce the behavior:
Run a build:
docker run --rm -v $(pwd):/files gcr.io/kaniko-project/executor:v1.23.0 --context /files --dockerfile /files/dockerfile --no-push
docker run --rm -v $(pwd):/files gcr.io/kaniko-project/executor:v1.22.0 --context /files --dockerfile /files/dockerfile --no-push
docker build
->docker build -t test .
Additional Information
Dockerfile:
Using the provided dockerfile, you need a
test/
directory that contains files to copy. The specifics of the files themselves do not appear to be releveant.Triage Notes for the Maintainers
--cache
flagThe text was updated successfully, but these errors were encountered: