-
Notifications
You must be signed in to change notification settings - Fork 234
Closed
Description
Hi, in the following PR #3007 was introduced support of hosted repositories, but as a result, dart
client throws an exception when you're trying to add a token for repository with HTTP protocol:
url must be https://, insecure repositories cannot use authentication.
Reference:
pub/lib/src/command/token_add.dart
Line 47 in efd24e6
if (!hostedUrl.isScheme('HTTPS')) { |
We're working on support of Dart packages hosting as part of our product and would like to run integration tests by using the current dart
client against local service (HTTP) in CI environment. Currently, it's impossible to opt-out from that security verification check.
What we could do with that:
- Introduce the ability to disable security check as it is done in other tools, e.g.
skopeo --tls-verify=false
. - Fork the client and make our own builds without HTTPS enforcement.
The first option is preferred for us, but what is the Dart team opinion about that?
leoshusar, satamas and KN4CK3R
Metadata
Metadata
Assignees
Labels
No labels