Compare commits

..

3 Commits

Author SHA1 Message Date
danielsagi
e8c9ebbfe1 Merge branch 'master' into fix_audit_log_proving 2020-11-17 19:42:26 +02:00
Daniel Sagi
0c0ab6172f fixed linting 2020-11-15 17:27:28 +02:00
Daniel Sagi
afe0cff6ed fixed wrong message for when proving audit logs 2020-11-15 15:25:45 +02:00

View File

@@ -375,9 +375,8 @@ class SecureKubeletPortHunter(Hunter):
container_name="test",
cmd="",
)
# if we get this message, we know we passed Authentication and Authorization, and that the endpoint is enabled.
status_code = self.session.post(run_url, verify=False, timeout=config.network_timeout).status_code
return status_code == requests.codes.NOT_FOUND
# if we get a Method Not Allowed, we know we passed Authentication and Authorization.
return self.session.get(run_url, verify=False, timeout=config.network_timeout).status_code == 405
# returns list of currently running pods
def test_running_pods(self):