Spring data Neo4j 6.0 and Multi-Tenancy

Hello!

I am currently working on a project that uses Spring Data Neo4j, and I am working on migrating from version 5 to the latest version 6.

In the previous version, we used a particular approach with spring data where each tenant had a credential set unique to them. Apparently, it is important for security concerns that this behaviour is conserved with the migration to Spring Data Neo4j 6, and I am wondering if this is possible in any way, or if this is planned to be supported.

I saw that there is the DatabaseSelectionProvider that exists, but I think I can only specify a database name and not a credential set.

Any help on this?

Thank you!

Hi, I am currently struggling with the same issue, trying to switch the exact same repository between different tenant contexts.

I have multiple databases running on the same server instance and they are dynamically created per tenant with different set of credentials.

Does anyone know if this is possible? I only found the same information when we can switch between different databases using DatabaseSelectionProvider, but it means that we have one user with access to all of them, which is not my case.