pact-foundation / pact-reference

Reference implementations for the pact specifications
https://pact.io
MIT License
91 stars 46 forks source link

Requests for pact gets blocked by some firewalls due to not providing a user-agent header #236

Closed andrisak closed 1 year ago

andrisak commented 1 year ago

When self-hosting a Pact Broker in, for example AWS or Azure, it is common to have some kind of web application firewall (WAF) in place. One use case for WAFs that seems to be fairly common, is to use the User-Agent HTTP header for filtering of requests (example from AWS docs).

The pact_verifier/pact_verifier_cli on master does currently not set a User-Agent which means that requests get blocked before they reach the Pact Broker.

This also affect the Pact libraries in other languages using this library.