In case of TLS errors do not allow traffic (#2146)
This commit is contained in:
parent
216fe01a07
commit
3c67976969
5 changed files with 23 additions and 6 deletions
|
|
@ -369,12 +369,14 @@ func (n *NGINXController) getBackendServers(ingresses []*extensions.Ingress) ([]
|
|||
continue
|
||||
}
|
||||
|
||||
if server.AuthTLSError == "" && anns.CertificateAuth.AuthTLSError != "" {
|
||||
server.AuthTLSError = anns.CertificateAuth.AuthTLSError
|
||||
}
|
||||
|
||||
if server.CertificateAuth.CAFileName == "" {
|
||||
server.CertificateAuth = anns.CertificateAuth
|
||||
// It is possible that no CAFileName is found in the secret
|
||||
if server.CertificateAuth.CAFileName == "" {
|
||||
glog.V(3).Infof("secret %v does not contain 'ca.crt', mutual authentication not enabled - ingress rule %v/%v.", server.CertificateAuth.Secret, ing.Namespace, ing.Name)
|
||||
|
||||
}
|
||||
} else {
|
||||
glog.V(3).Infof("server %v already contains a mutual authentication configuration - ingress rule %v/%v", server.Hostname, ing.Namespace, ing.Name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue