Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates auth access model for dynamic_index_pattern endpoint (#204472)
Closes #203326 ## Summary Updating this obs alerting endpoint to use the new `security.authz` paradigm. Note: this endpoint may not be in use at all but it's been "available" now for three years so we likely can't just remove it without somehow confirming it's not needed. ## Testing * Start this PR using config that points at the shared "edge" cluster via oblt-cli CCS * Create a user with no roles at all * Use that user/password in the following REST call: `curl -X GET -u "$USERNAME:$PASSWORD" "$KIBANA_BASE_URL/api/observability/rules/alerts/dynamic_index_pattern?registrationContexts=observability.metrics®istrationContexts=observability.logs&namespace=default" -H "elastic-api-version: 2023-10-31"` * You should get results like this: `[".alerts-observability.metrics.alerts-default", ".alerts-observability.logs.alerts-default"]` --------- Co-authored-by: kibanamachine <[email protected]>
- Loading branch information