Fix deleting prom rules endpoints via ds_proxy (#33491)
This commit is contained in:
committed by
GitHub
parent
e977085933
commit
fcd674ec58
@@ -290,6 +290,9 @@ func (proxy *DataSourceProxy) validateRequest() error {
|
||||
if proxy.ctx.Req.Request.Method == "PUT" {
|
||||
return errors.New("non allow-listed PUTs not allowed on proxied Prometheus datasource")
|
||||
}
|
||||
if proxy.ctx.Req.Request.Method == "POST" {
|
||||
return errors.New("non allow-listed POSTs not allowed on proxied Prometheus datasource")
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user