Added DisabledAuthz utility#216633
Conversation
|
/ci |
|
/ci |
|
/сi |
|
Pinging @elastic/kibana-security (Team:Security) |
jloleysens
left a comment
There was a problem hiding this comment.
Cool, nice work @elena-shostak !
| enabled: false, | ||
| reason: `This route delegates authorization to Core's scoped ES cluster client`, | ||
| }, | ||
| authz: AuthzDisabled.delegateToESClient, |
There was a problem hiding this comment.
Will we replace all other cases where routes delegate to the ES or SO client? Or will that be follow-up work for other teams?
There was a problem hiding this comment.
It will be a follow up work
jeramysoucy
left a comment
There was a problem hiding this comment.
LGTM! Thanks for adding this. Just left a minor nit/suggestion.
Co-authored-by: Jeramy Soucy <jeramy.soucy@elastic.co>
💛 Build succeeded, but was flaky
Failed CI StepsTest FailuresMetrics [docs]Public APIs missing comments
History
|
|
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/14331805609 |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
1 similar comment
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
## Summary Added `DisabledAuthz` utility class, this will address the current repetition of the reason string `'This route delegates authorization to the ES/SO client` and other common scenarios. __Closes: https://github.com/elastic/kibana/issues/216632__ --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Jeramy Soucy <jeramy.soucy@elastic.co> (cherry picked from commit 18ca869) # Conflicts: # x-pack/platform/plugins/shared/security/server/routes/authorization/roles/delete.ts # x-pack/platform/plugins/shared/security/server/routes/authorization/roles/get.ts # x-pack/platform/plugins/shared/security/server/routes/authorization/roles/get_all.ts # x-pack/platform/plugins/shared/security/server/routes/authorization/roles/post.ts # x-pack/platform/plugins/shared/security/server/routes/authorization/roles/put.ts # x-pack/platform/plugins/shared/security/server/routes/authorization/roles/query.ts
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
## Summary Added `DisabledAuthz` utility class, this will address the current repetition of the reason string `'This route delegates authorization to the ES/SO client` and other common scenarios. __Closes: https://github.com/elastic/kibana/issues/216632__ --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Jeramy Soucy <jeramy.soucy@elastic.co> (cherry picked from commit 18ca869) # Conflicts: # x-pack/platform/plugins/shared/security/server/routes/authorization/roles/delete.ts # x-pack/platform/plugins/shared/security/server/routes/authorization/roles/get.ts # x-pack/platform/plugins/shared/security/server/routes/authorization/roles/get_all.ts # x-pack/platform/plugins/shared/security/server/routes/authorization/roles/post.ts # x-pack/platform/plugins/shared/security/server/routes/authorization/roles/put.ts # x-pack/platform/plugins/shared/security/server/routes/authorization/roles/query.ts
# Backport This will backport the following commits from `main` to `9.0`: - [Added DisabledAuthz utility (#216633)](#216633) <!--- Backport version: 9.5.1 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Elena Shostak","email":"165678770+elena-shostak@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-04-08T10:59:28Z","message":"Added DisabledAuthz utility (#216633)\n\n## Summary\n\nAdded `DisabledAuthz` utility class, this will address the current\nrepetition of the reason string `'This route delegates authorization to\nthe ES/SO client` and other common scenarios.\n\n__Closes: https://github.com/elastic/kibana/issues/216632__\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Jeramy Soucy <jeramy.soucy@elastic.co>","sha":"18ca869d926d91b126b754bbbc1234a524949e14","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Security","enhancement","release_note:skip","backport missing","backport:version","v9.1.0","v8.19.0"],"title":"Added DisabledAuthz utility","number":216633,"url":"https://github.com/elastic/kibana/pull/216633","mergeCommit":{"message":"Added DisabledAuthz utility (#216633)\n\n## Summary\n\nAdded `DisabledAuthz` utility class, this will address the current\nrepetition of the reason string `'This route delegates authorization to\nthe ES/SO client` and other common scenarios.\n\n__Closes: https://github.com/elastic/kibana/issues/216632__\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Jeramy Soucy <jeramy.soucy@elastic.co>","sha":"18ca869d926d91b126b754bbbc1234a524949e14"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/216633","number":216633,"mergeCommit":{"message":"Added DisabledAuthz utility (#216633)\n\n## Summary\n\nAdded `DisabledAuthz` utility class, this will address the current\nrepetition of the reason string `'This route delegates authorization to\nthe ES/SO client` and other common scenarios.\n\n__Closes: https://github.com/elastic/kibana/issues/216632__\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Jeramy Soucy <jeramy.soucy@elastic.co>","sha":"18ca869d926d91b126b754bbbc1234a524949e14"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
# Backport This will backport the following commits from `main` to `8.x`: - [Added DisabledAuthz utility (#216633)](#216633) <!--- Backport version: 9.5.1 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Elena Shostak","email":"165678770+elena-shostak@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-04-08T10:59:28Z","message":"Added DisabledAuthz utility (#216633)\n\n## Summary\n\nAdded `DisabledAuthz` utility class, this will address the current\nrepetition of the reason string `'This route delegates authorization to\nthe ES/SO client` and other common scenarios.\n\n__Closes: https://github.com/elastic/kibana/issues/216632__\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Jeramy Soucy <jeramy.soucy@elastic.co>","sha":"18ca869d926d91b126b754bbbc1234a524949e14","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Security","enhancement","release_note:skip","backport missing","backport:version","v9.1.0","v8.19.0"],"title":"Added DisabledAuthz utility","number":216633,"url":"https://github.com/elastic/kibana/pull/216633","mergeCommit":{"message":"Added DisabledAuthz utility (#216633)\n\n## Summary\n\nAdded `DisabledAuthz` utility class, this will address the current\nrepetition of the reason string `'This route delegates authorization to\nthe ES/SO client` and other common scenarios.\n\n__Closes: https://github.com/elastic/kibana/issues/216632__\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Jeramy Soucy <jeramy.soucy@elastic.co>","sha":"18ca869d926d91b126b754bbbc1234a524949e14"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/216633","number":216633,"mergeCommit":{"message":"Added DisabledAuthz utility (#216633)\n\n## Summary\n\nAdded `DisabledAuthz` utility class, this will address the current\nrepetition of the reason string `'This route delegates authorization to\nthe ES/SO client` and other common scenarios.\n\n__Closes: https://github.com/elastic/kibana/issues/216632__\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Jeramy Soucy <jeramy.soucy@elastic.co>","sha":"18ca869d926d91b126b754bbbc1234a524949e14"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
|
This PR didn't make it into the latest BC. Updating the labels. |
Summary
Added
DisabledAuthzutility class, this will address the current repetition of the reason string'This route delegates authorization to the ES/SO clientand other common scenarios.Closes: #216632