Commit ea472067 authored by Petar Hristov's avatar Petar Hristov 💬
Browse files

Merge branch 'Hotfix/1702-fixReadOnly' into 'master'

Hotfix/1702 fix read only

See merge request !21
parents e3d942fd d052e3d5
......@@ -213,7 +213,7 @@ namespace Coscine.ResourceTypeWaterbutlerRdsS3
BucketName = id,
Policy = policy
};
var amazonConfig = new AmazonS3Config
{
ServiceURL = options["endpoint"],
......@@ -365,7 +365,13 @@ namespace Coscine.ResourceTypeWaterbutlerRdsS3
""Effect"": ""Allow"",
""Resource"": [""{bucketname}/*""],
""Principal"": [""{writeKey}"", ""{accessKey}"",""{accessKeyRead}""]
}}
}},
{{
""Action"": [""s3:PutObject"", ""s3:DeleteObject"", ""s3:DeleteObjectVersion""],
""Effect"": ""Deny"",
""Resource"": [""{bucketname}/*""],
""Principal"": [""{writeKey}"", ""{accessKey}"",""{accessKeyRead}""]
}},
]
}}";
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment