matrix-org / synapse-s3-storage-provider

Synapse storage provider to fetch and store media in Amazon S3
Apache License 2.0
132 stars 36 forks source link

Remove strict check over Storage Tiers #92

Open Aeris1One opened 1 year ago

Aeris1One commented 1 year ago

There's a strict check over which storage tiers entries are allowed. This can be problematic when providers have their own storage tiers (as an example, Scaleway provides the "ONEZONE_IA" storage tier for single-AZ data)

Here's the related code : https://github.com/matrix-org/synapse-s3-storage-provider/blob/6f8b3821aa5f99a53fc055d6feec343a0fc80d68/s3_storage_provider.py#L44 https://github.com/matrix-org/synapse-s3-storage-provider/blob/6f8b3821aa5f99a53fc055d6feec343a0fc80d68/s3_storage_provider.py#L163