Ensure OSS Bucket is Not Allow Delete Action From All Principals

Risk Level: high
Platform: Alicloud
Spectral Rule ID: TFALCLD051

REMEDIATION

set policy to to not accept delete action from all principals

policy = <<POLICY
{"Statement": [
  {
    "Action": [
- "oss:ListObjectVersions", "oss:ListObjects", "oss:ListParts"
+ "oss:ListObjectVersions"
    ],
- "Effect": "Deny"
+ "Effect": "Allow",
    "Principal": [
- "*"
+ "20214760404935xxxx"
    ],
  ]
]}

Read more: