Module org.elasticsearch.security
Class ViewAndDatasetDlsFlsRequestInterceptor
java.lang.Object
org.elasticsearch.xpack.security.authz.interceptor.ViewAndDatasetDlsFlsRequestInterceptor
- All Implemented Interfaces:
RequestInterceptor
An interceptor which checks if the requested views or datasets have any DLS or FLS permissions applied.
If so, then the request is rejected, because views and datasets are not compatible with DLS or FLS.
-
Constructor Summary
ConstructorsConstructorDescriptionViewAndDatasetDlsFlsRequestInterceptor(ThreadContext threadContext, Supplier<ProjectMetadata> projectMetadataSupplier) -
Method Summary
Modifier and TypeMethodDescriptionintercept(AuthorizationEngine.RequestInfo requestInfo, AuthorizationEngine authorizationEngine, AuthorizationEngine.AuthorizationInfo authorizationInfo) This interceptor will introspect the request and potentially modify it.
-
Constructor Details
-
ViewAndDatasetDlsFlsRequestInterceptor
public ViewAndDatasetDlsFlsRequestInterceptor(ThreadContext threadContext, Supplier<ProjectMetadata> projectMetadataSupplier)
-
-
Method Details
-
intercept
public SubscribableListener<Void> intercept(AuthorizationEngine.RequestInfo requestInfo, AuthorizationEngine authorizationEngine, AuthorizationEngine.AuthorizationInfo authorizationInfo) Description copied from interface:RequestInterceptorThis interceptor will introspect the request and potentially modify it. If the interceptor does not apply to the request then the request will not be modified.- Specified by:
interceptin interfaceRequestInterceptor
-