[Serverless] Adding config to disable authentication on task manager background worker utilization API (#159505)

## Summary

Until [this issue](https://github.com/elastic/kibana/issues/153720) is
resolved, this config flag allows us to access the task manager
background worker utilization API in serverless to support autoscaling
of background task deployments

## To Verify

Run es: `yarn es snapshot`
Run serverless on this branch: `yarn serverless-es`

Verify you see the following warning in the logs:
```
[2023-06-12T12:47:19.641-04:00][WARN ][plugins.taskManager] Disabling authentication for background task utilization API
```

and you can access `/api/task_manager/_background_task_utilization`
without logging in
This commit is contained in:
Ying Mao 2023-06-12 13:58:25 -04:00 committed by GitHub
parent ab29f0873c
commit 6a50aaed66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,3 +39,6 @@ server.securityResponseHeaders.disableEmbedding: true
# Enforce single "default" space
xpack.spaces.maxSpaces: 1
# Allow unauthenticated access to task manager utilization API for auto-scaling
xpack.task_manager.unsafe.authenticate_background_task_utilization: false