Contour crashes on startup when globalExtAuth extension service doesn't exist. #6768
Labels
kind/bug
Categorizes issue or PR as related to a bug.
lifecycle/needs-triage
Indicates that an issue needs to be triaged by a project contributor.
What steps did you take and what happened:
When you configure Contour to use globalExtAuth service, pointing it to ExtensionService that doesn't exist, it will crash on startup:
This is problematic for initial deployment setup: usually, the extension service will only be created later, after Contour is already installed, so Contour will keep crashlooping until something creates that service. I don't think that this behavior is necessary: we already have configuration fields specifying what to do when the global auth extension service is not responding (
failOpen
). We could simply treat the missing ExtensionService same as the extension service not responding.What did you expect to happen:
I expect Contour to just start normally when ExtensionService specified in globalAuthExt doesn't exist, and then treat the incoming requests according to behavior configured in
failOpen
.Anything else you would like to add:
contour/cmd/contour/serve.go
Line 862 in fbf2d58
Environment:
The text was updated successfully, but these errors were encountered: