Question

Is it advisable to access Space directly from mobile app?

Posted April 1, 2021 209 views
DigitalOcean Spaces

Currently, we have note taking app for Android.

We would like to offer individual storage for users, so that they can store their notes, pictures, drawing, voice recordings, etc to cloud.

I am interested in Space offered by Digital Ocean.

However, I have some questions regarding the detailed implementation.

  1. Is it advisable to have mobile app to perform bucket creation, batch files uploading directly to Space? If we plan to have mobile app to perform direct batch files uploading to Space, does that mean we need to embed Space’s access key and secret key into mobile app?

  2. If it is not advisable to have Space’s access key and secret key embed into mobile app (Due to security concern), does that mean we need to have a web app running in droplet? Web app in droplet will responsible to perform authentication on mobile app’s request. Web app will be the sole contact point to talk to Space. That’s mean, mobile app needs to first send batch files to web app, only then web app will transfer the batch files to Space.

Do you have a sample, on how mobile app + Space architecture should look like?

Thanks.

Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!