Skip to content

Commit 8a1d91d

Browse files
committed
Support any principal ("*") in STS role policies
Signed-off-by: Ben <belimele@redhat.com>
1 parent 2bcdc0a commit 8a1d91d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/endpoint/sts/sts_rest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ function _is_statements_fit(statements, method, cur_account_email) {
215215
// who can do that action
216216
for (const principal of statement.principal) {
217217
dbg.log0('assume_role_policy: principal fit?', principal.unwrap().toString(), cur_account_email);
218-
if (principal.unwrap() === cur_account_email) {
218+
if ((principal.unwrap() === cur_account_email) || (principal.unwrap() === '*')) {
219219
principal_fit = true;
220220
}
221221
}

0 commit comments

Comments
 (0)