Uploaded image for project: 'apiman (API Management)'
  1. apiman (API Management)
  2. APIMAN-1296

The API Key policy plugin (apikey-policy) expects the requestHeader property to be all lowercase as of 1.3.1

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.4.x, 1.4.0.Final
    • 1.3.1.Final
    • Plugin
    • None

    Description

      Previously (using 1.3.0) you could define the configuration for the API Key policy plugin like so:

                  ...
                  "policies": [{
                     "policyJsonConfig": "{ \"requestHeader\" : \"X-API-Key\" }",
                     "policyImpl" : "plugin:io.apiman.plugins:apiman-plugins-apikey-policy:1.3.0.Final:war/io.apiman.plugins.apikey_policy.ApiKeyPolicy"
                  }]
      

      however, since upgrading to 1.3.1, you now have to specify the requestHeader value in lowercase for the header to be propagated to the backend service.

                  "policies": [{
                     "policyJsonConfig": "{ \"requestHeader\" : \"x-api-key\" }",
                     "policyImpl" : "plugin:io.apiman.plugins:apiman-plugins-apikey-policy:1.3.1.Final:war/io.apiman.plugins.apikey_policy.ApiKeyPolicy"
                  }]
      

      Assuming this is not a bug, there should be some migration documentation around this (unless there is and I've missed it).

      Attachments

        Activity

          People

            msavy_jira Marc Savy (Inactive)
            donovan.muller_jira Donovan Muller (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: