Last active
July 2, 2016 01:56
-
-
Save pauldardeau/cf55d0472552cb62b680cbd5f01f2aba to your computer and use it in GitHub Desktop.
Swift Encryption TL;DR
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| The encryption overview document (doc/source/overview_encryption.rst) is very well written. Please see it for the complete story. | |
| Here’s the TL;DR version | |
| (1) Install new dependencies for crypto (see updates made in requirements.txt) | |
| (2) Add new middleware entries to pipeline in proxy-server.conf: | |
| <other existing middleware> keymaster encryption proxy-logging proxy-server | |
| (3) Paste the following code in your proxy-server.conf: | |
| [filter:keymaster] | |
| use = egg:swift#keymaster | |
| encryption_root_secret = your_secret | |
| [filter:encryption] | |
| use = egg:swift#encryption | |
| # disable_encryption = False | |
| (4) Run this command to generate your encryption secret: | |
| openssl rand –base64 32 | |
| (5) Copy the generated secret and paste into proxy-server.conf to replace 'your_secret' with your new generated one | |
| (6) Restart Swift |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment