Skip to content

Enable caching of roles from the api keys#36387

Merged
jaymode merged 3 commits intoelastic:security_api_keysfrom
jaymode:api_key_role_cache
Dec 10, 2018
Merged

Enable caching of roles from the api keys#36387
jaymode merged 3 commits intoelastic:security_api_keysfrom
jaymode:api_key_role_cache

Conversation

@jaymode
Copy link
Copy Markdown
Member

@jaymode jaymode commented Dec 7, 2018

This commit enables api keys to share the same cache for roles that is
already in use for roles from other sources. In order to avoid the
possibility of a key collision with roles that do not belong to api
keys, the key for the roles cache now includes a source field that
prevents these collisions.

This commit enables api keys to share the same cache for roles that is
already in use for roles from other sources. In order to avoid the
possibility of a key collision with roles that do not belong to api
keys, the key for the roles cache now includes a source field that
prevents these collisions.
@jaymode jaymode added >non-issue :Security/Authorization Roles, Privileges, DLS/FLS, RBAC/ABAC labels Dec 7, 2018
@jaymode jaymode requested a review from tvernum December 7, 2018 19:24
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-security

Copy link
Copy Markdown
Contributor

@tvernum tvernum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

}
listener.onResponse(role);
}, listener::onFailure));
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Needs a blank line.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jaymode jaymode merged commit 554bf23 into elastic:security_api_keys Dec 10, 2018
@jaymode jaymode deleted the api_key_role_cache branch December 10, 2018 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>non-issue :Security/Authorization Roles, Privileges, DLS/FLS, RBAC/ABAC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants