You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add env var to control X-KEDA-HTTP-Cold-Start response header (#1354)
Add KEDA_HTTP_ENABLE_COLD_START_HEADER environment variable to allow
users to control whether the X-KEDA-HTTP-Cold-Start response header
is included in HTTP responses.
Changes:
- Add EnableColdStartHeader config option to Serving config (default: true)
- Add enableColdStartHeader field to forwardingConfig struct
- Conditionally add X-KEDA-HTTP-Cold-Start header based on configuration
- Update runProxyServer to accept serving config parameter
- Update all tests to reflect default behavior (header enabled by default)
- Update CHANGELOG.md with improvement entry
- Add comprehensive documentation in docs/operate.md
The header is enabled by default to maintain current behavior. Users can
disable it by setting KEDA_HTTP_ENABLE_COLD_START_HEADER=false.
Fixes#1355
Signed-off-by: Sean Redmond <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,7 @@ This changelog keeps track of work items that have been completed and are ready
34
34
### Improvements
35
35
36
36
-**Interceptor**: Support HTTPScaledObject scoped timeout ([#813](https://github.com/kedacore/http-add-on/issues/813))
37
+
-**Interceptor**: Add environment variable to control X-KEDA-HTTP-Cold-Start response header ([#1355](https://github.com/kedacore/http-add-on/issues/1355))
Copy file name to clipboardExpand all lines: docs/operate.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,17 @@ For setting multiple TLS certs, set `KEDA_HTTP_PROXY_TLS_CERT_STORE_PATHS` with
31
31
To disable certificate chain verification, set `KEDA_HTTP_PROXY_TLS_SKIP_VERIFY` to `false`
32
32
33
33
The matching between certs and requests is performed during the TLS ClientHelo message, where the SNI service name is compared to SANs provided in each cert and the first matching cert will be used for the rest of the TLS handshake.
34
+
35
+
# Configuring cold start header for the KEDA HTTP Add-on interceptor proxy
36
+
37
+
The interceptor proxy includes a `X-KEDA-HTTP-Cold-Start` response header in HTTP responses to indicate whether a cold start occurred. By default, this header is **enabled**.
38
+
39
+
The header can be controlled via the environment variable `KEDA_HTTP_ENABLE_COLD_START_HEADER` on the interceptor deployment (`true` by default). When enabled, the header will contain `true` if a cold start occurred (i.e., the workload was scaled from zero), or `false` if the workload was already running.
40
+
41
+
To disable the cold start header (for example, to reduce information disclosure in production environments), set `KEDA_HTTP_ENABLE_COLD_START_HEADER` to `false`.
42
+
43
+
This header is useful for debugging and monitoring cold start behavior.
44
+
34
45
# Configuring tracing for the KEDA HTTP Add-on interceptor proxy
0 commit comments