-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add DEBUG log when DLS/FLS usage is detected (#82182) The `DlsFlsLicenseRequestInterceptor` detects when Field or Document Level Security is directly used (that is, an index is accessed for which there is an effective Field or Document level control in place for the current authentication context). This commit adds DEBUG logging when the usage is detected, so that unexpected license usage can be more easily debugged. And example of the logging (for an API Key with DLS) is: > [DEBUG][o.e.x.s.a.i.DlsFlsLicenseRequestInterceptor] [node] User > [Authentication[User[username=elastic,roles=[],fullName=null,email=null, > metadata={_reserved=true}],type=API_KEY,by={Realm[_es_api_key._es_api_key] > on Node[node01]}]] has document level security on [[index1]] Relates: #79152 * Fix backport
- Loading branch information
Showing
3 changed files
with
86 additions
and
13 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