Skip to content

[8.x] Unauthorized route migration for routes owned by appex-ai-infra (#214777)#214826

Merged
kibanamachine merged 1 commit intoelastic:8.xfrom
kibanamachine:backport/8.x/pr-214777
Mar 17, 2025
Merged

[8.x] Unauthorized route migration for routes owned by appex-ai-infra (#214777)#214826
kibanamachine merged 1 commit intoelastic:8.xfrom
kibanamachine:backport/8.x/pr-214777

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

…tic#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);
```

(cherry picked from commit f829496)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Mar 17, 2025
@kibanamachine kibanamachine enabled auto-merge (squash) March 17, 2025 16:32
@kibanamachine kibanamachine merged commit e04782e into elastic:8.x Mar 17, 2025
11 checks passed
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

cc @elena-shostak

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants