Shapeshifter library should refuse unencrypted http connections (only allow https)
Opened this issue · 1 comments
eelcodenheijer commented
Description
The shapeshifter library will send a flex message to any endpoint (http
or https
), whereas the specification states that only encrypted communication should be allowed.
Fix
We should add a check before setting up a connection, that verifies whether
- the endpoint uses
https
; if the endpoint ishttp
then an exception should be thrown. - the endpoint URL either contains no port, or contains port
443
tomwetjens commented
Discussed in the TSC meeting: default should be block it, but opt-in http for local development for example.
Also port doesn't say anything. Just require the 'https' scheme should be sufficient.