google / timesketch

Collaborative forensic timeline analysis
Apache License 2.0
2.58k stars 589 forks source link

Cannot provide missing config values if no TTY available #2849

Closed ramo-j closed 1 year ago

ramo-j commented 1 year ago

In scenarios where no TTY is available, TS will block on user input, but it will not be clear to the user why. This occurs when config values are missing. This problem exists for providing an auth token, and was fixed by checking for a tty first, and exiting with a useful error message if not. See: timesketch/api_client/python/timesketch_api_client/client.py:260. It is likely that this check just needs to be added to timesketch/api_client/python/timesketch_api_client/config.py:configure_missing_parameters.