We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b5155d8 + eb6e8e3 commit 75036b9Copy full SHA for 75036b9
src/endpoint/iam/iam_rest.js
@@ -223,6 +223,12 @@ function authenticate_request(req) {
223
async function authorize_request(req) {
224
await req.account_sdk.load_requesting_account(req);
225
req.account_sdk.authorize_request_account(req);
226
+ // we want to block OBC accounts from IAM API related to user management
227
+ // bucket_claim_owner is a property that we have only in OBC account in containerized deployments
228
+ if (req.account_sdk.requesting_account.bucket_claim_owner) {
229
+ dbg.error('OBC accounts are not allowed to perform IAM API actions');
230
+ throw new IamError(IamError.AccessDeniedException);
231
+ }
232
}
233
234
function parse_op_name(req, action) {
0 commit comments