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

APICast access logs the private API URL instead of public URL

    XMLWordPrintable

Details

    Description

      3scale APICast logs the private URL instead of public URL.
      Noticed this issue in APICast version 3.6.
      Following are my observations.

      • I have tested this issue in on-prem version 2.5 and confirm that APICast logs the public base URL
        [06/Oct/2020:03:07:22 +0000] api-3scale-apicast-staging.apps.tkonishiocp311.lab.upshift.rdu2.redhat.com:8080 10.130.0.1:40476 "GET /?user_key=d34fe194ed7e29af76bf8a428c01abb4 HTTP/1.1" 200 730 (0.138) 0.008
        
      • When I tested in on-prem version 2.6 and I have notice
         [06/Oct/2020:05:22:56 +0000] echo-api.3scale.net:8080 10.116.0.1:39956 "GET /?user_key=8961d766cd0c936d07dc4cefb72fc913 HTTP/1.1" 200 859 (1.051) 0
        
      • It is also interesting that when I put the Liquid debug policy before the APICast policy I can see the public URL getting logged in version 2.6
         [06/Oct/2020:05:56:49 +0000] api-3scale-apicast-staging.apps-crc.testing:8080 10.116.0.1:33054 "GET /?user_key=8961d766cd0c936d07dc4cefb72fc913 HTTP/1.1" 200 6622 (0.070) 0.017
        
      • My guess is APICast policy is doing something different in 3scale version 2.6(APICast version 3.6).
      • Also notice that only `host` variable gets changed to the private URL by the APICast policy. But `server_port` stays the same regardless.

      Please help us understand this behavior and possibly fix this error.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-support-cabeywar Chamal Abeywardhana
            Eloy Coto Eloy Coto
            Eloy Coto Eloy Coto
            Carlo Palmieri Carlo Palmieri
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: