Skip to content

Commit

Permalink
Include case for MoFo account in awsSaml
Browse files Browse the repository at this point in the history
  • Loading branch information
dividehex committed Sep 7, 2023
1 parent 5105f80 commit a93e588
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions rules/awsSaml.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,6 @@ function awsSaml(user, context, callback) {
"mozilliansorg_iam-in-transition",
"mozilliansorg_iam-in-transition-admin",
"mozilliansorg_meao-admins",
"mozilliansorg_mofo_aws_admins",
"mozilliansorg_mofo_aws_community",
"mozilliansorg_mofo_aws_everything",
"mozilliansorg_mofo_aws_labs",
"mozilliansorg_mofo_aws_projects",
"mozilliansorg_mofo_aws_sandbox",
"mozilliansorg_mofo_aws_secure",
"mozilliansorg_mozilla-moderator-devs",
"mozilliansorg_partinfra-aws",
"mozilliansorg_pdfjs-testers",
Expand Down Expand Up @@ -78,6 +71,23 @@ function awsSaml(user, context, callback) {
"mozilliansorg_pocket_sales",
];
break;
case "jU8r4uSEF3fUCjuJ63s46dBnHAfYMYfj":
// MoFo Billing Account
paramObj.region = "us-east-2";
paramObj.IdentityStoreId = configuration.AWS_IDENTITYSTORE_ID_MOFO;
paramObj.accessKeyId = configuration.AWS_IDENTITYSTORE_ACCESS_ID_MOFO;
paramObj.secretAccessKey =
configuration.AWS_IDENTITYSTORE_ACCESS_KEY_MOFO;
paramObj.awsGroups = [
"mozilliansorg_mofo_aws_admins",
"mozilliansorg_mofo_aws_community",
"mozilliansorg_mofo_aws_everything",
"mozilliansorg_mofo_aws_labs",
"mozilliansorg_mofo_aws_projects",
"mozilliansorg_mofo_aws_sandbox",
"mozilliansorg_mofo_aws_secure",
];
break;
default:
return callback(null, user, context); // Not an AWS login, continue auth pipeline
}
Expand Down

0 comments on commit a93e588

Please sign in to comment.