Skip to content

Drop privileges in the managed buildkitd #151

Closed

Description

@aluzzardi

Right now, when no buildkit address is specified, dagger will create its own instance #149

The container is created using --privileged which is far from ideal. We could look into dropping --privileged and using more fine grained --security-opts instead, see:

https://github.com/moby/buildkit/blob/master/docs/rootless.md

Activity

  1. dubo-dubon-duponey commented on Mar 10, 2021

    @dubo-dubon-duponey
    Contributor

    FWIW: I tried a few months ago and hit a wall (random failures). I ended-up reverting to --privileged.

    I'll give this another try and share if I can make it work reliably.

  2. aluzzardi commented on Mar 10, 2021

    @aluzzardi
    ContributorAuthor

    Appreciate it!

  3. gerhard commented on Aug 25, 2022

    @gerhard
    Contributor

    We (+@slumbering) made the smallest possible change that starts addressing this in #2978

    Is that enough @dubo-dubon-duponey @aluzzardi?

  4. dubo-dubon-duponey commented on Aug 25, 2022

    @dubo-dubon-duponey
    Contributor

    hey @gerhard

    Maybe a problem with permission mapping between the buildkit container and the host?

    Haven't tried that in a while...
    I would try to make it work on Linux first, and without dagger - just buildctl - ignoring mac for now <- especially if you guys are going to build a standalone distribution w. lima / containerd.

  5. TomChv commented on Aug 10, 2023

    @TomChv
    Member

    @dubo-dubon-duponey Any news on this issue? Do we still have this issue with dagger v0.8?

  6. added a commit that references this issue on Sep 21, 2023
    748e4fb
  7. added a commit that references this issue on Oct 12, 2023
    e63200d
  8. added 5 commits that reference this issue on Nov 24, 2023
    883f2e8
    ea66183
    50063d8
    3c7b16f
    86e2b6f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions