Module org.elasticsearch.security
Class ViewDlsFlsRequestInterceptor
java.lang.Object
org.elasticsearch.xpack.security.authz.interceptor.ViewDlsFlsRequestInterceptor
- All Implemented Interfaces:
RequestInterceptor
An interceptor which checks if the requested View has any DLS or FLS permissions applied.
If so, then the request is rejected, because Views are not compatible with DLS or FLS.
-
Constructor Summary
ConstructorsConstructorDescriptionViewDlsFlsRequestInterceptor(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
-
ViewDlsFlsRequestInterceptor
public ViewDlsFlsRequestInterceptor(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
-