You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// This is purely to warn users, it doesn't affect our ability to extract hosts so we won't fail the whole operation
219
+
k.log.App.Warn().Err(err).Str("namespace", item.GetNamespace()).Str("name", item.GetName()).Msg("Failed to extract paths from ingress rule")
220
+
continue
221
+
}
222
+
iflen(paths) ==0 {
223
+
continue
224
+
}
225
+
if!slices.Contains(paths, "/") {
226
+
k.log.App.Warn().Str("namespace", item.GetNamespace()).Str("name", item.GetName()).Strs("paths", paths).Msg("Ingress rule does not contain a catch-all path, another ingress may be able to bypass auth checks if it routes the same host with a different path. Consider adding a catch-all path to this rule to ensure auth checks are applied to all paths for this host.")
227
+
}
228
+
}
229
+
k.log.App.Trace().Strs("hosts", hosts).Msg("Extracted hosts from ingress rules")
k.log.App.Warn().Str("namespace", namespace).Str("name", name).Str("appName", appName).Str("domain", appLabels.Config.Domain).Msg("App domain does not match any hosts defined in ingress rules, skipping")
0 commit comments