SERVER-132430ClosedFixed

Bound memory usage in $_internalKeyStringValue

Currently, {$_internalKeyStringValue} has no input size validation or memory limits and is available to the public, despite the {_internal} prefix. We cannot restrict access beyond setting `apiStrict` to false (which should be done in a follow-up ticket), so we must add memory limits. Add a new parameter internalQueryKeyStringValueMaxCollationBytes settable at startup and runtime that limits how much memory _internalKeyStringValue can use.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc08.3.169.0.78.0.377.0.489.1.0-rc1026
Components
Server components related to this issue

No components specified.

Labels
Tags and classification
bkp