Giter Site home page Giter Site logo

Comments (8)

gaocegege avatar gaocegege commented on June 3, 2024

SGTM, it should work. But I am not sure if it is safe to read the docker auth config.

from ormb.

mishraprafful avatar mishraprafful commented on June 3, 2024

I might be short-sighted here, but could you point me to why do you think it might not be safe.

The use-case is that I have containers that are authenticated to push and pull to my docker registry using docker tokens and config. I wish to authenticate for ORMB as well using the same, rather than having to use a USERNAME and PASSWORD using a robot account.
Let me know your thoughts.

from ormb.

gaocegege avatar gaocegege commented on June 3, 2024

Docker config may have more than one user/pwd. If you are an administrator and you logged in many registries locally, I am not sure if you want to share the information with ormb client. But we can add a command or argument to support such case. I think.

Maybe a command ormb auth-from-docker or something else.

from ormb.

mishraprafful avatar mishraprafful commented on June 3, 2024

Thanks, I understand the concern now. Do you think it is possible for me to contribute to this, but I would need some help to understand a few things.

from ormb.

gaocegege avatar gaocegege commented on June 3, 2024

Thanks!

Your contribution is welcome!
🎉 👍

from ormb.

gaocegege avatar gaocegege commented on June 3, 2024

As you know, we are using path.Join(client.rootPath, "config.json")

credentialsFile := path.Join(client.rootPath, credentialsFileBasename)
to store the credentials. The file config.json is similar to docker config.json. What we should do is to copy the credentials from docker config.json to ormb config.json. Maybe we can just get all credentials and call ormbclient.Login for every one. This func call writes the info to the config.json.

from ormb.

mishraprafful avatar mishraprafful commented on June 3, 2024

Thanks for pointing it out, I think I can start from here soon. Will ping back if I have any more questions 🙂

from ormb.

gaocegege avatar gaocegege commented on June 3, 2024

Sure, thanks.

from ormb.

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.