@@ -93,15 +93,20 @@ def main(event, context):
9393 format = '%(asctime)s %(levelname)-8s %(message)s' , datefmt = '%Y-%m-%d %H:%M:%S' )
9494 logger .info ('Reading configuration...' )
9595 slack_web_hook_urls = read_env_variable_or_die ('HOOK_URLS' ).split (',' )
96+ logger .debug (f'slack_web_hook_urls: { slack_web_hook_urls } ' )
9697 hostnames = read_env_variable_or_die ('HOSTNAMES' ).split (',' )
98+ logger .debug (f'hostnames: { hostnames } ' )
9799 health_check_matcher = split_matcher (str (os .environ .get ('HEALTH_CHECK_MATCHER' , '200-399,201' )))
100+ logger .debug (f'health_check_matcher: { health_check_matcher } ' )
98101 certificate_expiration_notice_days = int (os .environ .get ('CERTIFICATE_EXPIRATION_NOTICE_DAYS' , '7' ))
102+ logger .debug (f'certificate_expiration_notice_days: { certificate_expiration_notice_days } ' )
99103 # https://nabla-c0d3.github.io/sslyze/documentation/available-scan-commands.html
100104 scan_commands = set (os .environ .get ('SCAN_COMMANDS' ,
101105 'certificate_info,robot,tls_compression,tls_fallback_scsv,heartbleed,'
102106 'http_headers ,openssl_ccs_injection,session_renegotiation,'
103107 'tls_1_1_cipher_suites,tls_1_2_cipher_suites,tls_1_3_cipher_suites'
104108 ).replace (' ' , '' ).split (',' )).union ({'certificate_info' })
109+ logger .debug (f'scan_commands: { scan_commands } ' )
105110 logger .info ('Configuration is OK' )
106111 logger .info (f'Going to check: { hostnames } ' )
107112 servers_to_scan = []
0 commit comments