4 Commits

Author SHA1 Message Date
Mariano Cano
d4fd467e8a Memory improvements
This commit replaces the client in provisioners and webhooks with an
interface. Then it implements the interface using the new poolhttp
package. This package implements the HTTPClient interface but it is
backed by a sync.Pool, this improves memory, allowing the GC to clean
more memory. It also removes the timer in the keystore to avoid
having extra goroutines if a provisioner goes away. This commit avoids
creating the templates func multiple times, reducing some memory in the
heap.
2025-07-01 13:53:52 -07:00
Panagiotis Siatras
809c7023c9 Transport wrappers (#2103)
* internal/httptransport: implemented Wrapper & NoopWrapper

* added transport wrappers

* addressed review comments
2024-12-12 09:51:36 -08:00
Mariano Cano
6b872e8806 Do not fail creating the provisioner HTTP client
This commit avoids an error starting the CA if the `http.DefaultTransport`
is not an `*http.Transport`. If the DefaultTransport is overwritten, the
newHTTPClient method will return a simple *http.Client. With an
*http.Transport, it will return a client that trusts the system
certificate pool and the CA roots.
2024-10-15 18:08:58 -07:00
Mariano Cano
a01a2fbba1 Allow to use private IdPs with the OIDC provisioner
This commit allows using the OIDC provisioner with private identity
providers using a certificate from step-ca.

Fixes #1909
2024-07-22 19:01:37 -07:00