Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

consider setting umask for build and/or runtime #491

Open
nitzmahone opened this issue Apr 25, 2023 · 1 comment
Open

consider setting umask for build and/or runtime #491

nitzmahone opened this issue Apr 25, 2023 · 1 comment

Comments

@nitzmahone
Copy link
Member

nitzmahone commented Apr 25, 2023

Default umask doesn't allow root group write permissions- to be most friendly with ephemeral use cases, it probably should...

There's no built-in way I'm aware of to have a umask setting persist through a build in Containerfile-style builds (it can be done in buildah imperative builds, but that's a much larger conversation), and rewriting all the tasks to inject a umask into the process chain for every build step that might need it is ... prohibitve. It could be done in the default builder entrypoint script for runtime needs, which may solve a small class of problems, but ensuring that default file-permissions are set properly during build-time (+rw on files and +rwx on dirs for both owner and group) is the much more important need to solve.

@github-actions github-actions bot added the needs_triage New item that needs to be triaged label Apr 25, 2023
@sivel sivel removed the needs_triage New item that needs to be triaged label Jun 1, 2023
@Alfa21tpp
Copy link

Hello @nitzmahone , I found a glitch I'm not sure if it's related to umask but in V3.0.0 the script "entrypoint" is rwx--x--x

When I run a custom EE built with entrypoint and dumb-init (the default options) I get a permission denied error.

As a workaround I found this solution: in execution-environment.yml as last thing of the section "append_final:" put a line like " - RUN chmod g+rx /opt/builder/bin/entrypoint"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants