Git Product home page Git Product logo

Comments (4)

DomiStyle avatar DomiStyle commented on May 28, 2024

Good idea. I'm using Kubernetes so secrets are still exposed via environment variables but I will take a look once I got some spare time.

In the meantime you can hide them in a separate .env file instead of your docker-compose and only allow root to access the Docker Daemon and the .env file.

from docker-idrac6.

DomiStyle avatar DomiStyle commented on May 28, 2024

@brownts I implemented support for Docker secrets for idrac_host, idrac_user, idrac_password and idrac_port.

You can check it out in the docker-secrets branch, just pull image domistyle/idrac6:docker-secrets from Docker Hub. An example docker-compose is available here.

Maybe somebody can give it a try, I have no iDRAC instances running atm.

from docker-idrac6.

brownts avatar brownts commented on May 28, 2024

@DomiStyle I tested this out and it works great! I hadn't used Docker swarm before and it's required in order to use secrets, so that was a little bit of a stumbling block. The changes you've made to the docker work as expected (although I only used secrets for the "user" and "password", while using the environment variable for the "host" and just defaulting the "port"). I checked this out on a Dell R210ii, R510 and R610...all worked fine. I also used a manually created secret (via "docker secret create ...") as I didn't want them to be stored in a file, thus the reason for the "external" attribute in my configuration below.

I had to adjust my configuration to use the long syntax for the port expose portion of the configuration as it seems by default the ports are not exposed to the host machine when running in a swarm unless you use "host mode" which as far as I can tell is only available in the long syntax, and the long syntax is only available starting with version 3.2.

This is the configuration I tested this with: idrac6_config.txt

Thanks for adding this capability!

from docker-idrac6.

DomiStyle avatar DomiStyle commented on May 28, 2024

@brownts Thanks for testing! Pulled it into master, should be on Docker Hub in a few minutes.

from docker-idrac6.

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.