You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by nk...@apache.org on 2022/07/26 02:18:45 UTC
[pulsar] branch master updated: improve explanations for configuring end-to-end encryption (#16767)
This is an automated email from the ASF dual-hosted git repository.
nkurihar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new c6657b147b6 improve explanations for configuring end-to-end encryption (#16767)
c6657b147b6 is described below
commit c6657b147b656e4290e087333df826249fc14761
Author: warot44 <kf...@gmail.com>
AuthorDate: Tue Jul 26 11:18:39 2022 +0900
improve explanations for configuring end-to-end encryption (#16767)
Co-authored-by: Ryota Ishida <ri...@yahoo-corp.jp>
---
site2/docs/client-libraries-node.md | 4 +---
site2/docs/client-libraries-python.md | 6 +++---
2 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/site2/docs/client-libraries-node.md b/site2/docs/client-libraries-node.md
index bc94c988541..f67c46b390a 100644
--- a/site2/docs/client-libraries-node.md
+++ b/site2/docs/client-libraries-node.md
@@ -480,7 +480,7 @@ The following static methods are available for the message id object:
### Configuration
-If you want to use the end-to-end encryption feature in the Node.js client, you need to configure `publicKeyPath` and `privateKeyPath` for both producer and consumer.
+If you want to use the end-to-end encryption feature in the Node.js client, you need to configure `publicKeyPath` for producer and `privateKeyPath` for consumer.
```
@@ -531,7 +531,6 @@ This section provides step-by-step instructions on how to use the end-to-end enc
sendTimeoutMs: 30000,
batchingEnabled: true,
publicKeyPath: "./public.pem",
- privateKeyPath: "./private.pem",
encryptionKey: "encryption-key"
});
@@ -573,7 +572,6 @@ This section provides step-by-step instructions on how to use the end-to-end enc
subscription: 'sub1',
subscriptionType: 'Shared',
ackTimeoutMs: 10000,
- publicKeyPath: "./public.pem",
privateKeyPath: "./private.pem"
});
diff --git a/site2/docs/client-libraries-python.md b/site2/docs/client-libraries-python.md
index 4e9dbdf150d..66c690404db 100644
--- a/site2/docs/client-libraries-python.md
+++ b/site2/docs/client-libraries-python.md
@@ -542,7 +542,7 @@ consumer = client.subscribe(
### Configuration
-To use the end-to-end encryption feature in the Python client, you need to configure `publicKeyPath` and `privateKeyPath` for both producer and consumer.
+To use the end-to-end encryption feature in the Python client, you need to configure `publicKeyPath` for producer and `privateKeyPath` for consumer.
```
@@ -581,7 +581,7 @@ This section provides step-by-step instructions on how to use the end-to-end enc
import pulsar
publicKeyPath = "./public.pem"
- privateKeyPath = "./private.pem"
+ privateKeyPath = ""
crypto_key_reader = pulsar.CryptoKeyReader(publicKeyPath, privateKeyPath)
client = pulsar.Client('pulsar://localhost:6650')
producer = client.create_producer(topic='encryption', encryption_key='encryption', crypto_key_reader=crypto_key_reader)
@@ -600,7 +600,7 @@ This section provides step-by-step instructions on how to use the end-to-end enc
import pulsar
- publicKeyPath = "./public.pem"
+ publicKeyPath = ""
privateKeyPath = "./private.pem"
crypto_key_reader = pulsar.CryptoKeyReader(publicKeyPath, privateKeyPath)
client = pulsar.Client('pulsar://localhost:6650')