Skip to content

Commit 6333980

Browse files
committed
more debug info
Signed-off-by: Andrey Devyatkin <andrey.devyatkin@fivexl.io>
1 parent c5fcb66 commit 6333980

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ssl-check-to-slack.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)