Add support to disable session ticket

This commit is contained in:
Avdhoot Dendge 2025-03-28 05:58:04 -04:00 committed by GitHub
parent bb7ef7b48a
commit f0cd6f210b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 134 additions and 36 deletions

View file

@ -30,6 +30,7 @@ spec:
cipherSuites:
- TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
- TLS_RSA_WITH_AES_256_GCM_SHA384
disableSessionTickets: true
clientAuth:
secretNames:
- secret-ca1

View file

@ -30,6 +30,7 @@ spec:
cipherSuites:
- TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
- TLS_RSA_WITH_AES_256_GCM_SHA384
disableSessionTickets: true
clientAuth:
secretNames:
- secret-ca1

View file

@ -1273,6 +1273,8 @@ func buildTLSOptions(ctx context.Context, client Client) map[string]tls.Options
tlsOption.ALPNProtocols = tlsOptionsCRD.Spec.ALPNProtocols
}
tlsOption.DisableSessionTickets = tlsOptionsCRD.Spec.DisableSessionTickets
tlsOptions[id] = tlsOption
}

View file

@ -732,7 +732,8 @@ func TestLoadIngressRouteTCPs(t *testing.T) {
},
ClientAuthType: "VerifyClientCertIfGiven",
},
SniStrict: true,
SniStrict: true,
DisableSessionTickets: true,
ALPNProtocols: []string{
"h2",
"http/1.1",
@ -3401,7 +3402,8 @@ func TestLoadIngressRoutes(t *testing.T) {
},
ClientAuthType: "VerifyClientCertIfGiven",
},
SniStrict: true,
SniStrict: true,
DisableSessionTickets: true,
ALPNProtocols: []string{
"h2",
"http/1.1",

View file

@ -44,7 +44,8 @@ type TLSOptionSpec struct {
// ALPNProtocols defines the list of supported application level protocols for the TLS handshake, in order of preference.
// More info: https://doc.traefik.io/traefik/v3.3/https/tls/#alpn-protocols
ALPNProtocols []string `json:"alpnProtocols,omitempty"`
// DisableSessionTickets disables TLS session resumption via session tickets.
DisableSessionTickets bool `json:"disableSessionTickets,omitempty"`
// PreferServerCipherSuites defines whether the server chooses a cipher suite among his own instead of among the client's.
// It is enabled automatically when minVersion or maxVersion is set.
// Deprecated: https://github.com/golang/go/issues/45430