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

Auth Caching policy + Batcher policy don't behave as expected

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.9.1 GA
    • 2.7.1, 2.8 GA
    • Gateway
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • +
    • Hide
      1. Make a successful API call that returns a 200 OK
      2. Scale down the 'apicast' and 'backend-listener' pods to 0 replicas
      3. Scale up the 'apicast' pod
      4. Test the same API request from step 1
      5. APIcast will try to authorize the request with backend-listener and return 403

      The same steps return 200 OK if the Batcher Policy is disabled in the chain.

      Policy chain:

      "policy_chain": [
                  {
                      "name": "caching",
                      "version": "builtin",
                      "configuration": {
                          "caching_type": "allow"
                      }
                  },
                  {
                      "name": "3scale_batcher",
                      "version": "builtin",
                      "configuration": {
                          "batch_report_seconds": 900,
                          "auths_ttl": 900
                      }
                  },
                  {
                      "name": "apicast",
                      "version": "builtin",
                      "configuration": {}
                  }
              ]
      
      Show
      Make a successful API call that returns a 200 OK Scale down the 'apicast' and 'backend-listener' pods to 0 replicas Scale up the 'apicast' pod Test the same API request from step 1 APIcast will try to authorize the request with backend-listener and return 403 The same steps return 200 OK if the Batcher Policy is disabled in the chain. Policy chain: "policy_chain" : [ { "name" : "caching" , "version" : "builtin" , "configuration" : { "caching_type" : "allow" } }, { "name" : "3scale_batcher" , "version" : "builtin" , "configuration" : { "batch_report_seconds" : 900, "auths_ttl" : 900 } }, { "name" : "apicast" , "version" : "builtin" , "configuration" : {} } ]

      When combined with the Batcher Policy, the Auth Caching Policy (in Allow mode) is not authorizing new requests if backend-listener is down.
       

              Unassigned Unassigned
              rhn-support-sillumin Samuele Illuminati (Inactive)
              Hugo Chrast Hugo Chrast
              Eloy Coto Eloy Coto
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: