Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow users to BYO S3-compatible storage backend #27

Open
inian opened this issue Jun 12, 2021 · 14 comments
Open

Allow users to BYO S3-compatible storage backend #27

inian opened this issue Jun 12, 2021 · 14 comments
Labels
enhancement New feature or request

Comments

@inian
Copy link
Member

inian commented Jun 12, 2021

We should make it easy for users to export their objects. Also useful for backups etc. We can probably use the S3 replication functionality to do this.

Relevant discussion supabase/supabase#1930

@inian inian added bug Something isn't working enhancement New feature or request and removed bug Something isn't working labels Jun 12, 2021
@d-mok
Copy link

d-mok commented Aug 2, 2021

Is there any update on this? The lack of backup-from-supabase-storage function is stopping me to use supabase storage.

@inian
Copy link
Member Author

inian commented Aug 2, 2021

Hi @d-mok, we couldn't find an easy way of doing this with the S3 replication functionality above since there there is a limit of 1,000 replication policies per bucket which doesn't work at our scale.

If you have any ideas on how to go about implementing this in a multi-tenant way, let me know!

@ornithophile
Copy link

@inian Hi, are there any other plans for syncing files out of Supabase Storage?

@thebengeu thebengeu self-assigned this Aug 4, 2021
@d-mok
Copy link

d-mok commented Aug 9, 2021

@inian
Then, may be the direction to go is to allow users to provide their own S3 bucket? Like, a bring-your-own-bucket approach?

@ornithophile
Copy link

ornithophile commented Aug 9, 2021 via email

@thebengeu
Copy link
Member

What I'm thinking is to have a new replication section in the UI where you can enter an access key ID and secret access key for an AWS IAM user, and a bucket, and then we'll regularly replicate to that bucket. How does that sound?

@d-mok
Copy link

d-mok commented Sep 8, 2021

What I'm thinking is to have a new replication section in the UI where you can enter an access key ID and secret access key for an AWS IAM user, and a bucket, and then we'll regularly replicate to that bucket. How does that sound?

So we (users) provide a S3 bucket, and supabase regularly backup everything to that bucket? That sounds good enough.
But I think a better option is to allow user to bring-their-own-bucket. In this way, I can interact with my bucket both through supabase or via some other s3 client. It would be best if, for example, when I add a file to my bucket through another client, supabase can also register the change. This is consistent with the principle how supabase is dealing with Postgresql: we can use the postgresql database any way we want, and supabase will work accordingly.

@tehnorm
Copy link

tehnorm commented Sep 8, 2021

I'd mirror what @d-mok is expressing. Bring your own S3 bucket is very useful for cases that data governance is a consideration as well. Usually for larger organizations have these challenges. It seems lately many SaaS offerings do provide a bring-your-own-bucket model.

@grschafer
Copy link

Another vote in favor of bring-your-own-bucket: I think it would allow us to manage data transfer costs better (e.g. keeping transfers within AWS infrastructure in the same region and AZ) which is important for data/processing-heavy applications.

I opened a separate discussion about same-region transfer costs (supabase/supabase#3403) to not distract from the replication focus of this issue, but I wanted to leave a comment here and link the two ideas, because bring-your-own-bucket seems to be a good solution for both.

@darora darora changed the title Replicate underlying objects to a user-provided S3 bucket Allow users to BYO S3-compatible storage backend Oct 12, 2021
@the-kro
Copy link

the-kro commented Dec 14, 2021

I’d also like to see BYOB!

@rlee1990
Copy link

Any update on this?

@narve
Copy link

narve commented Oct 16, 2023

Yes, status please? Is it coming (soon), or should we find other workarounds?

@bkuermayr
Copy link

would also love to see this

@eqoram
Copy link

eqoram commented May 8, 2024

Any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests