This PR add the ability to add headers to the XSOAR requests from live environment variables.
This allows the requests to the XSOAR servers to pass through Authenticated Proxies.
The reason we use environment variables is that authentication tokens are short lived and might need be different between an apply and plan depending on how far apart they are in time.
Our use case was the google IAP, but we implemented this in a general way in order to be able to commit back upstream.
Code example:
This PR add the ability to add headers to the XSOAR requests from live environment variables. This allows the requests to the XSOAR servers to pass through Authenticated Proxies. The reason we use environment variables is that authentication tokens are short lived and might need be different between an apply and plan depending on how far apart they are in time. Our use case was the google IAP, but we implemented this in a general way in order to be able to commit back upstream. Code example: