-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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 #50207
Security should not reload files that haven't changed #50207
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.
Thanks @J-Bean, This is great.
I've done a first pass and left a few comments so that you can get some feedback straight-away. One of us will do a more thorough review over the next few days.
.../security/src/main/java/org/elasticsearch/xpack/security/authc/file/FileUserPasswdStore.java
Outdated
Show resolved
Hide resolved
...rity/src/test/java/org/elasticsearch/xpack/security/authc/file/FileUserPasswdStoreTests.java
Show resolved
Hide resolved
@elasticmachine OK to test |
Pinging @elastic/es-security (:Security/Security) |
Fixed. Please take a look. |
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.
Thank you for your contribution @J-Bean !
LGTM
We should still wait for Tim to take another pass.
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
@elasticmachine update branch |
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. Backport of: elastic#50207 Co-authored-by: Anton Shuvaev <[email protected]>
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. Backport of: #50207 Co-authored-by: Anton Shuvaev <[email protected]>
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 <[email protected]>
In security we currently monitor a set of files for changes:
This commit prevents unnecessary reloading when the file change actually doesn't change the internal structure.
closes #50063