-
- Downloads
Check validity of prometheus_service before query
Check validity before querying so that if the dns entry for the api_url has been changed to something invalid after the model was saved and checked for validity, it will not query. This is to solve a toctou (time of check to time of use) issue.
Showing
- app/models/project_services/prometheus_service.rb 5 additions, 1 deletionapp/models/project_services/prometheus_service.rb
- changelogs/unreleased/security-55468-check-validity-before-querying.yml 5 additions, 0 deletions...eleased/security-55468-check-validity-before-querying.yml
- spec/models/project_services/prometheus_service_spec.rb 43 additions, 18 deletionsspec/models/project_services/prometheus_service_spec.rb
Please register or sign in to comment