-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ZKUI-207: Disable the Remove button for Policy Role Pair defined in the
Vault Config
- Loading branch information
1 parent
ccc968b
commit 741aaa6
Showing
7 changed files
with
270 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,230 @@ | ||
[ | ||
{ | ||
"role": { | ||
"roleName": "storage-manager-role", | ||
"trustPolicy": { | ||
"Version": "2012-10-17", | ||
"Statement": [ | ||
{ | ||
"Effect": "Allow", | ||
"Principal": { "Federated": "keycloak.zenko.local" }, | ||
"Action": "sts:AssumeRoleWithWebIdentity", | ||
"Condition": { | ||
"StringEquals": { | ||
"keycloak:roles": "StorageManager" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"permissionPolicy": { | ||
"policyName": "storage-manager-policy", | ||
"policyDocument": { | ||
"Version": "2012-10-17", | ||
"Statement": [ | ||
{ | ||
"Sid": "FullAccess", | ||
"Effect": "Allow", | ||
"Action": ["*"], | ||
"Resource": "*" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"role": { | ||
"roleName": "storage-account-owner-role", | ||
"trustPolicy": { | ||
"Version": "2012-10-17", | ||
"Statement": [ | ||
{ | ||
"Effect": "Allow", | ||
"Principal": { "Federated": "keycloak.zenko.local" }, | ||
"Action": "sts:AssumeRoleWithWebIdentity", | ||
"Condition": { | ||
"StringEquals": { "keycloak:groups": "StorageAccountOwner" } | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"permissionPolicy": { | ||
"policyName": "storage-account-owner-policy", | ||
"policyDocument": { | ||
"Version": "2012-10-17", | ||
"Statement": [ | ||
{ | ||
"Sid": "FullAccess", | ||
"Effect": "Allow", | ||
"Action": ["s3:*", "iam:*"], | ||
"Resource": ["*"] | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"role": { | ||
"roleName": "data-consumer-role", | ||
"trustPolicy": { | ||
"Version": "2012-10-17", | ||
"Statement": [ | ||
{ | ||
"Effect": "Allow", | ||
"Principal": { "Federated": "keycloak.zenko.local" }, | ||
"Action": "sts:AssumeRoleWithWebIdentity", | ||
"Condition": { | ||
"StringEquals": { "keycloak:groups": "DataConsumer" } | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"permissionPolicy": { | ||
"policyName": "data-consumer-policy", | ||
"policyDocument": { | ||
"Version": "2012-10-17", | ||
"Statement": [ | ||
{ | ||
"Effect": "Allow", | ||
"Action": "s3:ListAllMyBuckets", | ||
"Resource": "*" | ||
}, | ||
{ | ||
"Effect": "Allow", | ||
"Action": ["s3:ListBucket", "s3:GetBucketLocation"], | ||
"Resource": "*" | ||
}, | ||
{ | ||
"Effect": "Allow", | ||
"Action": [ | ||
"s3:MetadataSearch", | ||
"s3:PutObject", | ||
"s3:PutObjectAcl", | ||
"s3:GetObject", | ||
"s3:GetObjectAcl", | ||
"s3:DeleteObject", | ||
"s3:RestoreObject", | ||
"s3:GetBucketVersioning", | ||
"s3:GetBucketCors", | ||
"s3:GetBucketAcl", | ||
"s3:GetBucketObjectLockConfiguration", | ||
"s3:ListObjectsV2", | ||
"s3:ListObjectVersions", | ||
"s3:PutObjectLockConfiguration", | ||
"s3:DeleteObjects", | ||
"s3:GetObjectRetention", | ||
"s3:GetObjectLegalHold", | ||
"s3:PutObjectRetention", | ||
"s3:PutObjectLegalHold", | ||
"s3:HeadObject", | ||
"s3:CopyObject", | ||
"s3:GetObjectTagging", | ||
"s3:PutObjectTagging", | ||
"s3:GetReplicationConfiguration", | ||
"s3:GetLifecycleConfiguration", | ||
"s3:DeleteObjectVersion", | ||
"s3:PutLifecycleConfiguration", | ||
"s3:PutReplicationConfiguration", | ||
"s3:ListObjectVersion", | ||
"s3:GetObjectVersion", | ||
"s3:GetObjectVersionRetention", | ||
"s3:GetObjectVersionLegalHold", | ||
"s3:PutObjectVersionRetention", | ||
"s3:PutObjectVersionLegalHold", | ||
"s3:GetObjectVersionTagging", | ||
"s3:DeleteObjectVersionTagging", | ||
"s3:PutObjectVersionTagging", | ||
"s3:GetObjectVersionAcl", | ||
"s3:PutObjectVersionAcl", | ||
"s3:GetBucketTagging", | ||
"s3:PutBucketTagging", | ||
"s3:DeleteBucketTagging" | ||
], | ||
"Resource": "*" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"permissionPolicy": { | ||
"policyDocument": { | ||
"Statement": [ | ||
{ | ||
"Action": [ | ||
"s3:GetLifecycleConfiguration", | ||
"s3:GetBucketVersioning", | ||
"s3:ListBucket", | ||
"s3:ListBucketVersions", | ||
"s3:ListBucketMultipartUploads", | ||
"s3:GetObjectTagging", | ||
"s3:GetObjectVersionTagging", | ||
"s3:GetObject", | ||
"s3:GetObjectVersion" | ||
], | ||
"Effect": "Allow", | ||
"Resource": ["*"], | ||
"Sid": "LifecycleExpirationBucketProcessor" | ||
} | ||
], | ||
"Version": "2012-10-17" | ||
}, | ||
"policyName": "backbeat-lifecycle-bp-1" | ||
}, | ||
"role": { | ||
"roleName": "backbeat-lifecycle-bp-1", | ||
"trustPolicy": { | ||
"Statement": [ | ||
{ | ||
"Action": "sts:AssumeRole", | ||
"Effect": "Allow", | ||
"Principal": { | ||
"AWS": "arn:aws:iam::000000000000:user/scality-internal/backbeat-lifecycle-bp-1" | ||
} | ||
} | ||
], | ||
"Version": "2012-10-17" | ||
} | ||
} | ||
}, | ||
{ | ||
"permissionPolicy": { | ||
"policyDocument": { | ||
"Statement": [ | ||
{ | ||
"Action": [ | ||
"s3:GetObject", | ||
"s3:GetObjectVersion", | ||
"s3:DeleteObject", | ||
"s3:DeleteObjectVersion", | ||
"s3:AbortMultipartUpload" | ||
], | ||
"Effect": "Allow", | ||
"Resource": ["*"], | ||
"Sid": "LifecycleExpirationObjectProcessor" | ||
} | ||
], | ||
"Version": "2012-10-17" | ||
}, | ||
"policyName": "backbeat-lifecycle-op-1" | ||
}, | ||
"role": { | ||
"roleName": "backbeat-lifecycle-op-1", | ||
"trustPolicy": { | ||
"Statement": [ | ||
{ | ||
"Action": "sts:AssumeRole", | ||
"Effect": "Allow", | ||
"Principal": { | ||
"AWS": "arn:aws:iam::000000000000:user/scality-internal/backbeat-lifecycle-op-1" | ||
} | ||
} | ||
], | ||
"Version": "2012-10-17" | ||
} | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// TODO: AccountSeeds should be returned by Vault API | ||
export function getAccountSeeds() { | ||
return fetch('/account-seeds.json', { | ||
headers: { 'Content-Type': 'application/json', Accept: 'application/json' }, | ||
}).then((res) => { | ||
if (!res.ok) { | ||
throw Error('Can not fetch Account Seeds!!'); | ||
} | ||
return res.json(); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters