Skip to content

Instantly share code, notes, and snippets.

@notmyname
Created May 16, 2016 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save notmyname/129bafae14381108e135f98f24be8c64 to your computer and use it in GitHub Desktop.
Save notmyname/129bafae14381108e135f98f24be8c64 to your computer and use it in GitHub Desktop.
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