Potentially misleading error message: "requested user blah_blah is not authorized for tenant {1}" #96174
Labels
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
O-community
Originated from the community
X-blathers-untriaged
blathers was unable to find an owner
Describe the problem
When attempting to connect to the DB, using ssl certs (as well as a username/password), the error message seems to emphasize "tenant {1}" while the error was really triggered by a mismatch between the username and the user for whom the ssl certs were created. We were initially puzzled until our user provided their connection string and then we were able to determine the root cause of their connection issue.
To Reproduce
Expected behavior
We expect the connection to fail, but with an error message pointing to the fact that the SSL cert doesn't match the username.
Environment:
Additional context
The impact was that we initially explored whether this was due to the new(er) multi-tenant aspect of CockroachDB, so it led to several iterations of problem solving exchanges.
Jira issue: CRDB-23983
The text was updated successfully, but these errors were encountered: