Open jinnko opened 5 years ago
@Etiene Could you review this one?
Thanks for the PR! How did you test this? I wonder if we should have an automated test to check this behavior
I created a Pull Request for this Pull request.
https://github.com/ixydo/terraform-aws-consul/pull/1
Enable auto encryption without requiring server key and certificate. My understand of auto-encryption is that the server will provide a PKI certificate to clients, you don't have to distribute them yourself. Adjusted to create a configuration similar to on in the Learning Consul documentation.
We get support for enabling auto_encryption at set up time, allowing client instances to get their TLS key/cert pairs from the consul servers.
In order to allow browsers to access the UI we also need to TLS on the HTTPS endponit, while keeping mTLS enabled for RPC connections.
There are a couple of special cases to be considered (see individual commits for details):