Uploaded image for project: 'Couchbase Gateway'
  1. Couchbase Gateway
  2. CBG-2059

HTTP logs incorrectly redact document name if the database name contains it

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.1.0
    • 3.0.1, 3.0.0
    • SyncGateway
    • Security Level: Public
    • None
    • CBG Sprint 99
    • 5

    Description

      Create a database called "testificate", then request a document called "test" through the API. You would expect for the following to be logged:

      2022-05-04T15:45:25.760+01:00 [INF] Auth: #002: User <ud>sgadmin</ud> was successfully authorized as an admin
      2022-05-04T15:45:25.760+01:00 [INF] HTTP:  #002: PUT /testificate/<ud>test</ud> (as <ud>sgadmin</ud> as ADMIN)
      2022-05-04T15:45:25.763+01:00 [INF] HTTP+: #002:     --> 201   (1581.6 ms)

      But instead you get this - note that the actual document name is not wrapped in <ud> tags:

      2022-05-04T15:45:17.143+01:00 [INF] Auth: #001: User <ud>sgadmin</ud> was successfully authorized as an admin
      2022-05-04T15:45:17.143+01:00 [INF] HTTP:  #001: PUT /<ud>test</ud>ificate/test (as <ud>sgadmin</ud> as ADMIN)
      2022-05-04T15:45:17.156+01:00 [INF] HTTP+: #001:     --> 201   (14.1 ms)

      Attachments

        Activity

          People

            marks.polakovs Marks Polakovs (Inactive)
            marks.polakovs Marks Polakovs (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty