I am thinking of the following structure of security rules + custom claims:
auth.token.buckets = ['bucket1', 'bucket2', 'bucket3']
And the security rule like:
allow read if storage/{$bucket} is in auth.token.buckets
Is that possible? And if so, what would be the correct syntax?