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

Add cache for application privileges (#55836) #58798

Merged
merged 7 commits into from
Jul 2, 2020

Conversation

ywangd
Copy link
Member

@ywangd ywangd commented Jul 1, 2020

Add caching support for application privileges to reduce number of round-trips to security index when building application privilege descriptors.

Privilege retrieving in NativePrivilegeStore is changed to always fetching all privilege documents for a given application. The caching is applied to all places including "get privilege", "has privileges" APIs and CompositeRolesStore (for authentication).

ywangd added 2 commits July 1, 2020 15:59
Add caching support for application privileges to reduce number of round-trips to security index when building application privilege descriptors.

Privilege retrieving in NativePrivilegeStore is changed to always fetching all privilege documents for a given application. The caching is applied to all places including "get privilege", "has privileges" APIs and CompositeRolesStore (for authentication).
@ywangd ywangd added the backport label Jul 1, 2020
@ywangd
Copy link
Member Author

ywangd commented Jul 1, 2020

@elasticmachine test this please

1 similar comment
@ywangd
Copy link
Member Author

ywangd commented Jul 1, 2020

@elasticmachine test this please

@ywangd ywangd merged commit a5a8b4a into elastic:7.x Jul 2, 2020
ywangd added a commit that referenced this pull request Jul 3, 2020
The version needs to be adjusted to v7.9.0 after backport #58798
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