From 2300995af25c116d4754ea7355c419875b53abeb Mon Sep 17 00:00:00 2001 From: Denis Kirillov Date: Tue, 20 Aug 2024 17:17:17 +0300 Subject: [PATCH] [#88] iam: Support lifecycle actions in native map Signed-off-by: Denis Kirillov --- iam/converter_native.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iam/converter_native.go b/iam/converter_native.go index 4f3ab18..792c227 100644 --- a/iam/converter_native.go +++ b/iam/converter_native.go @@ -29,7 +29,7 @@ var actionToNativeOpMap = map[string][]string{ s3ActionGetBucketPolicyStatus: {native.MethodGetContainer}, s3ActionGetBucketTagging: {native.MethodGetContainer, native.MethodGetObject}, s3ActionGetBucketVersioning: {native.MethodGetContainer, native.MethodGetObject}, - s3ActionGetLifecycleConfiguration: { /*not implemented yet*/ }, + s3ActionGetLifecycleConfiguration: {native.MethodGetContainer, native.MethodGetObject, native.MethodHeadObject}, s3ActionGetObject: {native.MethodGetContainer, native.MethodGetObject, native.MethodHeadObject, native.MethodSearchObject, native.MethodRangeObject, native.MethodHashObject}, s3ActionGetObjectACL: {native.MethodGetContainer, native.MethodGetContainerEACL, native.MethodGetObject, native.MethodHeadObject}, s3ActionGetObjectAttributes: {native.MethodGetContainer, native.MethodGetObject, native.MethodHeadObject}, @@ -52,7 +52,7 @@ var actionToNativeOpMap = map[string][]string{ s3ActionPutBucketPolicy: {native.MethodGetContainer}, s3ActionPutBucketTagging: {native.MethodGetContainer, native.MethodGetObject, native.MethodPutObject}, s3ActionPutBucketVersioning: {native.MethodGetContainer, native.MethodGetObject, native.MethodPutObject}, - s3ActionPutLifecycleConfiguration: { /*not implemented yet*/ }, + s3ActionPutLifecycleConfiguration: {native.MethodGetContainer, native.MethodGetObject, native.MethodHeadObject, native.MethodPutObject, native.MethodDeleteObject}, s3ActionPutObject: {native.MethodGetContainer, native.MethodPutObject, native.MethodGetObject, native.MethodHeadObject, native.MethodRangeObject}, s3ActionPutObjectACL: {native.MethodGetContainer, native.MethodGetContainerEACL, native.MethodSetContainerEACL, native.MethodGetObject, native.MethodHeadObject}, s3ActionPutObjectLegalHold: {native.MethodGetContainer, native.MethodHeadObject, native.MethodGetObject, native.MethodPutObject},