livehybrid / splunk_app_scdeploy

1 stars 0 forks source link

Expired tokens not being deleted #19

Open livehybrid opened 2 months ago

livehybrid commented 2 months ago

2024-07-25 22:49:16,931 INFO pid=4123583 tid=MainThread file=base_modinput.py:log_info:305 | Deleting token_name=318ede1194f52398abfcd684038b75073e70becf34945831158643aed7568dac for user=<redacted>
2024-07-25 22:49:17,025 CRITICAL pid=4123583 tid=MainThread file=base_modinput.py:log_critical:323 | <traceback object at 0x7fd1ed1f5a00>
2024-07-25 23:49:16,896 INFO pid=36538 tid=MainThread file=base_modinput.py:log_info:305 | Cleaning up expired tokens where expiry is less than currentTime - expiry_offset=604800 with a delete_limit=None
2024-07-25 23:49:16,896 INFO pid=36538 tid=MainThread file=base_modinput.py:log_info:305 | Removed 0 on this iteration```
livehybrid commented 2 months ago

Further error:

07-25-2024 22:49:17.025 +0000 ERROR ExecProcessor [3567477 ExecProcessor] - message from "/opt/splunk/bin/python3.7 /opt/splunk/etc/apps/splunk_app_scdeploy/bin/token_cleaner.py" Error deleting expired tokens: '>=' not supported between instances of 'int' and 'NoneType'
livehybrid commented 1 month ago

Fixed in 59c20ae Validating.