Calling sts:GetCallerIdentity is always allowed.

This commit is contained in:
acsbendi 2019-08-22 18:09:52 +02:00
commit cf2dae0ce8
2 changed files with 23 additions and 0 deletions

View file

@ -172,6 +172,8 @@ class IAMRequestBase(object):
self._raise_signature_does_not_match()
def check_action_permitted(self):
if self._action == 'sts:GetCallerIdentity': # always allowed, even if there's an explicit Deny for it
return True
policies = self._access_key.collect_policies()
permitted = False