Skip to content

[Backport 7.x] Security should not reload files that haven't changed#50724

Merged
tvernum merged 1 commit intoelastic:7.xfrom
tvernum:backport/7.x/50207-Security-should-not-reload
Jan 8, 2020
Merged

[Backport 7.x] Security should not reload files that haven't changed#50724
tvernum merged 1 commit intoelastic:7.xfrom
tvernum:backport/7.x/50207-Security-should-not-reload

Conversation

@tvernum
Copy link
Copy Markdown
Contributor

@tvernum tvernum commented Jan 8, 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.

Backport of: #50207

Co-authored-by: Anton Shuvaev anton.shuvaev91@gmail.com

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 <anton.shuvaev91@gmail.com>
@tvernum tvernum merged commit 293661d into elastic:7.x Jan 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant