-
Notifications
You must be signed in to change notification settings - Fork 25k
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 should not reload files that haven't changed #50063
Labels
good first issue
low hanging fruit
help wanted
adoptme
:Security/Security
Security issues without another label
Comments
Pinging @elastic/es-security (:Security/Security) |
Can I start working on this? |
Thank you for your interest in contributing to the project @J-Bean ! Yes, you may start working on it. |
tvernum
pushed a commit
that referenced
this issue
Jan 6, 2020
In security we currently monitor a set of files for changes: - config/role_mapping.yml (or alternative configured path) - config/roles.yml - config/users - config/users_roles This commit prevents unnecessary reloading when the file change actually doesn't change the internal structure. Closes: #50063 Co-authored-by: Anton Shuvaev <anton.shuvaev91@gmail.com>
SivagurunathanV
pushed a commit
to SivagurunathanV/elasticsearch
that referenced
this issue
Jan 23, 2020
In security we currently monitor a set of files for changes: - config/role_mapping.yml (or alternative configured path) - config/roles.yml - config/users - config/users_roles This commit prevents unnecessary reloading when the file change actually doesn't change the internal structure. Closes: elastic#50063 Co-authored-by: Anton Shuvaev <anton.shuvaev91@gmail.com>
This was referenced Feb 3, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
good first issue
low hanging fruit
help wanted
adoptme
:Security/Security
Security issues without another label
In security we currently monitor a set of files for changes
config/role_mapping.yml
(or alternative configured path)config/roles.yml
config/users
config/users_roles
We use the
ResourceWatcherService
to detect changes and then reload structures and/or clear caches.In some cases we detect that a "file change" has resulted in no actual changes to the stored content, and do nothing, but there are cases where simply touching a file will clear caches.
It would be preferable to only clear caches if the file change actually caused some internal structure to change (e.g a user was added/removed/modified).
The text was updated successfully, but these errors were encountered: