grafana / synthetic-monitoring-agent

Synthetic Monitoring Agent

Home Page:https://grafana.com/docs/grafana-cloud/how-do-i/synthetic-monitoring/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Agent should validate validations

mem opened this issue · comments

It was reported that the agent is accepting regular expression validations with invalid regular expressions.

E.g. if fail_if_body_matches_regexp contains an invalid regular expression, the agent will consider the check to be valid.

That validation should be happening somewhere around here: https://github.com/grafana/synthetic-monitoring-agent/blob/main/pkg/pb/synthetic_monitoring/checks_extra.go#L574