As discussed in #3228 (comment), we should restrict /flush and /shutdown ingester endpoints to POST HTTP method only.
When doing it we should also:
- Make it clear in the
/ page that they're POST only (because if you will click these links from the browser, it will show a 405 error)
- Change
tools/migrate-ingester-statefulsets.sh because calls GET /shutdown, but then we would have to use something different than wget (and curl is not available in Cortex images)
As discussed in #3228 (comment), we should restrict
/flushand/shutdowningester endpoints toPOSTHTTP method only.When doing it we should also:
/page that they'rePOSTonly (because if you will click these links from the browser, it will show a 405 error)tools/migrate-ingester-statefulsets.shbecause calls GET /shutdown, but then we would have to use something different than wget (and curl is not available in Cortex images)