Skip to content

Commit aa559c5

Browse files
hdurand0710Gopher Bot
authored andcommitted
MINOR: remove default tune.ssl.default-dh-param
[WARNING] (155) : config : parsing [/etc/haproxy/haproxy.cfg:16] : 'tune.ssl.default-dh-param' is not supported by AWS-LC 1.65.1, keyword ignored
1 parent 944018d commit aa559c5

2 files changed

Lines changed: 1 addition & 17 deletions

File tree

pkg/controller/global.go

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,7 @@ func (c *HAProxyController) globalCfg() {
6868
}
6969
if newGlobal == nil {
7070
newGlobal = &models.Global{
71-
GlobalBase: models.GlobalBase{
72-
// TuneSslDefaultDhParam: 2048,
73-
TuneSslOptions: &models.TuneSslOptions{
74-
DefaultDhParam: 2048,
75-
},
76-
},
71+
GlobalBase: models.GlobalBase{},
7772
}
7873
for _, a := range c.annotations.Global(newGlobal, &newLg) {
7974
err = a.Process(c.store, c.store.ConfigMaps.Main.Annotations)
@@ -86,9 +81,6 @@ func (c *HAProxyController) globalCfg() {
8681
newGlobal.TuneSslOptions = &models.TuneSslOptions{}
8782
}
8883

89-
if newGlobal.TuneSslOptions.DefaultDhParam == 0 {
90-
newGlobal.TuneSslOptions.DefaultDhParam = 2048
91-
}
9284
env.SetGlobal(newGlobal, &newLg, c.haproxy.Env)
9385
diff := newGlobal.Diff(*global)
9486
if len(diff) != 0 {

pkg/haproxy/env/defaults.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,6 @@ func SetGlobal(global *models.Global, logTargets *models.LogTargets, env Env) {
3131
global.StatsTimeout = utils.PtrInt64(36000)
3232
}
3333

34-
// TuneSSL options
35-
if global.TuneSslOptions == nil {
36-
global.TuneSslOptions = &models.TuneSslOptions{}
37-
}
38-
if global.TuneSslOptions.DefaultDhParam == 0 {
39-
global.TuneSslOptions.DefaultDhParam = 2048
40-
}
41-
4234
// SSL options
4335
if global.SslOptions == nil {
4436
global.SslOptions = &models.SslOptions{}

0 commit comments

Comments
 (0)