Enforce client metadata limit of 512 on non-internal clients

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Security 2023-04-17
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The documented limit for client metadata is 512 bytes. Due to SERVER-26109, this is only enforced on the mongos. Due to SERVER-26109, the limit was raised to 1024 on mongod. The lower limit of 512 bytes should be enforce on mongod for non-internal clients. The length can be verified after parsing is done in ClientMetadata::tryFinalize.

            Assignee:
            Mark Benvenuto
            Reporter:
            Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: