You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "nickva (via GitHub)" <gi...@apache.org> on 2024/09/05 15:17:26 UTC
Re: [I] `[admins]` config not hashed and updated in local.ini if any config files exist in local.d [couchdb]
nickva commented on issue #5174:
URL: https://github.com/apache/couchdb/issues/5174#issuecomment-2331989136
`.ini` files are read in a hierarchy. The later ones override the early ones. It goes something like `default.ini`, `default.d/*.ini`, `local.ini` and `local.d/*.ini`. The `*.ini` ones are sorted, so typically there you'd want to add a numeric prefix indicating the order it should be `local.d/10-admins.ini` vs `local.d/50-admins.ini`.
Config values are written to the last file in the chain, so make sure to put your admins in the last file in the chain, say `local.d/80-mysettings.ini` for instance. Another approach is to pre-hash the password with an external tool. This is a bit more advanced but then it wouldn't rely on writing to the last `.ini` file rule.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org