Calling sts:GetCallerIdentity is always allowed.
This commit is contained in:
parent
addb631081
commit
cf2dae0ce8
2 changed files with 23 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue