mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[Logs] Authz migration (#206576)
## Summary Closes https://github.com/elastic/kibana/issues/206395. As per [the docs](https://docs.elastic.dev/kibana-dev-docs/key-concepts/security-api-authorization#api-authorization) this route is primarily a wrapper around Saved Objects (via spaces, SOs, and advanced settings) so we opt out of explicit security checks.
This commit is contained in:
parent
4304e21933
commit
b18e998b5a
1 changed files with 11 additions and 1 deletions
|
@ -22,7 +22,17 @@ export const initMigrateLogViewSettingsRoute = ({
|
|||
getStartServices,
|
||||
}: LogsSharedBackendLibs) => {
|
||||
framework.router.put(
|
||||
{ path: MIGRATE_LOG_VIEW_SETTINGS_URL, validate: false },
|
||||
{
|
||||
path: MIGRATE_LOG_VIEW_SETTINGS_URL,
|
||||
validate: false,
|
||||
security: {
|
||||
authz: {
|
||||
enabled: false,
|
||||
reason:
|
||||
'This API delegates security to the currently logged in user and their permissions.',
|
||||
},
|
||||
},
|
||||
},
|
||||
async (context, request, response) => {
|
||||
try {
|
||||
const { elasticsearch, savedObjects } = await context.core;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue