The NATS server provides several forms of security:
Connections can be encrypted with TLS​
Client connections can require authentication​
Clients can require authorization for subjects they publish or subscribe to