Closed ironfroggy closed 11 years ago
If quota are simply set on specific databases, and a user has a wildcard permission to create databases, that doesn't help much.
This limits the amount of space a database can be increased to. But, to be complete, we need to allow a new users to create single database and that database gain the quota by default. How to determine the database name? For randomized access tokens should the database permission be likewise randomized?
Create new credentials, they come with a single CreateDatabase permission on a randomized database name.
Create database, creating credentials auto-granted ReadDatabae and WriteDatabae permissions, DatabaseQuota set on the new database.
Each database should have an optional Quota enforced.
The database cannot receive updates which would push it over the quota size.
How would this work for granting access to new databases?