Skip to content

Commit

Permalink
[8.x] Changed log level for message with authz opt out (#199678) (#19…
Browse files Browse the repository at this point in the history
…9772)

# Backport

This will backport the following commits from `main` to `8.x`:
- [Changed log level for message with authz opt out
(#199678)](#199678)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Elena
Shostak","email":"165678770+elena-shostak@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-11-12T12:05:56Z","message":"Changed
log level for message with authz opt out (#199678)\n\n##
Summary\r\n\r\nChanged log level for message with authz opt out from
`warn` to `debug`\r\n\r\n\r\n__Closes:
https://github.com/elastic/kibana/issues/199677__","sha":"9bb3661060e01628a052e34bd471ecea0b428fa7","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Security","release_note:skip","Feature:Security/Authorization","v9.0.0","backport:prev-minor"],"title":"Changed
log level for message with authz opt
out","number":199678,"url":"https://github.com/elastic/kibana/pull/199678","mergeCommit":{"message":"Changed
log level for message with authz opt out (#199678)\n\n##
Summary\r\n\r\nChanged log level for message with authz opt out from
`warn` to `debug`\r\n\r\n\r\n__Closes:
https://github.com/elastic/kibana/issues/199677__","sha":"9bb3661060e01628a052e34bd471ecea0b428fa7"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/199678","number":199678,"mergeCommit":{"message":"Changed
log level for message with authz opt out (#199678)\n\n##
Summary\r\n\r\nChanged log level for message with authz opt out from
`warn` to `debug`\r\n\r\n\r\n__Closes:
https://github.com/elastic/kibana/issues/199677__","sha":"9bb3661060e01628a052e34bd471ecea0b428fa7"}}]}]
BACKPORT-->

Co-authored-by: Elena Shostak <165678770+elena-shostak@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
3 people authored Nov 14, 2024
1 parent 469fcba commit ffbf7b5
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ export function initAPIAuthorization(

if (security) {
if (isAuthzDisabled(security.authz)) {
logger.warn(
`Route authz is disabled for ${request.url.pathname}${request.url.search}": ${security.authz.reason}`
);

return toolkit.next();
}

Expand Down

0 comments on commit ffbf7b5

Please sign in to comment.