Controller: Several security fixes. (#13069)
Co-authored-by: Tabitha Sable <tabitha.c.sable@gmail.com>
This commit is contained in:
parent
cfd4d89a56
commit
626305229f
7 changed files with 36 additions and 15 deletions
|
|
@ -420,11 +420,15 @@ func (n *NGINXController) CheckIngress(ing *networking.Ingress) error {
|
|||
return err
|
||||
}
|
||||
|
||||
/* Deactivated to mitigate CVE-2025-1974
|
||||
// TODO: Implement sandboxing so this test can be done safely
|
||||
err = n.testTemplate(content)
|
||||
if err != nil {
|
||||
n.metricCollector.IncCheckErrorCount(ing.ObjectMeta.Namespace, ing.Name)
|
||||
return err
|
||||
}
|
||||
*/
|
||||
|
||||
n.metricCollector.IncCheckCount(ing.ObjectMeta.Namespace, ing.Name)
|
||||
endCheck := time.Now().UnixNano() / 1000000
|
||||
n.metricCollector.SetAdmissionMetrics(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue