diff --git a/cmd/mimir/config-descriptor.json b/cmd/mimir/config-descriptor.json index 181140bef2b..3a6b2948ee4 100644 --- a/cmd/mimir/config-descriptor.json +++ b/cmd/mimir/config-descriptor.json @@ -85,6 +85,17 @@ "fieldType": "boolean", "fieldCategory": "advanced" }, + { + "kind": "field", + "name": "skip_label_count_validation_header_enabled", + "required": false, + "desc": "Allows to skip label count validation via X-Mimir-SkipLabelCountValidation header on the http write path. Allowing this for external clients allows any client to send invalid label counts. After enabling it, requests with a specific HTTP header set to true will not have label counts validated.", + "fieldValue": null, + "fieldDefaultValue": false, + "fieldFlag": "api.skip-label-count-validation-header-enabled", + "fieldType": "boolean", + "fieldCategory": "advanced" + }, { "kind": "field", "name": "get_request_for_ingester_shutdown_enabled", diff --git a/cmd/mimir/help-all.txt.tmpl b/cmd/mimir/help-all.txt.tmpl index 98b795f3075..4c00a9f4f0a 100644 --- a/cmd/mimir/help-all.txt.tmpl +++ b/cmd/mimir/help-all.txt.tmpl @@ -313,6 +313,8 @@ Usage of ./cmd/mimir/mimir: The URL under which Alertmanager is externally reachable (eg. could be different than -http.alertmanager-http-prefix in case Alertmanager is served via a reverse proxy). This setting is used both to configure the internal requests router and to generate links in alert templates. If the external URL has a path portion, it will be used to prefix all HTTP endpoints served by Alertmanager, both the UI and API. (default http://localhost:8080/alertmanager) -api.get-request-for-ingester-shutdown-enabled [deprecated] Enable GET requests to the /ingester/shutdown endpoint to trigger an ingester shutdown. This is a potentially dangerous operation and should only be enabled consciously. + -api.skip-label-count-validation-header-enabled + Allows to skip label count validation via X-Mimir-SkipLabelCountValidation header on the http write path. Allowing this for external clients allows any client to send invalid label counts. After enabling it, requests with a specific HTTP header set to true will not have label counts validated. -api.skip-label-name-validation-header-enabled Allows to skip label name validation via X-Mimir-SkipLabelNameValidation header on the http write path. Use with caution as it breaks PromQL. Allowing this for external clients allows any client to send invalid label names. After enabling it, requests with a specific HTTP header set to true will not have label names validated. -auth.multitenancy-enabled