Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-8150

Hide sensitive authorization information from the APIcast INFO logs

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Can't Do
    • Major
    • None
    • 2.11.1 GA
    • Gateway
    • False
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • 0
    • 0% 0%

    Description

      Currently the INFO log level reveals sensitive credentials even if they are passed in the request as headers, for example:

      [info] 29#29: *149565 [lua] proxy.lua:82: output_debug_headers(): usage: usage%5Btest%5D=1 credentials: app_key=abcdefg123456&app_id=a1b2d3, client: 10.10.10.10, server: _, request: "GET /some/path HTTP/1.1", host: "some.host"
      
      [info] 29#29: *149565 [lua] backend_client.lua:133: call_backend_transaction(): backend client uri: https://backend.test/transactions/authrep.xml?service_id=4&service_token=abcdefg&usage%5Btest%5D=1&app_key=abcdefghi1234567&app_id=0123abcd ok: true status: 200 body:  error: nil, client: 10.10.10.10, server: _, request: "GET /some/path HTTP/1.1", host: "some.host"
      

      The request is to only show such information when the log level is configured to debug

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rhn-support-sillumin Samuele Illuminati (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: