Skip to content
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

Security remove datemath special handling #91047

Conversation

albertzaharovits
Copy link
Contributor

@albertzaharovits albertzaharovits commented Oct 20, 2022

This is a composite PR that removes a number of index expression resolving behaviors related to datemath evaluation.
Most of the removed cases were redundant; there was code elsewhere that handled the same cases.

There are however two esoteric behaviors that were not redundant, but which were actually bugs (see below the discussion for each change):

@albertzaharovits albertzaharovits added the :Security/Authorization Roles, Privileges, DLS/FLS, RBAC/ABAC label Oct 20, 2022
@albertzaharovits albertzaharovits self-assigned this Oct 20, 2022
@albertzaharovits albertzaharovits force-pushed the security-remove-datemath-special-handling branch from 0e54730 to 7fabf60 Compare October 20, 2022 14:19
@albertzaharovits albertzaharovits marked this pull request as ready for review October 24, 2022 14:17
@elasticsearchmachine elasticsearchmachine added the Team:Security Meta label for security team label Oct 24, 2022
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-security (Team:Security)

@elasticsearchmachine
Copy link
Collaborator

Hi @albertzaharovits, I've created a changelog YAML for you.

Copy link
Contributor

@jakelandis jakelandis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks for the details they helped. However there were a commits called out that only appear to be only be relevant to the this PR. For example: isDateMathVisible was introduced and removed all in this PR and for some changes I couldn't draw a line between those called out and the final changes here.

@albertzaharovits
Copy link
Contributor Author

Thank you for the review!

However there were a commits called out that only appear to be only be relevant to the this PR. For example: isDateMathVisible was introduced and removed all in this PR and for some changes I couldn't draw a line between those called out and the final changes here.

Yes, it is true that some references in the explanations do not make sense in the final resultant codebase, as they were relevant only in the interim context that they were introduced in. I'll keep this feedback in mind, I think there was an opportunity to split this one up in two smaller PRs, and alleviate the issue you describe.

@albertzaharovits albertzaharovits added the auto-merge Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Oct 26, 2022
@albertzaharovits albertzaharovits merged commit 7b6f10a into elastic:main Oct 26, 2022
@albertzaharovits albertzaharovits deleted the security-remove-datemath-special-handling branch October 26, 2022 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) >bug :Security/Authorization Roles, Privileges, DLS/FLS, RBAC/ABAC Team:Security Meta label for security team v8.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants