Implement startSession
command
#1554
Labels
code/feature
Some user-visible feature is not implemented yet
not ready
Issues that are not ready to be worked on; PRs that should skip CI
Blocked by #4166 (see the comment #4166 (comment)).
What should be done?
Implementation details
Identifiers
When referenced as
lsid
(e.g. in command requests), a session is represented by UUID.When the session is returned in the list of sessions (and also used in some commands), it's represented as an object like this:
Here
id
is a UUID (same aslsid
above) anduid
base64 string is a sha256 of a user@authenticationDatabase string (in this example,username@admin
).Authentication
If authentication is not enforced (even if a user was used to connect to MongoDB), uid will always be a sha256 of an empty string. Its base64 is
47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
.If authentication is enforced, each user will have their own uid (username + authenticationDatabase).
The logic & decisions
refreshSessions
(to be implemented in ImplementrefreshSessions
command #1553).endSessions
(to be implemented in ImplementendSessions
command #1549).killSessions
command #1552, ImplementkillAllSessions
command #1550, ImplementkillAllSessionsByPattern
command #1551).The text was updated successfully, but these errors were encountered: