forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve security plugin logging. (elastic#176503)
## Summary Improve security plugin logging: * [x] If authorization fails with `403` and the user doesn't have any roles, we can log this valuable information directly in the log. Similarly, when authentication fails because of `500`, we should indicate in the logs that the cluster might not be healthy, and so on. * [x] If Kibana has to create a new session while another one is still active (e.g., in the case of repeated IdP-initiated login), we should log this with an `INFO` level, as it's not something ordinary. * [x] We should reword infamous `License is not available, authentication is not possible.` message to indicate the underlying reason in a clearer manner (e.g., ES isn't available etc.). * [x] We should consider bumping log level to `INFO` for anything else that would be helpful during debugging * [x] We shouldn't log `Session is no longer available and cannot be re-authenticated` (or downgrade it to `DEBUG`) if re-authentication isn't possible in principle (e.g. in case of HTTP authentication, API keys, and JWTs) __Fixes: https://github.com/elastic/kibana/issues/163045__
- Loading branch information
Showing
21 changed files
with
168 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...gement/roles/edit_role/privileges/es/__snapshots__/elasticsearch_privileges.test.tsx.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
...lic/management/roles/edit_role/privileges/es/__snapshots__/index_privileges.test.tsx.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.