Commit d052e3d5 authored by Theresia Rupprecht's avatar Theresia Rupprecht Committed by Petar Hristov
Browse files

Fix: readOnly (coscine/issues#1716)

parent e3d942fd
......@@ -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