Passing in custom HTTP client for signing Elasticsearch requests

We’d like to be able to pass in a custom HTTP Client that gets used to sign Elasticsearch requests. Ideally we’d be able to pass it in as an optional parameter to temporal.NewServer() similar to how temporal.WithAuthorizer works.

Currently if you want to sign requests, you can specify values for AWSStaticCredentialProvider in the config, but that doesn’t give us the level of control we need because our AWS server-to-server secrets expire after a few hours.

Basically we want to pass in our own implementation of the client that gets used here:


Yes, this is definitely possible. I am creating task for it.