Hi all!

Is it possible to have Spaces checking for authentication and authorization?

Let’s say I have bunch of restricted files on my Spaces and different users will have access to different files.

I could solve this by having a Droplet service that connects to Spaces directly, which my Droplet service would serve as authentication/authorization.

What if I don’t want this middleware droplet server? In AWS it seems like we can do some serverless solution like using Lambda.

Or am I totally misunderstanding the process?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hello @pikachu

In Spaces, you can manage access to files using permissions and generating quick access links with expiry. Also, you can manage the Spaces using Spaces access Keys.

Here are the documentation links for more context:
https://www.digitalocean.com/docs/spaces/how-to/set-file-permissions/
https://www.digitalocean.com/docs/spaces/how-to/manage-access/

We don’t have any serverless solutions such as Lambda at this time.

Cheers,

Dikshith

  • Thank you for your response.

    But this seems like not an appropriate solution for my case.

    Everyone with the generated key would have access to that file.

    I wish to restrict certain users to certain files.

    Think of like a online course website, where users can purchase lessons.

    Or am I misunderstanding this concept?

Submit an Answer