Skip to content

Commit fa41c9d

Browse files
committed
NE-2117: Add httpsLogFormat and tcpLogFormat to API
1 parent 1f2fa3f commit fa41c9d

15 files changed

Lines changed: 152 additions & 5 deletions

features.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
| GCPCustomAPIEndpointsInstall| | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |
6565
| GCPDualStackInstall| | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |
6666
| GatewayAPIWithoutOLM| | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |
67+
| HTTPSLogFormat| | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |
6768
| HyperShiftOnlyDynamicResourceAllocation| <span style="background-color: #519450">Enabled</span> | | <span style="background-color: #519450">Enabled</span> | | <span style="background-color: #519450">Enabled</span> | | <span style="background-color: #519450">Enabled</span> | |
6869
| ImageModeStatusReporting| | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |
6970
| IngressControllerDynamicConfigurationManager| | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |

features/features.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,4 +1020,12 @@ var (
10201020
enhancementPR("https://github.com/openshift/enhancements/pull/1910").
10211021
enable(inDevPreviewNoUpgrade(), inTechPreviewNoUpgrade()).
10221022
mustRegister()
1023+
1024+
FeatureGateHTTPSLogFormat = newFeatureGate("HTTPSLogFormat").
1025+
reportProblemsToJiraComponent("Networking/router").
1026+
contactPerson("rohara").
1027+
productScope(ocpSpecific).
1028+
enhancementPR("https://github.com/openshift/enhancements/pull/1832").
1029+
enable(inDevPreviewNoUpgrade(), inTechPreviewNoUpgrade()).
1030+
mustRegister()
10231031
)

openapi/generated_openapi/zz_generated.openapi.go

Lines changed: 15 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

operator/v1/types_ingress.go

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1495,13 +1495,29 @@ type AccessLogging struct {
14951495
// +required
14961496
Destination LoggingDestination `json:"destination"`
14971497

1498+
// tcpLogFormat specifies the format of the log message for a TCP
1499+
// request.
1500+
//
1501+
// If this field is empty, log messages use the implementation's default
1502+
// TCP log format. For HAProxy's default TCP log format, see the
1503+
// HAProxy documentation:
1504+
// http//docs.haproxy.org/2.8/configuration.html#8.2.2
1505+
//
1506+
// Note that this format only applies to TCP connections. It only affects
1507+
// the log format for TLS passthrough connections.
1508+
//
1509+
// +kubebuilder:validation:MinLength=1
1510+
// +kubebuilder:validation:MaxLength=1024
1511+
// +optional
1512+
TcpLogFormat string `json:"tcpLogFormat,omitempty"`
1513+
14981514
// httpLogFormat specifies the format of the log message for an HTTP
14991515
// request.
15001516
//
15011517
// If this field is empty, log messages use the implementation's default
15021518
// HTTP log format. For HAProxy's default HTTP log format, see the
15031519
// HAProxy documentation:
1504-
// http://cbonte.github.io/haproxy-dconv/2.0/configuration.html#8.2.3
1520+
// http//docs.haproxy.org/2.8/configuration.html#8.2.3
15051521
//
15061522
// Note that this format only applies to cleartext HTTP connections
15071523
// and to secure HTTP connections for which the ingress controller
@@ -1512,6 +1528,24 @@ type AccessLogging struct {
15121528
// +optional
15131529
HttpLogFormat string `json:"httpLogFormat,omitempty"`
15141530

1531+
// httpsLogFormat specifies the format of the log messsage for an HTTPS
1532+
// request.
1533+
//
1534+
// If this field is empty, log messages use the implementation's default
1535+
// HTTPS log format. For HAProxy's default HTTPS log format, see the
1536+
// HAProxy documentation:
1537+
// http://docs.haproxy.org/2.8/configuration.html#8.2.4
1538+
//
1539+
// Note that this format only applies to HTTPS connections for which the
1540+
// ingress controller terminates encryption (that is, edge-terminated or
1541+
// reencrypt connections). It does not affect the log format for TLS
1542+
// passthrough connections.
1543+
//
1544+
// +kubebuilder:validation:MinLength=1
1545+
// +kubebuilder:validation:MaxLength=1024
1546+
// +optional
1547+
HttpsLogFormat string `json:"httpsLogFormat,omitempty"`
1548+
15151549
// httpCaptureHeaders defines HTTP headers that should be captured in
15161550
// access logs. If this field is empty, no headers are captured.
15171551
//

operator/v1/zz_generated.crd-manifests/0000_50_ingress_00_ingresscontrollers.crd.yaml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1660,14 +1660,31 @@ spec:
16601660
If this field is empty, log messages use the implementation's default
16611661
HTTP log format. For HAProxy's default HTTP log format, see the
16621662
HAProxy documentation:
1663-
http://cbonte.github.io/haproxy-dconv/2.0/configuration.html#8.2.3
1663+
http//docs.haproxy.org/2.8/configuration.html#8.2.3
16641664
16651665
Note that this format only applies to cleartext HTTP connections
16661666
and to secure HTTP connections for which the ingress controller
16671667
terminates encryption (that is, edge-terminated or reencrypt
16681668
connections). It does not affect the log format for TLS passthrough
16691669
connections.
16701670
type: string
1671+
httpsLogFormat:
1672+
description: |-
1673+
httpsLogFormat specifies the format of the log messsage for an HTTPS
1674+
request.
1675+
1676+
If this field is empty, log messages use the implementation's default
1677+
HTTPS log format. For HAProxy's default HTTPS log format, see the
1678+
HAProxy documentation:
1679+
http://docs.haproxy.org/2.8/configuration.html#8.2.4
1680+
1681+
Note that this format only applies to HTTPS connections for which the
1682+
ingress controller terminates encryption (that is, edge-terminated or
1683+
reencrypt connections). It does not affect the log format for TLS
1684+
passthrough connections.
1685+
maxLength: 1024
1686+
minLength: 1
1687+
type: string
16711688
logEmptyRequests:
16721689
default: Log
16731690
description: |-
@@ -1685,6 +1702,21 @@ spec:
16851702
- Log
16861703
- Ignore
16871704
type: string
1705+
tcpLogFormat:
1706+
description: |-
1707+
tcpLogFormat specifies the format of the log message for a TCP
1708+
request.
1709+
1710+
If this field is empty, log messages use the implementation's default
1711+
TCP log format. For HAProxy's default TCP log format, see the
1712+
HAProxy documentation:
1713+
http//docs.haproxy.org/2.8/configuration.html#8.2.2
1714+
1715+
Note that this format only applies to TCP connections. It only affects
1716+
the log format for TLS passthrough connections.
1717+
maxLength: 1024
1718+
minLength: 1
1719+
type: string
16881720
required:
16891721
- destination
16901722
type: object

operator/v1/zz_generated.featuregated-crd-manifests/ingresscontrollers.operator.openshift.io/AAA_ungated.yaml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1654,14 +1654,31 @@ spec:
16541654
If this field is empty, log messages use the implementation's default
16551655
HTTP log format. For HAProxy's default HTTP log format, see the
16561656
HAProxy documentation:
1657-
http://cbonte.github.io/haproxy-dconv/2.0/configuration.html#8.2.3
1657+
http//docs.haproxy.org/2.8/configuration.html#8.2.3
16581658
16591659
Note that this format only applies to cleartext HTTP connections
16601660
and to secure HTTP connections for which the ingress controller
16611661
terminates encryption (that is, edge-terminated or reencrypt
16621662
connections). It does not affect the log format for TLS passthrough
16631663
connections.
16641664
type: string
1665+
httpsLogFormat:
1666+
description: |-
1667+
httpsLogFormat specifies the format of the log messsage for an HTTPS
1668+
request.
1669+
1670+
If this field is empty, log messages use the implementation's default
1671+
HTTPS log format. For HAProxy's default HTTPS log format, see the
1672+
HAProxy documentation:
1673+
http://docs.haproxy.org/2.8/configuration.html#8.2.4
1674+
1675+
Note that this format only applies to HTTPS connections for which the
1676+
ingress controller terminates encryption (that is, edge-terminated or
1677+
reencrypt connections). It does not affect the log format for TLS
1678+
passthrough connections.
1679+
maxLength: 1024
1680+
minLength: 1
1681+
type: string
16651682
logEmptyRequests:
16661683
default: Log
16671684
description: |-
@@ -1679,6 +1696,21 @@ spec:
16791696
- Log
16801697
- Ignore
16811698
type: string
1699+
tcpLogFormat:
1700+
description: |-
1701+
tcpLogFormat specifies the format of the log message for a TCP
1702+
request.
1703+
1704+
If this field is empty, log messages use the implementation's default
1705+
TCP log format. For HAProxy's default TCP log format, see the
1706+
HAProxy documentation:
1707+
http//docs.haproxy.org/2.8/configuration.html#8.2.2
1708+
1709+
Note that this format only applies to TCP connections. It only affects
1710+
the log format for TLS passthrough connections.
1711+
maxLength: 1024
1712+
minLength: 1
1713+
type: string
16821714
required:
16831715
- destination
16841716
type: object

operator/v1/zz_generated.swagger_doc_generated.go

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

payload-manifests/featuregates/featureGate-4-10-Hypershift-Default.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,9 @@
173173
{
174174
"name": "GatewayAPIWithoutOLM"
175175
},
176+
{
177+
"name": "HTTPSLogFormat"
178+
},
176179
{
177180
"name": "ImageModeStatusReporting"
178181
},

payload-manifests/featuregates/featureGate-4-10-Hypershift-DevPreviewNoUpgrade.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,9 @@
231231
{
232232
"name": "GatewayAPIWithoutOLM"
233233
},
234+
{
235+
"name": "HTTPSLogFormat"
236+
},
234237
{
235238
"name": "HighlyAvailableArbiter"
236239
},

payload-manifests/featuregates/featureGate-4-10-Hypershift-OKD.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@
175175
{
176176
"name": "GatewayAPIWithoutOLM"
177177
},
178+
{
179+
"name": "HTTPSLogFormat"
180+
},
178181
{
179182
"name": "ImageModeStatusReporting"
180183
},

0 commit comments

Comments
 (0)