mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 01:13:23 -04:00
Unauthorized route migration for routes owned by appex-ai-infra (#214777)
### Authz API migration for unauthorized routes This PR migrates last unauthorized routes owned by your team to a new security configuration. Please refer to the documentation for more information: [Authorization API](https://docs.elastic.dev/kibana-dev-docs/key-concepts/security-api-authorization) ### **Before migration:** ```ts router.get({ path: '/api/path', ... }, handler); ``` ### **After migration:** ```ts router.get({ path: '/api/path', security: { authz: { enabled: false, reason: 'This route is opted out from authorization because ...', }, }, ... }, handler); ```
This commit is contained in:
parent
e93a63331a
commit
f82949698a
1 changed files with 6 additions and 0 deletions
|
@ -166,6 +166,12 @@ export function registerChatCompleteRoute({
|
|||
router.post(
|
||||
{
|
||||
path: '/internal/inference/chat_complete/stream',
|
||||
security: {
|
||||
authz: {
|
||||
enabled: false,
|
||||
reason: 'This route delegates authorization to the inference client',
|
||||
},
|
||||
},
|
||||
validate: {
|
||||
body: chatCompleteBodySchema,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue