Giter Site home page Giter Site logo

Comments (2)

powersj avatar powersj commented on July 18, 2024

Unfortunately, if you are root, that id will get the groups associated with root, not telegraf. I think it needs to be changed to:

hmm doing so would break what was fixed in #724 where the user does the following:

--user root:$(stat -c '%g' /var/run/docker.sock)

from influxdata-docker.

wz2b avatar wz2b commented on July 18, 2024

Does it? Hmm. Setpriv doesn't just add to the effective groups?

It's weird to me to say --user anybody and the entrypoint.sh believes you, but if you say --user root it hijacks the effective user (to make it "telegraf"), but not necessarily the effective group. The thing is, the 'docker' group is usually empty, and 'root' isn't in it, so to fix it they're trying to force the group to match whatever the docker socket's group is.

I think that's the wrong thing to do:

  • You should run telegraf with least privilege, and for docker it doesn't need to be root
  • You might want to extend this to do other things that require a different group access. The way this guy did it, you can only have one.

I'm thinking the whole thing needs to be reimagined.

from influxdata-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.