Permalink
Browse files

FLUME-1751: User Guide Examples for File Channel encryption are broke…

…n in 1.3 rc5

(Roshan Naik via Brock Noland)
  • Loading branch information...
1 parent 2a72fb7 commit 5bad32c7f65bb933405c418818a843e5dcbc57d5 Brock Noland committed Nov 29, 2012
Showing with 13 additions and 15 deletions.
  1. +13 −15 flume-ng-doc/sphinx/FlumeUserGuide.rst
@@ -1727,35 +1727,33 @@ Generating a key with the password the same as the key store password:
a1.channels.c1.encryption.activeKey = key-0
a1.channels.c1.encryption.cipherProvider = AESCTRNOPADDING
a1.channels.c1.encryption.keyProvider = key-provider-0
- a1.channels.c1.encryption.keyProvider.key-provider-0.type = JCEKSFILE
- a1.channels.c1.encryption.keyProvider.key-provider-0.keyStoreFile = /path/to/my.keystore
- a1.channels.c1.encryption.keyProvider.key-provider-0.keyStorePasswordFile = /path/to/my.keystore.password
- a1.channels.c1.encryption.keyProvider.key-provider-0.keys = key-0
+ a1.channels.c1.encryption.keyProvider = JCEKSFILE
+ a1.channels.c1.encryption.keyProvider.keyStoreFile = /path/to/my.keystore
+ a1.channels.c1.encryption.keyProvider.keyStorePasswordFile = /path/to/my.keystore.password
+ a1.channels.c1.encryption.keyProvider.keys = key-0
Let's say you have aged key-0 out and new files should be encrypted with key-1:
.. code-block:: properties
a1.channels.c1.encryption.activeKey = key-1
a1.channels.c1.encryption.cipherProvider = AESCTRNOPADDING
- a1.channels.c1.encryption.keyProvider = key-provider-0
- a1.channels.c1.encryption.keyProvider.key-provider-0.type = JCEKSFILE
- a1.channels.c1.encryption.keyProvider.key-provider-0.keyStoreFile = /path/to/my.keystore
- a1.channels.c1.encryption.keyProvider.key-provider-0.keyStorePasswordFile = /path/to/my.keystore.password
- a1.channels.c1.encryption.keyProvider.key-provider-0.keys = key-0 key-1
+ a1.channels.c1.encryption.keyProvider = JCEKSFILE
+ a1.channels.c1.encryption.keyProvider.keyStoreFile = /path/to/my.keystore
+ a1.channels.c1.encryption.keyProvider.keyStorePasswordFile = /path/to/my.keystore.password
+ a1.channels.c1.encryption.keyProvider.keys = key-0 key-1
The same scenerio as above, however key-0 has it's own password:
.. code-block:: properties
a1.channels.c1.encryption.activeKey = key-1
a1.channels.c1.encryption.cipherProvider = AESCTRNOPADDING
- a1.channels.c1.encryption.keyProvider = key-provider-0
- a1.channels.c1.encryption.keyProvider.key-provider-0.type = JCEKSFILE
- a1.channels.c1.encryption.keyProvider.key-provider-0.keyStoreFile = /path/to/my.keystore
- a1.channels.c1.encryption.keyProvider.key-provider-0.keyStorePasswordFile = /path/to/my.keystore.password
- a1.channels.c1.encryption.keyProvider.key-provider-0.keys = key-0 key-1
- a1.channels.c1.encryption.keyProvider.key-provider-0.keys.key-0.passwordFile = /path/to/key-0.password
+ a1.channels.c1.encryption.keyProvider = JCEKSFILE
+ a1.channels.c1.encryption.keyProvider.keyStoreFile = /path/to/my.keystore
+ a1.channels.c1.encryption.keyProvider.keyStorePasswordFile = /path/to/my.keystore.password
+ a1.channels.c1.encryption.keyProvider.keys = key-0 key-1
+ a1.channels.c1.encryption.keyProvider.keys.key-0.passwordFile = /path/to/key-0.password
Pseudo Transaction Channel

0 comments on commit 5bad32c

Please sign in to comment.