Compare commits

..

No commits in common. "99d9abb28f7f91450857099c190f15328a74d499" and "237872a5a339f8432e7ee9fcc6734f1ce3dab920" have entirely different histories.

3 changed files with 2 additions and 17 deletions

View File

@ -44,8 +44,8 @@ export function validateCredentials(
return errors.RequestTimeTooSkewed;
}
if (service !== 's3' && service !== 'iam' && service !== 'ring' &&
service !== 'sts' && service !== 'scality') {
log.warn('service in credentials is not one of s3/iam/ring/sts/scality', {
service !== 'sts') {
log.warn('service in credentials is not one of s3/iam/ring/sts', {
service,
});
return errors.InvalidArgument;

View File

@ -11,7 +11,6 @@ import {
actionMapIAM,
actionMapSSO,
actionMapSTS,
actionMapScality,
actionMapMetadata,
} from './utils/actionMaps';
@ -37,8 +36,6 @@ function _findAction(service: string, method: string) {
return actionMapSTS[method];
case 'metadata':
return actionMapMetadata[method];
case 'scality':
return actionMapScality[method];
default:
return undefined;
}
@ -52,9 +49,6 @@ function _buildArn(
) {
// arn:partition:service:region:account-id:resourcetype/resource
switch (service) {
case 'scality': {
return `arn:aws:iam::${requesterInfo!.accountid}:/${generalResource}/`;
}
case 's3': {
// arn:aws:s3:::bucket/object
// General resource is bucketName

View File

@ -199,14 +199,6 @@ const actionMapIAM = {
listUserTags: 'iam:ListUserTags',
};
const actionMapScality = {
updateAccountAttributes: 'scality:UpdateAccountAttributes',
UpdateAccountQuota: 'scality:UpdateAccountQuota',
DeleteAccountQuota: 'scality:DeleteAccountQuota',
DeleteAccount: 'scality:DeleteAccount',
GenerateAccountAccessKey: 'scality:GenerateAccountAccessKey',
};
const actionMapSSO = {
SsoAuthorize: 'sso:Authorize',
};
@ -229,5 +221,4 @@ export {
actionMapSSO,
actionMapSTS,
actionMapMetadata,
actionMapScality,
};