Bucket/Object Policy
Last updated
2023-07-11 16:29:14
{"value":"\u79c1\u6709\u4e91\u5b58\u50a8\u7cfb\u7edf\u63d0\u4f9b\u4e86\u57fa\u4e8e\u8d44\u6e90\u7684\u6388\u6743\u7b56\u7565\uff1aBucket Policy\u548cObject Policy\u3002 \u652f\u6301\u5728\u63a7\u5236\u53f0\u76f4\u63a5\u8fdb\u884c\u56fe\u5f62\u5316\u914d\u7f6e\uff0c\u5e76\u4e14Bucket\u6216Object\u62e5\u6709\u8005\u76f4\u63a5\u53ef\u4ee5\u8fdb\u884c\u8bbf\u95ee\u6388\u6743\u3002Bucket Policy\u548cObject Policy\u652f\u6301\u5411\u5176\u4ed6\u8d26\u53f7\u7684\u7528\u6237\u6388\u4e88\u8bbf\u95ee\u6743\u9650\u5e76\u6307\u5b9a\u7279\u5b9a\u7684IP\u6761\u4ef6\u9650\u5236\u3002\n\n\n\n## Policy\u5185\u5bb9\n\nBucket Policy\u548cObject Policy\u662f\u4e00\u7ec4\u89c4\u5b9a\u8c01\u80fd\u4ee5\u4ec0\u4e48\u6837\u7684\u6743\u9650\u8bbf\u95eeBucket\/Object\u7684\u7b56\u7565\u3002Policy\u5b9a\u4e49\u7684\u5185\u5bb9\u5305\u62ec\uff1a\n\n- \u8d44\u6e90\n - Bucket\n - \u8d44\u6e90\/Object\uff1a\u5355\u4e2a\uff1b\u524d\u7f00\u5339\u914d\n - BucketInfo\uff08\u4e0d\u542bPolicy\uff09\n- \u6743\u9650\n - Read \u8bfb\n - Write \u5199\n - Delete \u5220\u9664\n- \u7528\u6237\n - \u5168\u90e8\u7528\u6237\uff08\u4e0d\u542b\u533f\u540d\u8d26\u6237\uff09\n - \u6307\u5b9a\u7528\u6237\n- \u6761\u4ef6\uff08condition\uff09\n - \u6307\u5b9aIP\u5730\u5740\n - IP\u5730\u5740\u6bb5\n- \u4f5c\u7528\uff08Deny\/Allow\uff09\n - Deny\uff0c\u7981\u6b62\u6743\u9650\uff0c\u4f18\u5148\u7ea7\u9ad8\u4e8eAllow\n - Allow\uff0c\u5141\u8bb8\u6743\u9650\n\n\n\n## Policy\u4f7f\u7528\u89c4\u5219\n\n- \u60a8\u53ef\u4ee5\u5728\u521b\u5efaBucket\u6216\u4e0a\u4f20Object\u4ee5\u540e\u7684\u4efb\u610f\u65f6\u95f4\u5185\u8bbe\u7f6e\u548c\u4fee\u6539Policy\n- \u53ea\u6709\u521b\u5efa\u8005\uff0c\u624d\u80fd\u5bf9\u5176\u62e5\u6709\u7684Bucket\u6216Object\u8bbe\u7f6ePolicy\n- \u521b\u5efa\u8005\u4e0d\u53d7Policy\u9650\u5236\n- \u88ab\u6388\u6743\u7684Bucket\u6216Object\uff0c\u88ab\u6388\u6743\u8005\u4e0d\u80fd\u518d\u5bf9\u5176\u8bbe\u7f6ePolicy\n- \u5355\u6761Policy\u6388\u6743\u7528\u6237\u4e0d\u8d85\u8fc7100\u4e2a\n- \u5355\u4e2aBucket\/Object\u53ef\u8bbe\u7f6e\u7684Policy\u4e0d\u8d85\u8fc7100\u6761\n- Deny\u7ea7\u522b\u6700\u9ad8\u3002\u5982\u7528\u6237A\u88ab\u6388\u4e88\u4e86\u8bfb\u5199\u6743\u9650\uff0c\u540c\u65f6\u53c8\u88ab\u6388\u4e88\u4e86\u7981\u6b62\u8bfb\u6743\u9650\uff0c\u5219A\u53ea\u6709\u5199\u6743\u9650\u3002\n- \u5f53\u540c\u4e00\u4e2a\u7528\u6237\u88ab\u8bbe\u7f6e\u4e86\u591a\u4e2aPolicy\u65f6\uff0c\u91c7\u7528\u6743\u9650\u53e0\u52a0\u539f\u5219\uff1a\u5982\u7528\u6237A\u88ab\u6388\u4e88\u4e86\u8bfb\u53d6\u8d44\u6e90A\u7684\u6743\u9650\uff0c\u540c\u65f6\u88ab\u6388\u4e88\u4e86\u8bfb\u5199\u6743\u9650\uff0c\u90a3\u4e48\u7528\u6237A\u5177\u6709\u8bfb\u5199\u6743\u9650\u3002\n\n\n\n## Bucket Policy\n\nBucket Policy\u662f\u9488\u5bf9Bucket\u672c\u8eab\u4ee5\u53ca\u6240\u6709\u8d44\u6e90\u8fdb\u884c\u8bbf\u95ee\u6743\u9650\u63a7\u5236\u7684\u8bbe\u7f6e\u3002\n\n- Bucket\u7684\u4fe1\u606f\u8bfb\u53d6\u548c\u64cd\u4f5c\n- \u5bf9Bucket\u5185\u7684\u6240\u6709\u8d44\u6e90\u7684\u8bfb\u53d6\n\n| \u6743\u9650\u7c7b\u578b | \u6743\u9650\u63a7\u5236 | \u63a7\u5236\u8bf4\u660e |\n| ---------------- | -------------------- | ------------------ |\n| Read Bucket | List Bucket | \u83b7\u53d6Bucket\u5217\u8868 |\n| GetObject | \u83b7\u53d6Bucket\u5185\u6240\u6709\u8d44\u6e90 | |\n| Write Bucket | Put Object | \u5728Bucket\u4e2d\u4e0a\u4f20\u8d44\u6e90 |\n| Delete Bucket | Delete Bucket | \u5220\u9664Bucket |\n| Read BucektInfo | GetBucektInfo | \u83b7\u53d6Bucket\u914d\u7f6e\u4fe1\u606f |\n| Write BucektInfo | PutBucektInfo | \u66f4\u65b0Bucket\u914d\u7f6e |\n\nBucket Policy\u7684\u8bbe\u7f6e\u65b9\u6cd5\u5982\u4e0b\uff1a\n**\u63a7\u5236\u53f0**\uff1a\u7a7a\u95f4\u8bbe\u7f6e-Bucket Policy\n\n## Object Policy\n\nObject Policy\u662f\u9488\u5bf9\u8d44\u6e90\u8bbf\u95ee\u6743\u9650\u63a7\u5236\u7684\u8bbe\u7f6e\u3002\n\n- \u53ef\u5bf9\u67d0\u4e00\u4e2a\u8d44\u6e90\u8fdb\u884c\u6743\u9650\u7684\u6dfb\u52a0\u548c\u7981\u6b62\n- \u53ef\u4ee5\u5bf9\u8d44\u6e90\u540d\u79f0\u53ca\u5176\u4ed6\u503c\u6dfb\u52a0\u901a\u914d\u7b26\uff08\u7c7b\u4f3c\u4e8e\u6b63\u5219\u8868\u8fbe\u5f0f\u8fd0\u7b97\u7b26\uff09\uff0c\u8bbe\u7f6e\u5bf9\u4e00\u7ec4\u8d44\u6e90\u7684\u8bbf\u95ee\u63a7\u5236\n\n| \u6743\u9650\u7c7b\u578b | \u6743\u9650\u63a7\u5236 | \u6743\u9650\u63a7\u5236\u8bf4\u660e |\n| ------------- | ------------ | ------------ |\n| Read Object | GetObject | \u83b7\u53d6\u67d0\u4e2a\u8d44\u6e90 |\n| Delete Object | DeleteObject | \u5220\u9664\u67d0\u4e2a\u8d44\u6e90 |\n\nObject Policy\u7684\u8bbe\u7f6e\uff1a\n**\u63a7\u5236\u53f0\uff1a\u5373\u5c06\u4e0a\u7ebf**"}