question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[feature] Force check credentials before search

See original GitHub issue

#3906

I noticed that there are some conan package registry that return empty array with code 200 rather than return code 401 while searching packages without a valid credential. (at least including Artifactory and GitLab)

So I request to add an argument for conan search command to explicitly check credentials before search.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mLisMarcincommented, Sep 5, 2022

I just had same issue on conan install with expired credentials. It reported that no such package exists. Version 1.50

0reactions
PMExtracommented, Sep 6, 2022

@memsharded So I requested only add an argument to enforce that instead of making it default. (eg. conan search -r gitlab --ensure-credentials ‘private-package’)

Yes, but Conan 2.0 has already changed the default behavior of conan search to be multi-remote. It will return results from multiple remotes defined (it can specify a subset of remotes, even one, but the default is multi-remote). And that doesn’t remove the issue when doing a conan install that operates normally on multi-remote, already in 1.X

I see. I’ve missed this case. So can we add a property for remote to indicate the remote needs credentials or not? (eg. conan remote add gitlab https://gitlab.example.tld --with-credentials)

Or change it by call conan user: (eg. conan user -r gitlab --always-check-credentials username) and use conan user -r gitlab --clean to reset it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Login credentials are required to access publicly shared ...
Technical Article Details : Problem: Login credentials are required to access publicly shared layers or feature services.
Read more >
Is there a Windows command line utility to verify user ...
On a Windows platform, is there any command line utility that I can pass a username , password domain name to in order...
Read more >
Credentials Processes in Windows Authentication
Learn about how Windows authentication processes credentials.
Read more >
gitcredentials Documentation - Git
This manual describes the mechanisms Git uses to request these credentials, as well as some features to avoid inputting these credentials repeatedly.
Read more >
Validate a username and password against Active Directory?
The down-side to querying an AD server is that you have permission to query the AD server. Your credential can be valid, but...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found