chenjunkai 6 năm trước cách đây
mục cha
commit
2e3815ee6e
1 tập tin đã thay đổi với 3 bổ sung13 xóa
  1. 3 13
      Controller/StsOssController.py

+ 3 - 13
Controller/StsOssController.py

@@ -69,7 +69,7 @@ class StsOssView(View):
             "Version": "1",
             "Statement": [
                 {
-                    "Action": ["oss:PutObject", "oss:DeleteObject", "oss:GetObject", "oss:List*"],
+                    "Action": ["oss:PutObject", "oss:DeleteObject", "oss:GetObject",],
                     # "Action": ["*"],
                     # "Action": ["*"],
                     "Resource": [Resource_access],
@@ -88,18 +88,8 @@ class StsOssView(View):
                         "oss:ListObjects"
                     ],
                     "Resource": [
-                        "acs:oss:*:*:userID".format(userID=userID)
-                    ],
-                    "Condition": {
-                        "StringLike": {
-                            "oss:Prefix": [
-                                ""
-                            ]
-                        },
-                        "StringEquals": {
-                            "oss:Delimiter": "/"
-                        }
-                    }
+                        "*"
+                    ]
                 }
             ]
         }