Skip to content

Commit

Permalink
[Monitoring] Make monitoring collection API public again (#205190)
Browse files Browse the repository at this point in the history
Related to #186882

## Summary

#186781 required all teams to
make sure that all Kibana APIs in their respective plugins were using
the appropriate access `internal` or `public`.

PR #186882 flagged the
`/api/monitoring_collection/{type}` API endpoint as `internal`. The
effect of that change was the [appearance of deprecation
logging](#186882 (comment))
in Kibana logs, because that endpoint is called from the [`kibana`
Metricbeat
module](https://github.com/elastic/beats/blob/main/metricbeat/module/kibana/kibana.go#L42C1-L46C1)
in order to monitor Kibana.

For this reason, we need to change the access mode of that API endpoint
back to `public`.
  • Loading branch information
consulthys authored Dec 27, 2024
1 parent 03999da commit 52cab45
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function registerDynamicRoute({
},
},
options: {
access: 'internal',
access: 'public',
authRequired: true,
tags: ['api'], // ensures that unauthenticated calls receive a 401 rather than a 302 redirect to login page
},
Expand Down

0 comments on commit 52cab45

Please sign in to comment.