Is it secure to allow unencrypted connections to a proxy server but encrypt all connections to the backend servers?
Essentially, reversing this pattern: https://assets.digitalocean.com/articles/nginx_ssl_termination_load_balancing/nginx_ssl.png
Information Security Stack Exchange is a question and answer site for information security professionals. It only takes a minute to sign up.
Sign up to join this communityIs it secure to allow unencrypted connections to a proxy server but encrypt all connections to the backend servers?
Essentially, reversing this pattern: https://assets.digitalocean.com/articles/nginx_ssl_termination_load_balancing/nginx_ssl.png
It depends on what you mean by 'secure'.
It would mean that the traffic to the proxy is not encrypted and thus the confidentiality of said traffic is not garantueed, nor is any integrity. Someone could be sitting as a man in the middle (MitM) and change requests.
Usually it is a good idea to make connections to proxies encrypted if you care about the confidentiality and integrity of the data being fed to your backend servers. If, for whatever reason, that is not important for your business case, then you could consider no encryption.
The connection to the backend servers also goes over a network (between the proxy and the backend server), but usually the idea behind not encrypting that traffic is that you control said network and the threat of a MitM is much less.