https://pulumi.com logo
#package-authoring
Title
# package-authoring
a

acoustic-tiger-77630

04/01/2024, 10:27 PM
Hi All. I am wondering if there's a way to add custom User-Agent header to our bridged Pulumi Provider. code. The Terraform provider which are bridging does have that information in the provider.go file, but it does not seem to have a easy way to include this information as part of the Pulumi provider itself. Any guidance is appreciated. Thanks
a

ancient-policeman-24615

04/08/2024, 12:06 PM
Hi William. If your still looking for help here, could you post a link to the provider repo? Neither pulumi nor terraform have a concept of a User-Agent, so it’s entirely up to how the provider is written.
a

ancient-policeman-24615

04/16/2024, 11:31 AM
For
pulumi-zia
, there is no way to set the User-Agent header, since it is hard-coded into the upstream provider: https://github.com/zscaler/terraform-provider-zia/blob/d4efcd3b5510e818831b705363f63b40f3fb5747/zia/provider.go#L172 likewise for `pulumi-zpa`: https://github.com/zscaler/terraform-provider-zpa/blob/565294364131b44516e236393772087283c85d02/zpa/provider.go#L195 If you want a pulumi specific User-Agent, the upstream providers will need to be parameterized by the user agent.