Implements configurable swift_owner_headers
These are headers that will be stripped unless the WSGI environment contains a true value for 'swift_owner'. The exact definition of a swift_owner is up to the auth system in use, but usually indicates administrative responsibilities. DocImpact Change-Id: I972772fbbd235414e00130ca663428e8750cabca
This commit is contained in:
@@ -155,6 +155,14 @@ class Application(object):
|
||||
else:
|
||||
raise ValueError(
|
||||
'Invalid write_affinity_node_count value: %r' % ''.join(value))
|
||||
swift_owner_headers = conf.get(
|
||||
'swift_owner_headers',
|
||||
'x-container-read, x-container-write, '
|
||||
'x-container-sync-key, x-container-sync-to, '
|
||||
'x-account-meta-temp-url-key, x-account-meta-temp-url-key-2')
|
||||
self.swift_owner_headers = [
|
||||
name.strip()
|
||||
for name in swift_owner_headers.split(',') if name.strip()]
|
||||
|
||||
def get_controller(self, path):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user