Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: missing http check regex validations #612

Merged
merged 2 commits into from
Feb 13, 2024
Merged

Conversation

The-9880
Copy link
Contributor

Adds back regex validations on the fields of an HTTP check which use them, such as fail_if_body_matches_regexp.

It looks like the only other place these fields get validated is here (converting HttpSettings to BBE config module). From this line, I figure if the validation doesn't go through when creating the HTTP Probe, then a Scraper isn't created for that check/probe and it doesn't get executed (@mem suggested this in the original support issue).

Fixes #597.

@The-9880 The-9880 requested a review from a team as a code owner February 12, 2024 07:19
@CLAassistant
Copy link

CLAassistant commented Feb 12, 2024

CLA assistant check
All committers have signed the CLA.

@The-9880 The-9880 requested a review from nadiamoe February 12, 2024 19:35
@The-9880 The-9880 merged commit c1890e1 into main Feb 13, 2024
4 checks passed
@The-9880 The-9880 deleted the fix-http-validations branch February 13, 2024 14:26
mem added a commit that referenced this pull request Feb 14, 2024
* Add an option to log multihttp responses (#550)
* Update to grafana-build-tools v0.6.0
* Chore(deps): Bump golang.org/x/net from 0.20.0 to 0.21.0
* Chore(deps): Bump github.com/rs/zerolog from 1.31.0 to 1.32.0
* Chore(deps): Bump github.com/miekg/dns from 1.1.57 to 1.1.58
* Fix: add test for HTTP check with a long URL
* Add tenant label limits (#581)
* Release v0.20.0 (#613)
* Fix global tenant id usage for label limits query
* Release v0.20.1
* Feature: promote adhoc to permanent feature (#615)
* Update release script (#617)
* Chore(deps): Bump github.com/mccutchen/go-httpbin/v2 (#618)
* Fix: missing http check regex validations (#612)

Signed-off-by: Marcelo E. Magallon <marcelo.magallon@grafana.com>
@mem mem mentioned this pull request Feb 14, 2024
mem added a commit that referenced this pull request Feb 15, 2024
* Add an option to log multihttp responses (#550)
* Update to grafana-build-tools v0.6.0
* Chore(deps): Bump golang.org/x/net from 0.20.0 to 0.21.0
* Chore(deps): Bump github.com/rs/zerolog from 1.31.0 to 1.32.0
* Chore(deps): Bump github.com/miekg/dns from 1.1.57 to 1.1.58
* Fix: add test for HTTP check with a long URL
* Add tenant label limits (#581)
* Release v0.20.0 (#613)
* Fix global tenant id usage for label limits query
* Release v0.20.1
* Feature: promote adhoc to permanent feature (#615)
* Update release script (#617)
* Chore(deps): Bump github.com/mccutchen/go-httpbin/v2 (#618)
* Fix: missing http check regex validations (#612)

Signed-off-by: Marcelo E. Magallon <marcelo.magallon@grafana.com>
ka3de added a commit that referenced this pull request Feb 26, 2024
* Add an option to log multihttp responses (#550)
* Update to grafana-build-tools v0.6.0
* Chore(deps): Bump golang.org/x/net from 0.20.0 to 0.21.0
* Chore(deps): Bump github.com/rs/zerolog from 1.31.0 to 1.32.0
* Chore(deps): Bump github.com/miekg/dns from 1.1.57 to 1.1.58
* Fix: add test for HTTP check with a long URL
* Add tenant label limits (#581)
* Release v0.20.0 (#613)
* Fix global tenant id usage for label limits query
* Release v0.20.1
* Feature: promote adhoc to permanent feature (#615)
* Update release script (#617)
* Chore(deps): Bump github.com/mccutchen/go-httpbin/v2 (#618)
* Fix: missing http check regex validations (#612)
* Release v0.20.2 (#620)
* Chore(deps): Bump github.com/mccutchen/go-httpbin/v2 (#626)
* change the name of the k6 check type to scripted (#622)
* Chore(deps): Bump github.com/prometheus/client_model from 0.5.0 to 0.6.0
* Chore(deps): Bump google.golang.org/grpc from 1.61.0 to 1.61.1
* Chore(deps): Bump github.com/prometheus/common from 0.46.0 to 0.47.0
* Chore(deps): Bump github.com/prometheus/prometheus from 0.49.1 to 0.50.0
* Add header to ease tracking HTTP requests (#624)
* Add telemetry protobuf definitions (#627)

Signed-off-by: ka3de <danijs12@hotmail.com>
@ka3de ka3de mentioned this pull request Feb 26, 2024
ka3de added a commit that referenced this pull request Feb 26, 2024
* Add an option to log multihttp responses (#550)
* Update to grafana-build-tools v0.6.0
* Chore(deps): Bump golang.org/x/net from 0.20.0 to 0.21.0
* Chore(deps): Bump github.com/rs/zerolog from 1.31.0 to 1.32.0
* Chore(deps): Bump github.com/miekg/dns from 1.1.57 to 1.1.58
* Fix: add test for HTTP check with a long URL
* Add tenant label limits (#581)
* Release v0.20.0 (#613)
* Fix global tenant id usage for label limits query
* Release v0.20.1
* Feature: promote adhoc to permanent feature (#615)
* Update release script (#617)
* Chore(deps): Bump github.com/mccutchen/go-httpbin/v2 (#618)
* Fix: missing http check regex validations (#612)
* Release v0.20.2 (#620)
* Chore(deps): Bump github.com/mccutchen/go-httpbin/v2 (#626)
* change the name of the k6 check type to scripted (#622)
* Chore(deps): Bump github.com/prometheus/client_model from 0.5.0 to 0.6.0
* Chore(deps): Bump google.golang.org/grpc from 1.61.0 to 1.61.1
* Chore(deps): Bump github.com/prometheus/common from 0.46.0 to 0.47.0
* Chore(deps): Bump github.com/prometheus/prometheus from 0.49.1 to 0.50.0
* Add header to ease tracking HTTP requests (#624)
* Add telemetry protobuf definitions (#627)

Signed-off-by: ka3de <danijs12@hotmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Agent should validate validations
3 participants