As mentioned here, in the specific scenario of having Groups with private files, it looks like there is really no "good" solution to use Storage Security Rules without using User Claims. There are some workarounds in that thread though, but aren't good solutions for my case.
So I was wondering, if I add an UUID as post-fix to the file paths (which I currently do for uniqueness, e.g. groups/{groupId}/images/{imageId}/imageName-{UUID}.png
), could it work as a way of security through obscurity? (it would be very hard to brute-guess, making sort of a "private" file).
I know it's not ideal, but at least it's something for the time being until Firebase implements a better solution for this scenario, and be able to sleep better at night :P
My idea is to set something like:
list
: don't allow (to give "obscurity")get
,create
: only auth usersupdate
,delete
: don't allow (only with the Admin SDK)
Does my idea make sense? Or am I missing something?