whisthq / whist

Whist Browser
https://whist.com
Apache License 2.0
4 stars 3 forks source link

Communicate backend services securely #6685

Open MauAraujo opened 2 years ago

MauAraujo commented 2 years ago

Feature Description After #6631 was merged, it changed the way the frontend communicates with the backend. Now, the frontend sends both requests (assign request and json transport request) to the scaling service directly, so they can be secured with TLS. This is because the scaling service already has a valid SSL certificate provisioned by Heroku.

However, this left the communication between the scaling service and host service unprotected, because we don't have a way to use valid certificates on the host service without exposing them. Its crucial that the request is secure during the whole transaction.

The problem is that the host service can't be trusted since there is always the risk of a container escape incident where the certificate would get exposed. This would compromise the certificate that is distributed to the rest of instances and certificates are not easily rotated.

The solution would be to:

MauAraujo commented 2 years ago

More context: image