Comments (3)
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.
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.
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)
- [question] Motivation behind conan v2 cache design HOT 1
- [question] CppInfo object when using components
- [question] How to compile C++ program for older version of MacOS? HOT 4
- [Alexa Auto Error 2] Command '['conan', 'config', 'init']' returned non-zero exit status 2 HOT 2
- [question] How to make CUDA version affect package_id HOT 5
- [bug] detect_api.detect_clang_compiler(compiler_exe="clang") returns an incorrect version HOT 3
- [question] Set test_package_folder based on version in recipe HOT 3
- [bug] Spurious leading spaces in generated conanbuildenv shell scripts HOT 1
- cmake find_package failed when use conanfile.py HOT 1
- [question] Support for avoiding the upload of new recipe revisions in conan upload? HOT 6
- [question] Building libX11 with conan HOT 1
- [question] How to explicitly pass a build directory to `CMake.build()`? HOT 12
- [question] Header only package - cannot access headers HOT 3
- Autotools packages are ignoring host profile and building for the build profile HOT 7
- package_info cpp_info components HOT 4
- [question] How to access `self.options` of a parent library package from its test package? HOT 2
- [bug] MSVC build issue not reproduceable on linux HOT 5
- [question] What is the replacement to the `CMake.definitions` list in Conan 2? HOT 1
- [question] Conan with CMake failing only in CI pipeline but not on local machine.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from conan.