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
|
|
@ -150,6 +150,14 @@ func (e Extractor) Extract(ing *extensions.Ingress) *Ingress {
|
|||
continue
|
||||
}
|
||||
|
||||
if name == "CertificateAuth" && data[name] == nil {
|
||||
data[name] = authtls.Config{
|
||||
AuthTLSError: err.Error(),
|
||||
}
|
||||
// avoid mapping the result from the annotation
|
||||
val = nil
|
||||
}
|
||||
|
||||
_, alreadyDenied := data[DeniedKeyName]
|
||||
if !alreadyDenied {
|
||||
data[DeniedKeyName] = err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue