Using NATS to secure ISC
In this section, we will learn to secure microservices with the NATS server by configuring the NATS server and implementing code samples to try out different options discussed in the preceding sections.
Implementing TLS with NATS for microservices
Let's set up a NATS server cluster with TLS and connect to it from our sample code.
Setting up a NATS cluster with TLS
The TLS configuration for the NATS server consists of two separate sections to secure client-server communication as well as server-server communication for clustering. In addition to that, the NATS server monitoring port also needs to be configured for TLS-based security. The steps mentioned next allow you to configure NATS servers with TLS security:
- Since we are setting up a test environment, we will use a self-signed certificate to implement TLS security. To create certificates, we will be using the cfssl tool maintained by Cloudflare (https://github.com/cloudflare...