Use valid key to check error string in speculative-auth-replset

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Security
    • ALL
    • Security 2024-09-16
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      When checking `if (entry.id === kAuthenticationFailedLogId)`, we are incorrectly trying to access `attr.error.code` of the entry object. However, the error field is a string, not an object with a code key.

      Example of a log entry:

      {"attr": \{"error": "AuthenticationAbandoned: Authentication session abandoned, client has likely disconnected"}

      We should check whether the error contains specific substring such as "AuthenticationAbandoned".

            Assignee:
            Adrian Gonzalez Montemayor
            Reporter:
            Adrian Gonzalez Montemayor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: