Git Product home page Git Product logo

Comments (3)

memsharded avatar memsharded commented on June 19, 2024 1

okay I embed the credentials into the git url and this helps me as of now. Many Thanks for your answer.

yes, sure, that can work. If you are interested in other alternatives, the conan config install has a --args "extra-args" argument that will also forward those arguments to the git clone. But the problem is intrinsically the same, it is a security issue, because the credentials can easily get exposed in CI logs, so this is something to try to avoid.

I am closing the ticket as responded, don't hesitate to re-open or create a new one for further questions, thanks for the feedback!

from conan.

memsharded avatar memsharded commented on June 19, 2024

Hi @maitrey

In general, the recommendation for git credentials would be the same as for regular git clone operations inside Conan recipes: Do not use Conan for injecting those dependencies. Git has modern auth mechanisms, like ssh-keys, GIT_ASKPASS, etc, that allows for more secure authentication and credentials manager than explicitly passing credentials in a Conan command like conan config install that will expose those credentials in the CI pipeline logs.

Also, I'd recommend having a look to the new conan config install-pkg feature, that stores configuration in Conan packages, using the same auth as any other Conan package (and simplifying different tasks as updates)

from conan.

maitrey avatar maitrey commented on June 19, 2024

okay I embed the credentials into the git url and this helps me as of now. Many Thanks for your answer.

from conan.

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.