janl opened a new issue #876: Make peruser database prefix configurable URL: https://github.com/apache/couchdb/issues/876 <!--- Provide a general summary of the issue in the Title above --> At the moment, peruser-managed databases are prefixed with `userdb-` and that?s hardcoded. Users might want to use a different prefix, so we could make this configurable. The only downside is that if people change the prefix after they have user dbs created by peruser, all existing ones wouldn?t get deleted on user-delete, because of the prefix mismatch. I think that?s a good enough trade-off, if explained in default.ini/docs. I suggest an addition like this to the peruser config section: ```diff [couch_peruser] ; If enabled, couch_peruser ensures that a private per-user database ; exists for each document in _users. These databases are writable only ; by the corresponding user. Databases are in the following form: ; userdb-{hex encoded username} enable = false ; If set to true and a user is deleted, the respective database gets ; deleted as well. delete_dbs = false ; prefix for user databases. If you change this after user dbs have been ; created, the existing databases won?t get deleted if the associated user ; gets deleted because of the then prefix mismatch. database_prefix = userdb- ``` ### Implementation notes couch_peruser will have to validate the prefix on module start to not include any characters we do not allow in database names. It will also have to make sure to handle special URL characters (like `/` correctly). ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
With regards, Apache Git Services
