account principals of the form ``arn:aws:iam::
123456789012:root``
or ``
123456789012`` delegate authority to the account, which means that
it applies to all of the account's users and roles
Signed-off-by: Casey Bodley <cbodley@redhat.com>
bool rgw::auth::RoleApplier::is_identity(const Principal& p) const {
if (p.is_wildcard()) {
return true;
+ } else if (p.is_account()) {
+ return match_account_or_tenant(role.account_id, role.tenant,
+ p.get_account());
} else if (p.is_role()) {
return p.get_id() == role.name // TODO: match path/name
&& p.get_account() == role.tenant;