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