Version 0.2.1

Changes:
  Fixed bug with ACL and Policy
This commit is contained in:
Danil Solovyov 2023-07-03 21:58:39 +05:00
parent a834c2059a
commit fb7e922dcb

@ -74,10 +74,8 @@ func (r *VerificationRepository) Init(ctx context.Context) error {
} }
policySharingBucket := policy.Statement{ policySharingBucket := policy.Statement{
Actions: set.CreateStringSet("s3:ListBucket", "s3:GetObject"), Actions: set.CreateStringSet("s3:GetObject"),
Conditions: policy.ConditionMap{ Conditions: nil,
"StringEquals": policy.ConditionKeyMap{"s3:prefix": set.CreateStringSet("*/*")},
},
Effect: "Allow", Effect: "Allow",
Principal: policy.User{AWS: set.CreateStringSet("*")}, Principal: policy.User{AWS: set.CreateStringSet("*")},
Resources: set.CreateStringSet(fmt.Sprintf("arn:aws:s3:::%s/*", VerificationBucket), Resources: set.CreateStringSet(fmt.Sprintf("arn:aws:s3:::%s/*", VerificationBucket),