From 6b578277f7eb6af9135143d01347f30d89a6505e Mon Sep 17 00:00:00 2001 From: Armin Schlegel Date: Wed, 23 Nov 2022 18:54:16 +0100 Subject: [PATCH] added docs for jetstream token based auth (#2959) Signed-off-by: Armin Schlegel Signed-off-by: Armin Schlegel --- .../supported-pubsub/setup-jetstream.md | 24 +++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/daprdocs/content/en/reference/components-reference/supported-pubsub/setup-jetstream.md b/daprdocs/content/en/reference/components-reference/supported-pubsub/setup-jetstream.md index c2b4257af..0222f3036 100644 --- a/daprdocs/content/en/reference/components-reference/supported-pubsub/setup-jetstream.md +++ b/daprdocs/content/en/reference/components-reference/supported-pubsub/setup-jetstream.md @@ -25,26 +25,28 @@ spec: - name: natsURL value: "nats://localhost:4222" - name: jwt # Optional. Used for decentralized JWT authentication. - value: "eyJhbGciOiJ...6yJV_adQssw5c" + value: "eyJhbGciOiJ...6yJV_adQssw5c" - name: seedKey # Optional. Used for decentralized JWT authentication. - value: "SUACS34K232O...5Z3POU7BNIL4Y" + value: "SUACS34K232O...5Z3POU7BNIL4Y" - name: tls_client_cert # Optional. Used for TLS Client authentication. - value: "/path/to/tls.crt" + value: "/path/to/tls.crt" - name: tls_client_key # Optional. Used for TLS Client authentication. - value: "/path/to/tls.key" - - name: name + value: "/path/to/tls.key" + - name: token # Optional. Used for token based authentication. + value: "my-token" + - name: name value: "my-conn-name" - - name: durableName + - name: durableName value: "my-durable" - - name: queueGroupName + - name: queueGroupName value: "my-queue" - - name: startSequence + - name: startSequence value: 1 - name: startTime # In Unix format value: 1630349391 - - name: deliverAll + - name: deliverAll value: false - - name: flowControl + - name: flowControl value: false - name: ackWait value: 10s @@ -73,6 +75,7 @@ spec: | seedKey | N | NATS decentralized authentication seed key | `"SUACS34K232O...5Z3POU7BNIL4Y"` | | tls_client_cert | N | NATS TLS Client Authentication Certificate | `"/path/to/tls.crt"` | | tls_client_key | N | NATS TLS Client Authentication Key | `"/path/to/tls.key"` | +| token | N | [NATS token based authentication] | `"my-token"` | | name | N | NATS connection name | `"my-conn-name"` | | durableName | N | [Durable name] | `"my-durable"` | | queueGroupName | N | Queue group name | `"my-queue"` | @@ -153,3 +156,4 @@ nats -s localhost:4222 stream add myStream --subjects mySubject [Rate Limit]: https://docs.nats.io/jetstream/concepts/consumers#ratelimit [Hearbeat]: https://docs.nats.io/jetstream/concepts/consumers#hearbeat [Decentralized JWT Authentication/Authorization]: https://docs.nats.io/running-a-nats-service/configuration/securing_nats/auth_intro/jwt +[NATS token based authentication]: https://docs.nats.io/running-a-nats-service/configuration/securing_nats/auth_intro/tokens