From 9e0456bb662e5d47ff15a908a1e53dfc2b1c59ea Mon Sep 17 00:00:00 2001 From: Liz Rice Date: Mon, 25 Feb 2019 19:11:45 +0000 Subject: [PATCH] Function is no longer getting service account token --- src/modules/hunting/apiserver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/hunting/apiserver.py b/src/modules/hunting/apiserver.py index a6090a3..c9ec537 100644 --- a/src/modules/hunting/apiserver.py +++ b/src/modules/hunting/apiserver.py @@ -233,7 +233,7 @@ class AccessApiServerViaServiceAccountToken(Hunter): except requests.exceptions.ConnectionError: return False - def get_service_account_token(self): + def add_token_to_headers(self): if self.event.auth_token != '': self.headers = {'Authorization': 'Bearer ' + self.event.auth_token} @@ -306,7 +306,7 @@ class AccessApiServerViaServiceAccountToken(Hunter): def execute(self): - self.get_service_account_token() + self.add_token_to_headers() if self.access_api_server(): self.publish_event(ServerApiAccess(self.api_server_evidence))