Created
May 16, 2016 20:43
-
-
Save notmyname/129bafae14381108e135f98f24be8c64 to your computer and use it in GitHub Desktop.
This file contains 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
diff --git a/swift/common/middleware/keymaster.py b/swift/common/middleware/keymaster.py | |
index 82188fd..b18319f 100644 | |
--- a/swift/common/middleware/keymaster.py | |
+++ b/swift/common/middleware/keymaster.py | |
@@ -183,6 +183,9 @@ class KeyMaster(object): | |
if not self.root_secret: | |
raise ValueError('encryption_root_secret not set in ' | |
'proxy-server.conf') | |
+ if self.root_secret == 'change_before_use': | |
+ raise ValueError('encryption_root_secret must be changed in ' | |
+ 'proxy-server.conf') | |
self.root_secret = self.root_secret.encode('utf-8') | |
def __call__(self, env, start_response): |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment