I have an application I'm building where all components will be contained inside a single container. I'm wondering about API calls within the container between the components, i.e using localhost, between the front, middle, and back ends.
Would the websockets/restful APIs need to use TLS when only accessible from within the container? How would having the private key in the container add any security if there's any real gain? The frontend to the end user will use TLS for security reasons.