diff --git a/data/timesketch.conf b/data/timesketch.conf index 8e2f285b5b..fb25a1732b 100644 --- a/data/timesketch.conf +++ b/data/timesketch.conf @@ -338,6 +338,7 @@ SIGMA_TAG_DELAY = 5 #------------------------------------------------------------------------------- # DFIQ - Digital Forensics Investigation Questions +DFIQ_ENABLED = False DFIQ_PATH = '/etc/timesketch/dfiq/' # Intelligence tag metadata configuration diff --git a/timesketch/api/v1/resources/settings.py b/timesketch/api/v1/resources/settings.py index 6582da2dc9..2f8dd1c311 100644 --- a/timesketch/api/v1/resources/settings.py +++ b/timesketch/api/v1/resources/settings.py @@ -30,7 +30,7 @@ def get(self): JSON object with system settings. """ # Settings from timesketch.conf to expose to the frontend clients. - settings_to_return = ["LLM_PROVIDER"] + settings_to_return = ["LLM_PROVIDER", "DFIQ_ENABLED"] result = {} for setting in settings_to_return: diff --git a/timesketch/api/v1/resources_test.py b/timesketch/api/v1/resources_test.py index 19c01e407f..d89aa33c5e 100644 --- a/timesketch/api/v1/resources_test.py +++ b/timesketch/api/v1/resources_test.py @@ -1401,5 +1401,5 @@ def test_system_settings_resource(self): """Authenticated request to get system settings.""" self.login() response = self.client.get(self.resource_url) - expected_response = {"LLM_PROVIDER": "test"} + expected_response = {"DFIQ_ENABLED": False, "LLM_PROVIDER": "test"} self.assertEqual(response.json, expected_response) diff --git a/timesketch/frontend-ng/src/components/Scenarios/QuestionCard.vue b/timesketch/frontend-ng/src/components/Scenarios/QuestionCard.vue index 4e5022cc7f..64f538c08d 100644 --- a/timesketch/frontend-ng/src/components/Scenarios/QuestionCard.vue +++ b/timesketch/frontend-ng/src/components/Scenarios/QuestionCard.vue @@ -15,7 +15,7 @@ limitations under the License. -->