pact-foundation / roadmap

Developer Relations @ Pact - Your map to the Pact landscape for all-comers (maintainers, contributors, users, newbies)
https://pact.io/
MIT License
41 stars 7 forks source link

Webhook: basic auth username/password for generic account #71

Open canny[bot] opened 4 months ago

canny[bot] commented 4 months ago

I have a generic account/user setup in CI system (Jenkins) for the webhooks to trigger provider verification builds whenever a new pact is published (event - contract_requiring_verification_published). Users (provider teams) are having to provide the same basic auth username/password every time they create a new webhook. And when ever the password for the generic account changes, the users needs to update all of their webhooks with new password. For setup like this(which I think is quite common?), would it be good if we have an option to set up the basic auth username/password globally (in a similar fashion to how pact broker's basic auth username and password are setup) and add it to the webhooks runtime dynamically. This way, whenever the password for CI generic account changes, we have to update it in just one place rather than in every webhook.

https://pact.canny.io/admin/board/feature-requests/p/webhook-basic-auth-usernamepassword-for-generic-account

canny[bot] commented 4 months ago

This issue has been linked to a Canny post: Webhook: basic auth username/password for generic account :tada:

YOU54F commented 4 months ago

Matt Fellows - December 3, 2021

Hi Praveen, yes I do think it's a common scenario (which is why we added it to Pactflow). I'd suggest automating your webhook creation via the CLI, API or https://github.com/pactflow/terraform-provider-pact/ provider, and this way you can update them more reliably using IaC instead of manually.

YOU54F commented 4 months ago

Praveen Erode Mohanasundaram - December 4, 2021

Matt Fellows: Thanks for the suggestions Matt. I am currently using CLI. Terraform option looks very interesting - I will explore it bit more. Thanks again.

1 like