Unauthorized route migration for routes owned by stack-monitoring (#214787)

## Summary

Passed security config to the core router, so it is correctly captured.


### Checklist

- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
This commit is contained in:
Elena Shostak 2025-03-17 17:04:40 +01:00 committed by GitHub
parent be351d3c97
commit e93a63331a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -411,6 +411,7 @@ export class MonitoringPlugin
const routeConfig = {
path: options.path,
validate: options.validate,
security: options.security,
};
if (method.toLowerCase() === 'post') {