ppkarwasz commented on PR #3322:
URL: https://github.com/apache/logging-log4j2/pull/3322#issuecomment-2563363535

   I looked into the [Spring Boot configuration properties for 
MongoDB](https://docs.spring.io/spring-boot/appendix/application-properties/index.html#application-properties.data.spring.data.mongodb.additional-hosts):
   
   - Spring Boot offers a set of properties (`username`, `password`, `host`, 
`port`, `additional-hosts`) that are **mutually exclusive** with `uri`. We 
should certainly not introduce those.
   - The `database` (and `authentication-database) property can however be used 
**together** with `uri`.
   
   It seems that Spring Boot interprets the `/defaultauthdb` part as "default 
database to use for authentication and data", while it allows users to specify 
a different database for each one of these functionalities. We should probably 
offer a similar configuration option. As documented in [Authentication 
Database](https://www.mongodb.com/docs/manual/core/security-users/#std-label-authentication-database),
 you can create a user in database `foo` and allow the user to access database 
`bar`, so we need at least (and at most :wink:) an additional configuration 
knob for the database to use (or authentication database to use).


-- 
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-unsubscr...@logging.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to