This repository was archived by the owner on Apr 14, 2022. It is now read-only.
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
Disabling cert verification: can we improve security without punishing users? #142
Open
Description
@sethmlarson thinks that the classic verify=False
makes it a bit too easy to disable cert checking, so it encourages folks to do it without fully understanding the consequences. Of course we don't want to make it punitively difficult either. Often the folks who have to disable cert checking hate that as much as we do, and are just stuck in an impossible situation. But some ideas for things we could potentially do:
- Make the kwarg more verbose, so it's more obvious what it does and that enabling it is insecure, e.g.
disable_secure_certificate_validation=True
- Issue a warning whenever it's used... folks who want to disable the warning could still do so, but it makes the issue visible withotu actually stopping anyone from getting their work done
- Make it very easy to trust a specific certificate, to make it easy to do TOFU-style trust for self-signed certificates. Ideally this should be even easier than disabling cert validation entirely.
Metadata
Metadata
Assignees
Labels
No labels