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
fix acl query template #2102
fix acl query template #2102
Conversation
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.
LGTM, just one question
}, | ||
{ | ||
"terms": { | ||
"_allow_access_control.enum": {{#toJson}}access_control{{/toJson}} |
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.
TIL about the toJson search template. Nice implementation!
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.
Credit goes to @ioanatia in her original DLS designs back in ~8.7
@navarone-feekery can I get a re-approval? |
242b10d
to
d2fc41c
Compare
💔 Failed to create backport PR(s)The backport operation could not be completed due to the following error: The backport PRs will be merged automatically after passing CI. To backport manually run: |
Closes #1696
In a review of the DLS + Internal Knowledge Search blog, @xeraa had commented that our DLS query looked overly complex. This sent me down a rabbit hole, first figuring out that our example DLS app was using an overly-complex query, then wondering why we were having to create an explicit query at all, then finally realizing I'd had these thoughts before and filed #1696 to eventually address the issue.
The time has come.
This PR removes the outer
bool: { filter: {
clause that's no longer necessary (since Workplace Search) as we do not have a_deny_access_control
pattern for any of our connectors (yet).It also fixes the syntax of the output document so that the template contents can be directly taken and shoved into a role descriptor.
Checklists
Pre-Review Checklist
v7.13.2
,v7.14.0
,v8.0.0
)Changes Requiring Extra Attention
Related Pull Requests
Release Note
Changes the output structure of the documents created by ACL Syncs. Now these docs are appropriately structured to create Role Descriptors. The structure to access the identity and its permissions have not changed. This structure can take up to half as much space to store as the previous structure.