Add support for configuring CloudFront storage engine
Fixes https://jira.coreos.com/browse/QS-116
This commit is contained in:
parent
f4f51934ef
commit
b0f656731c
5 changed files with 79 additions and 11 deletions
|
@ -38,6 +38,7 @@ ACI_CERT_FILENAMES = ['signing-public.gpg', 'signing-private.gpg']
|
|||
LDAP_FILENAMES = [LDAP_CERT_FILENAME]
|
||||
CONFIG_FILENAMES = (SSL_FILENAMES + DB_SSL_FILENAMES + JWT_FILENAMES + ACI_CERT_FILENAMES +
|
||||
LDAP_FILENAMES)
|
||||
CONFIG_FILE_SUFFIXES = ['-cloudfront-signing-key.pem']
|
||||
EXTRA_CA_DIRECTORY = 'extra_ca_certs'
|
||||
|
||||
VALIDATORS = {
|
||||
|
@ -83,3 +84,13 @@ def validate_service_for_config(service, config, password=None):
|
|||
'status': False,
|
||||
'reason': str(ex)
|
||||
}
|
||||
|
||||
|
||||
def is_valid_config_upload_filename(filename):
|
||||
""" Returns true if and only if the given filename is one which is supported for upload
|
||||
from the configuration UI tool.
|
||||
"""
|
||||
if filename in CONFIG_FILENAMES:
|
||||
return True
|
||||
|
||||
return any([filename.endswith(suffix) for suffix in CONFIG_FILE_SUFFIXES])
|
||||
|
|
Reference in a new issue