Particularly, I would like to limit the ability of the API key to delete files on spaces.
Since the API key has administrative access on Spaces, it is difficult to convince developers to bundle it into native clients like mobile apps.
Other storage frameworks (like GCP and AWS) can limit the actions allowed to be performed by an API key, or better yet limit the domain or the app package that the requests are coming from.
My current solution is to proxy requests from clients and perform the actual API calls with the key on the proxy server. However, since my project allows users to upload large files onto Spaces, the proxy configuration will incur double the amount of bandwidth charges.
Are there any ways to limit the operations performed by a Spaces API key?
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.