Skip to content

Restrict /flush and /shutdown ingester endpoints to POST method only #3243

Open
@pracucci

Description

@pracucci

As discussed in #3228 (comment), we should restrict /flush and /shutdown ingester endpoints to POST HTTP method only.

When doing it we should also:

  1. 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)
  2. 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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions