Commit Graph

11 Commits

Author SHA1 Message Date
Izabela Gomes 53f04b373c
Make minimum TLS version configurable for webhooks (#2721)
* make minimum tls version configurable

* change default min TLS version to 1.3

* change opencensus tls min version to 1.3

* Update env var name

Co-authored-by: Dave Protasowski <dprotaso@gmail.com>

* use webhook options to configure min tls version

* add unit tests for webhook tlsMinVersion option

* Update webhook/env.go

Co-authored-by: Dave Protasowski <dprotaso@gmail.com>

* address feeback

---------

Co-authored-by: Dave Protasowski <dprotaso@gmail.com>
2023-04-14 15:45:51 +00:00
kmahapatra 511b3941d4
potential fix for flakey tlsBackoff (#2702) 2023-03-10 20:46:25 +00:00
Evan Anderson ea3c8cb8c9
Fix timeout test on darwin and log dial destination on timeout. (#2510)
* Fix timeout test on darwin and log dial destination on timeout.

* Fix both linux and darwin tests. \o/
2022-05-03 15:26:05 +00:00
Matt Moore 6ec9c1a62f
Fix linting (#2506) 2022-05-02 01:49:56 +00:00
Chris Suszynski 45c37c266b
🐛 `TestDialWithBackoff` work without special environment (#2402)
* Making TestDialWithBackoff work without special environment

* Use listen to force a connection timeout (#1)

* Don't parallelize tests to avoid free port conflicts

Co-authored-by: Evan Anderson <evan.k.anderson@gmail.com>
2022-04-25 21:57:54 +00:00
Kenjiro Nakayama ca82d2bbb2
Add `NewProxyAutoTLSTransport` and `DialTLSWithBackOff` to support TLS proxy (#2479)
* Add `NewProxyAutoTLSTransport` and `DialTLSWithBackOff` to support TLS proxy

Part of: https://github.com/knative/serving/issues/12503
PoC: https://github.com/knative/serving/pull/12815

This patch `NewProxyAutoTLSTransport` which is `NewProxyAutoTransport + TLS config.
Current proxy does not support TLS but it needs for https://github.com/knative/serving/issues/12503.

`DialTLSWithBackOff` is also `DialWithBackOff` + TLS config. It needs
`newH2Transport` which handles HTTP2 with TLS.

* Fix lint

* Fix review comments
2022-04-11 05:32:20 +00:00
Victor Agababov f21f66204a
Add a method to set possible maxidle params on the transport. (#1557)
This method is not used anywhere outside pkg right now, so it's a safe change.
This will permit activator to set desired maxidle params and cache more connection for better performance
2020-07-24 14:10:57 -07:00
Nghia Tran 2fee85652e
Add elapsed wait time in timeout message. (#1274)
* Add elapsed wait time in timeout message.

* Update network/transports_test.go

Co-authored-by: Victor Agababov <vagababov@gmail.com>

* Update network/transports.go

Co-authored-by: Victor Agababov <vagababov@gmail.com>

Co-authored-by: Victor Agababov <vagababov@gmail.com>
2020-05-01 18:46:43 -07:00
Nghia Tran 3d369cddd5
Expose the `dialWithBackOff` util. (#1267) 2020-04-30 12:01:42 -07:00
Markus Thömmes 1b903ad8cc
Fix malformed license headers. (#1258) 2020-04-29 08:38:42 -07:00
Victor Agababov 37bd04dc3e Move generic packages from serving to pkg. (#927)
* Move generic packages from serving to pkg.

I was asked to move this to do some re-use in Eventing.

/cc @chizh
/assign mattmoor @tcnghia

* fix the compile error
2019-12-06 17:57:40 -08:00