Current Situation:
We have API using many different backend implementations and basically we never know which response headers are returned. We need to control what is returned to the API consumer. Currently we manage response headers within each proxy implementation using standard header manipulation techniques available.
This approach is cumbersome, difficult to maintain, and requires significant effort to manage changes.
Problem Statement:
We need a robust, maintainable, and proxy-independent solution for controlling and managing response headers returned by our APIs. Preferably something provided by APIGee out-of-the-box.
Our current search for out-of-the-box solutions within APIGee documentation has been unsuccessful.
Current Solution:
As an solution, we’ve implemented this in the post-proxy shared flow hook, utilizing a Key-Value Map (KVM) containing a whitelist of allowed response headers. A JavaScript iterates through the headers and removes any not present in the whitelist. This is working and fulfills our functional requirements. But it’s still something we needed to develop ourself.
Question:
Think this is a basic common requirement? Why does APIGee not provide this functionality?
How have other organizations addressed this?