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

Details

    • Bug
    • Resolution: Done
    • 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" : {} } ]

    Description

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: