Skip to content
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

Fix cb uri hostname for replicas using user role. #162

Merged
merged 1 commit into from
May 9, 2024

Commits on May 8, 2024

  1. Fix cb uri hostname for replicas using user role.

    It was reported that using `cb uri` to retrieve credentials for a `user`
    role on a replica was returning the hostname of the `primary` instead of
    the target replica.
    
    This was because it's possible that the` user` role does not exist yet
    and therefore would need to first be created on the primary. So, to
    ensure that it is, we always attempt to create it on the primary and
    then retrieve it for the replica. Previously, we were only creating it
    and that was resulting in the returned credentials to be associated with
    the primary. So, we've now eliminated that branch in the code so that it
    will always retrieve this information from the correct target.
    abrightwell committed May 8, 2024
    Configuration menu
    Copy the full SHA
    1e6e861 View commit details
    Browse the repository at this point in the history