-
Notifications
You must be signed in to change notification settings - Fork 24.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test DLS and FLS against runtime fields #61820
Test DLS and FLS against runtime fields #61820
Conversation
Pinging @elastic/es-search (:Search/Search) |
" \"year\" : {\n" + | ||
" \"type\" : \"runtime_script\", \n" + | ||
" \"runtime_type\" : \"keyword\",\n" + | ||
" \"script\" : \"emitValue(doc[\\\"date\\\"].value.substring(0,4))\"\n" + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/\\"/'` I think will work.
assertOK(adminClient().performRequest(indexDoc2)); | ||
|
||
Request indexDoc3 = new Request("PUT", "/fls/_doc/3"); | ||
indexDoc3.addParameter("refresh", "wait_for"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need to wait_for a refresh, we can just do true
, I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
both work I guess
run elasticsearch-ci/packaging-sample-windows |
This PR introduces integration tests for Document level security with queries against runtime fields, as well as field level security used in combination with runtime fields.
Relates to #59332