Hi All. I am wondering if there's a way to add cus...
# package-authoring
a
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
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
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.
a
Hi @ancient-policeman-24615 Thank you and apologies for the delay to respond. I was OOO the last few days. When you say "parameterized", can you provide an example of how this could be achieved?
l
@acoustic-tiger-77630 I sent you an idea around that via private message some days ago. Pinged you on that thread again.