Merge pull request #6884 from jangsutsr/6406_expose_ctint_log_aggregator_verify_cert

Expose LOG_AGGREGATOR_VERIFY_CERT to Tower configuration
This commit is contained in:
Aaron Tan 2017-07-05 12:41:17 -04:00 committed by GitHub
commit 3451591e66

View File

@ -416,6 +416,18 @@ register(
category=_('Logging'),
category_slug='logging',
)
register(
'LOG_AGGREGATOR_VERIFY_CERT',
field_class=fields.BooleanField,
default=True,
label=_('Enable/disable HTTPS certificate verification'),
help_text=_('Flag to control enable/disable of certificate verification'
' when LOG_AGGREGATOR_PROTOCOL is "https". If enabled, Tower\'s'
' log handler will verify certificate sent by external log aggregator'
' before establishing connection.'),
category=_('Logging'),
category_slug='logging',
)
def logging_validate(serializer, attrs):