Skip to content

concourse/bin should supply required uid gid mapping flags to Garden 1.9.5 #1740

Closed

Description

@topherbullock

Paired with @Callisto13 on an issue in the Garden backlog around Concourse and Garden runC 1.9.5.

Here's what we found:

As part of #150710163, the flags for --garden-uid-map-start --garden-uid-map-length --garden-gid-map-start --garden-gid-map-length are now required on the GardenServer, but concourse/bin doesn't set defaults for, or require those flags to be passed.

We should consider having sane defaults in worker_linux.go (here's what Garden does in their ctl script), and optionally allow them to be set (which works currently).

Might want to also consider how this can be used to limit the ability for privileged containers at the Garden server level, and implications this has on running Concourse binaries in Docker / K8s

Activity

  1. added this to the v3.6.0 milestone on Oct 24, 2017
  2. vito commented on Oct 24, 2017

    @vito
    Contributor

    Ah that makes sense. Good find!

  3. Callisto13 commented on Oct 24, 2017

    @Callisto13

    Hey @vito - don't rush to do this just yet... we decided that this should have sensible defaults and that we shouldn't be breaking expected behaviour

  4. vito commented on Oct 24, 2017

    @vito
    Contributor

    @Callisto13 Ok, thanks! 👍

  5. Callisto13 commented on Oct 25, 2017

    @Callisto13

    @vito
    We have now pushed a fix in Garden to calculate defaults for these mapping ranges. This should appear in the next release so feel free to close this issue.
    If you want to go ahead and use 1.9.5, setting the values to the ones Garden uses in its ctl script will work.

  6. removed this from the v3.6.0 milestone on Oct 25, 2017
  7. jama22 commented on Oct 30, 2017

    @jama22

    Closing this issue since Garden now calculates defaults

  8. added a commit that references this issue on Apr 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions