mirror of
https://github.com/aquasecurity/kube-hunter.git
synced 2026-05-11 19:57:03 +00:00
Recent change moved service account token access
Should've really been part of merge
This commit is contained in:
@@ -317,8 +317,7 @@ class AccessApiServerViaServiceAccountToken(Hunter):
|
||||
|
||||
def execute(self):
|
||||
|
||||
if self.get_service_account_token():
|
||||
self.publish_event(ServiceAccountTokenAccess(self.service_account_token_evidence))
|
||||
self.get_service_account_token():
|
||||
|
||||
if self.access_api_server():
|
||||
self.publish_event(ServerApiAccess(self.api_server_evidence))
|
||||
|
||||
Reference in New Issue
Block a user