You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by gi...@git.apache.org on 2017/10/03 02:50:07 UTC
[GitHub] massakam commented on a change in pull request #802: Added end user documentation for encryption
massakam commented on a change in pull request #802: Added end user documentation for encryption
URL: https://github.com/apache/incubator-pulsar/pull/802#discussion_r142302280
##########
File path: site/docs/latest/advanced/Encryption.md
##########
@@ -0,0 +1,157 @@
+---
+title: Pulsar Encryption
+lead: Encrypt messages published to pulsar
+tags:
+- crypto
+- encryption
+- clients
+---
+
+# Pulsar Encryption
+
+Pulsar encryption allows applications to encrypt messages at the producer and decrypt at the consumer. Encryption is performed using the public/private key pair configured by the application. Encrypted messages can only be decrypted by consumers with a valid key.
+
+## Asymmetric and symmetric encryption
+
+Pulsar uses dynamically generated symmetric AES key to encrypt messages(data). The AES key(data key) is encrypted using application provided ECDSA/RSA key pair, as a result there is no need to share the secret with everyone.
+
+Key is a public/private key pair used for encryption/decryption. The producer key is the public key, and the consumer key is the private key of the key pair.
+
+The application configures the producer with the public key. This key is used to encrypt the AES data key. The encrypted data key is sent as part of message header. Only entities with the private key(in this case the consumer) will be able to decrypt the data key which is used to decrypt the message.
+
+A message can be encrypted with more than one key. Any one of the keys used for encrypting the message is sufficient to decrypt the message
+
+Pulsar does not store the encryption key anywhere in the pulsar service. If you lose/delete the private key, your message is irretrievably lost, and is unrecoverable
+
+## Producer
+
Review comment:
I think that it is better to specify the image URL like any other documents.
```md

```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services