nats-io / nats-streaming-server

NATS Streaming System Server
https://nats.io
Apache License 2.0
2.51k stars 283 forks source link

What are the available authentication mechanisms? #962

Open sujeshthekkepatt opened 4 years ago

sujeshthekkepatt commented 4 years ago

I was trying out nats-streaming. What are the types of authentication available for nats-streaming-server as compared to nats? I see currently user/pass and token-based auth is supported. Is there any support for JWT etc? Or is I am missing something? I am using nats-streaming with Nodejs ?

kozlovic commented 4 years ago

@sujeshthekkepatt You can connect your streaming clients the same way you would connect core NATS clients, and the streaming server can have the equivalent of a NATS Server 2.0 configuration. However, we do have some limitations on the way you can restrict subscriptions permissions for streaming clients (due to the way clients sends streaming subscription requests to the server).

So if you are just starting, I would say that you should wait for JetStream that will be in NATS core, so with all the features available to core NATS Server and clients.

sujeshthekkepatt commented 4 years ago

I see that jetStream corresponds to nats-streaming right? So once jetStream rolled out will there be any support on nats-streaming-server? what's the ETA for jetStream? Also, Will, there be a new library for Nodejs or can be used with node-nats-streaming?

kozlovic commented 4 years ago

We will continue support for NATS Streaming, but all the features that are specific to NATS 2.0 that are available to NATS Streaming are unlikely to be "ported" since JetStream will have them all by nature (since JetStream is part of the NATS Server core). As for ETA, there is an attempt at a alpha/beta for KubeCon later this month.