Skip to content

Add support for impersonation #599

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Oct 13, 2021
Merged

Conversation

robsdedude
Copy link
Member

Waiting for neo4j-drivers/testkit#266 to be merged. Run TestKit tests again afterwards.

This is an optimization saving a few bytes over the wire.
When there is an explicit database configured for a session, there is no need
to send the impersonated user along with the `ROUTE` request. The only
difference this would make is that insufficient permissions would be noticed
when fetching the RT instead of when performing any actual action on the
session. Since routing is part of the global driver/pool operations and not
coupled to sessions, doing it this way seems like the logical conclusion.
Previously, the driver would prefer the initial router for fetching a new RT
whenever the current RT had no writers (left). However, if should check what
the RT looked like, when it was received.
Copy link
Contributor

@bigmontz bigmontz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🦆

It looks good, but I am missing unit tests for the implemented code. For instance, the new methods added to Bolt4x4 does not have any unit test at all.

@robsdedude robsdedude merged commit edb07f7 into neo4j:4.4 Oct 13, 2021
@robsdedude robsdedude deleted the impersonation branch February 9, 2022 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants