-
Bug
-
Resolution: Done
-
Major
-
1.3.1.Final
-
None
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).