-
Notifications
You must be signed in to change notification settings - Fork 83
Description
In #705 I attempted to invert the feature gated logic and use a new _pk-https flag to completely replace the _danger-local-https however after some review we realized that I approached the problem there incorrectly but also that this flag is possibly outdated and overstating the danger present!
The current behavior is not as dangerous as stated because there are only 2 code-paths.
- An invalid cert goes through https and won't work
- the cert is passed in through a test where it is still validated on locally
For the most part the logic would remain the same behind this _manual-tls flag in places like the directory and payjoin/src crate as this change mostly affects how the cli accepts certs and the code in those other places already works as it should, the flag is just a bit misleading for those code paths.
The one thing to note is that we still want to ensure that any sort of local cert validation is only done explicitly and not as a default anywhere.
This issue should supercede #451
If anyone has an idea of where it no longer became "dangerous" that would be nice for some history, I looked through the git history but could not immediately pinpoint the commit where the logic was completely skipping validation as was stated in that old issue
the _danger-local-https feature allows skipping certificate validation for testing purposes.