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

Add db field to connectionStatus command response #4166

Open
chilagrow opened this issue Mar 12, 2024 · 1 comment
Open

Add db field to connectionStatus command response #4166

chilagrow opened this issue Mar 12, 2024 · 1 comment
Assignees
Labels
code/chore Code maintenance improvements not ready Issues that are not ready to be worked on; PRs that should skip CI

Comments

@chilagrow
Copy link
Contributor

chilagrow commented Mar 12, 2024

What should be done?

https://www.mongodb.com/docs/manual/reference/command/connectionStatus/#mongodb-data-connectionStatus.authinfo.authenticatedUserRoles-n-.db
FerretDB does not return db field in authenticatedUsers.

Where?

https://github.com/FerretDB/FerretDB/blob/main/internal/handler/msg_connectionstatus.go

Definition of Done

  • handler updated;
  • all backends updated;
  • unit tests added/updated;
  • integration/compatibility tests added/updated;
  • spot refactorings done;
  • user documentation updated or an issue to create documentation created;
  • something else?
@chilagrow chilagrow added code/chore Code maintenance improvements not ready Issues that are not ready to be worked on; PRs that should skip CI labels Mar 12, 2024
@rumyantseva
Copy link
Member

It's a blocker for #1554.

Particularly, this check is needed: 910c351#diff-9c4603e660b20ed08f38491821f20d650d4a94d46ceb3f8ffe134549d62fc49cL171 and the info about db need to be stored in ConnInfo, so then it will be possible to use it to generate sessions hash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code/chore Code maintenance improvements not ready Issues that are not ready to be worked on; PRs that should skip CI
Projects
None yet
Development

No branches or pull requests

3 participants