Commit Graph

4 Commits

Author SHA1 Message Date
Niki Dokovski c77efe2300
feat(requests): add dynamic CA certificate reloading
Add DynamicCALoader and DynamicTLSTransport for hot-reloadable CA
certificates without requiring application restart.

- DynamicCALoader: watches CA files via fsnotify and reloads on change,
  supports Kubernetes ConfigMap/Secret symlink replacement pattern
- DynamicTLSTransport: wraps http.Transport with dynamic CA verification
  using VerifyPeerCertificate callback
- Add atomic transport proxy to http.go for runtime transport swapping

Signed-off-by: Niki Dokovski <nickytd@gmail.com>
2026-02-27 15:54:56 +01:00
tuunit bae168f06a
better handling of default transport modification 2024-10-06 21:43:38 +02:00
tuunit 8fd7312a90
fix: self signed certificate handling 2024-10-05 17:29:37 +02:00
Jacob Middag 3045392c17
feat: Replace default Go user-agent with oauth2-proxy and version (#2570)
* feat: Replace default Go user-agent with oauth2-proxy and version

* Add to CHANGELOG

* Make userAgentTransport configurable and composable

* Use correct naming convention for DefaultHTTPClient

* Move version to own package and use named arguments

* Update version path in Makefile

* Fix import path in Makefile

* Change importpath in dist.sh

* Minor style issues
2024-07-14 21:09:17 +01:00