-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Implement entitlement security.unconfined #950
Comments
@AkihiroSuda Are there any blockers to starting work on this? I wouldn't mind contributing. |
@andrewrynhard please try |
Not in the latest release? |
is This feature is available with master branch. #570 |
I am not. Looks like I need to build from |
Also, No frontend support is added to it yet, So using dockerfile, this cannot be used at this moment. |
Are there examples of other ways I can use it? |
And is there a timeline on when I can use it with the docker frontend? |
@andrewrynhard you can see an example here https://gist.github.com/kunalkushwaha/775b063671a62f968ff111d266764d04 Also, you can refer to tests https://github.com/moby/buildkit/blob/master/client/client_test.go#L439
@tonistiigi @AkihiroSuda can be in better people to tell this, since it requires to add New Dockerfile command |
@kunalkushwaha I’d be happy to implement this for the docker frontend, but I’m afraid I’m not familiar with the code base yet. If you can give me a brief outline of the steps needed for the docker frontend, I could give it a shot. EDIT: I posted this just after your response. Thanks for the help! |
We first need a design proposal and to agree on the syntax for the Dockerfile. (out of tree you can experiment on your own of course). For examples, it probably makes sense to look up PRs that added things like mounts, secrets or ssh to dockerfile frontend. Eg. https://github.com/moby/buildkit/pull/655/files Also, I believe there isn't currently a way to enable the daemon level allow rules in Moby. It might be good to push that so it may still get into 19.03 (cc @kunalkushwaha ) |
@tonistiigi currently We can add Please share views. //cc @tiborvass |
If we don't add EntilementNetworkHost automatically we would break the old Maybe add |
I'm a little confused about the release notes: https://github.com/moby/buildkit/releases/tag/v0.5.0 It mentions that Here is the
If I understand the discussion above, it should not work with the docker's buildkit feature, but should in my case? |
@andrewrynhard This command uses the frontend as dockerfile, where support for entitlements are not yet supported in frontend. As mentioned earlier, this is only at LLB level right now. We need to propose/add support for RUN ents=security.insecure < command to execute in privileged container/mode> |
Friendly ping to see if this is planned for being done soon? |
This follows syntax suggested in moby#950. Example: RUN --ents=security.insecure cat /proc/self/status | grep CapEff moby#84 0.093 CapEff: 0000003fffffffff Signed-off-by: Andrey Smirnov <[email protected]>
I found bug that images are corrupted when using this feature: owners of some files by mistake specified with other user and application is not running I tried with the new feature of buildx:
|
Please open a new issue with ls -l ? |
I would like to run privileged commands in my builds. I saw the
--allow security.unconfined
flag, but seeing the following when using it:The text was updated successfully, but these errors were encountered: