feat: use knative.dev/pkg/tls for queue-proxy TLS configuration#16425
feat: use knative.dev/pkg/tls for queue-proxy TLS configuration#16425knative-prow[bot] merged 1 commit intoknative:mainfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #16425 +/- ##
==========================================
+ Coverage 80.21% 80.27% +0.05%
==========================================
Files 217 217
Lines 13511 13528 +17
==========================================
+ Hits 10838 10859 +21
+ Misses 2307 2302 -5
- Partials 366 367 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
twoGiants
left a comment
There was a problem hiding this comment.
Very clean, great job, thank you! 😺 👍
/approve
/lgtm
|
/retest |
|
/hold |
|
/hold cancel |
Replace the hardcoded tls.VersionTLS13 in queue-proxy's TLS server with the shared knative.dev/pkg/tls package, allowing TLS settings to be configured via QUEUE_PROXY_TLS_MIN_VERSION, QUEUE_PROXY_TLS_MAX_VERSION, QUEUE_PROXY_TLS_CIPHER_SUITES, and QUEUE_PROXY_TLS_CURVE_PREFERENCES environment variables. The default remains TLS 1.3 when no env var is set. Add four new keys to the config-deployment ConfigMap (queue-sidecar-tls-min-version, queue-sidecar-tls-max-version, queue-sidecar-tls-cipher-suites, queue-sidecar-tls-curve-preferences) and forward them as QUEUE_PROXY_TLS_* environment variables in makeQueueContainer. This allows cluster admins to configure the queue-proxy's TLS server via the same ConfigMap used for other queue-proxy settings (like queue-sidecar-rootca), since the operator cannot inject env vars into the dynamically created sidecar via manifestival. Signed-off-by: Mikhail Fedosin <mfedosin@redhat.com>
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dprotaso, Fedosin, twoGiants The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Proposed Changes
Replace the hardcoded
tls.VersionTLS13in queue-proxy's TLS server with the sharedknative.dev/pkg/tlspackage, allowing TLS settings to be configured viaQUEUE_PROXY_TLS_MIN_VERSION,QUEUE_PROXY_TLS_MAX_VERSION,QUEUE_PROXY_TLS_CIPHER_SUITES, andQUEUE_PROXY_TLS_CURVE_PREFERENCESenvironment variables. The default remainsTLS 1.3when no env var is set.Add four new keys to the config-deployment ConfigMap (
queue-sidecar-tls-min-version,queue-sidecar-tls-max-version,queue-sidecar-tls-cipher-suites,queue-sidecar-tls-curve-preferences) and forward them asQUEUE_PROXY_TLS_*environment variables inmakeQueueContainer. This allows cluster admins to configure the queue-proxy's TLS server via the same ConfigMap used for other queue-proxy settings (likequeue-sidecar-rootca), since the operator cannot inject env vars into the dynamically created sidecar via manifestival.Release Note
knative/pkg patch: knative/pkg#3324