Better RegEx pattern complication handling in httpchallenge #5515
Labels
help wanted
Issues with this label are ready to start work but are in need of someone to do it
priority/backlog
Issue is approved and in the backlog
In pkg/server/plugin/nodeattestor/httpchallenge/httpchallenge.go, near line 67 the following code exists
which will cause a runtime panic on a poorly written
hclConfig.AllowedDNSPatterns
, which comes from the httpchallenge user-edited config file.We need better error handling in this area, to prevent the httpchallenge plugin from runtime panicing.
Discovered during #5303 but not changed within that PR as it is out of scope of adding a Validate gRPC call.
The text was updated successfully, but these errors were encountered: