epi-project / brane

Programmable Orchestration of Applications and Networking
Apache License 2.0
9 stars 7 forks source link

Add option to define hostnames in containers #20

Closed Lut99 closed 1 year ago

Lut99 commented 1 year ago

With the bug in reqwest that makes it impossible to do client authentication when directly connecting to an IP, the hypothesis is that we can work around it by adding custom hostnames for every domain in the container's /etc/hosts file. Bit impractical, but a suitable workaround for now.

Lut99 commented 1 year ago

We tried fixing using the new Client::tls_sni() function, but no dice since rustls fundamentally does not support IP addresses :/

However, this solution works.