Add unified disabled_categories audit log setting#6266
Conversation
Signed-off-by: Vishnutheep B <vishnutheep@gmail.com>
PR Code Analyzer ❗AI-powered 'Code-Diff-Analyzer' found issues on commit f987ff1.
The table above displays the top 10 most important findings. Pull Requests Author(s): Please update your Pull Request according to the report above. Repository Maintainer(s): You can Thanks. |
PR Reviewer Guide 🔍(Review updated until commit f1256a5)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to f1256a5 Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit f987ff1
Suggestions up to commit 8fc06d5
Suggestions up to commit 39b23b5
Suggestions up to commit 6fad53f
|
Signed-off-by: Vishnutheep B <vishnutheep@gmail.com>
|
Persistent review updated to latest commit 39b23b5 |
|
Persistent review updated to latest commit 8fc06d5 |
Signed-off-by: Vishnutheep B <vishnutheep@gmail.com>
|
Persistent review updated to latest commit f987ff1 |
Signed-off-by: Vishnutheep B <vishnutheep@gmail.com>
|
Persistent review updated to latest commit f1256a5 |
|
Closing on behalf of #6271 |
Description
Introduces a new unified
disabled_categoriessetting for audit logging that applies to both the REST and transport layers, simplifying configuration. The existingdisabled_rest_categoriesanddisabled_transport_categoriessettings are deprecated but remain supported for backward compatibility.Category: New feature
Why these changes are required?
Previously, users had to configure separate settings for REST and transport audit categories, requiring knowledge of which layer each category belonged to. This often led to misconfigurations, especially with transport-only categories such as
CLUSTER_SETTINGS_CHANGEDandINDEX_SETTINGS_CHANGED.Before: Users configured disabled_rest_categories and disabled_transport_categories independently.
After: Users can configure a single setting:
config: audit: disabled_categories: - AUTHENTICATED - GRANTED_PRIVILEGESPrecedence:
disabled_categories takes precedence when configured.
If absent, the existing split settings continue to work unchanged.
Using the deprecated split settings emits a deprecation warning.
Issues Resolved
#6222
Is this a backport? No.
Testing
Unit tests and manual testing
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.