Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/endpoint/iam/iam_rest.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,12 @@ function authenticate_request(req) {
async function authorize_request(req) {
await req.account_sdk.load_requesting_account(req);
req.account_sdk.authorize_request_account(req);
// we want to block OBC accounts from IAM API related to user management
// bucket_claim_owner is a property that we have only in OBC account in containerized deployments
if (req.account_sdk.requesting_account.bucket_claim_owner) {
dbg.error('OBC accounts are not allowed to perform IAM API actions');
throw new IamError(IamError.AccessDeniedException);
}
}

function parse_op_name(req, action) {
Expand Down