Skip to content

Commit 8961f1d

Browse files
authored
Merge pull request #8257 from Neon-White/support-any-sts-principal
Support the wildcard principal `("*")` in STS role config
2 parents 2bcdc0a + 8a1d91d commit 8961f1d

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)