fix #13 fix for : DLS overrides broader permissions #1078
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
opendistro-for-elasticsearch/security pull request intake form
Please provide as much details as possible to get feedback/acceptance on your PR quickly
This PR fixes the issue #13 that describes how a user with :
still sees only the conjunction of DLS restriction instead of the conjunction of DLS + everything = everything.
Category: (Enhancement, New feature, Bug fix, Test fix, Refactoring, Maintenance, Documentation)
Bug fix
Github Issue # or road-map entry, if available:
DLS overrides broader permissions #13
Description of changes:
The idea of the change is to position a dummy dlsfullaccess string inside the DLS object, this way when the whole map is parsed, if this string is found, all other entry are cleared for the specified index pattern.
Why these changes are required?
This is a a bug the behavior of the plugin does not reflect what has been configured.
What is the old behavior before changes and new behavior after changes? (Please add any example/logs/screen-shot if available)
Here the user should see more fields.
I will provide more data/scripts to test against from within the PR.I have provided proper test units from within the PR
Testing done: (Please provide details of testing done: Unit testing, integration testing and manual testing)
The testing has, for the moment, been done only with custom script, I have yet to familiarize myself with the testing framework provided with the code.
TO-DOs, if any: (Please describe pending items and provide Github issues# for each of them)
Not that I know or can think of.
Is it backport from main branch? (If yes, please add backport PR # and commits #)
No
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or
(b) The contribution is based upon previous work that, to the best
of my knowledge, is covered under an appropriate open source
license and I have the right under that license to submit that
work with modifications, whether created in whole or in part
by me, under the same open source license (unless I am
permitted to submit under a different license), as indicated
in the file; or
(c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.
(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.