-
Notifications
You must be signed in to change notification settings - Fork 336
Description
Is your feature request related to a problem?
As a user's backend roles may change, the user's restRoleCache
entries may become stale. We want to invalidate stale cache items without affecting other users' cached entries. Currently there's only a single endpoint to invalidate user authentication caches DELETE _opendistro/_security/api/cache
but this invalidates the entire cache rather than individual cache entries and so there may be many cache misses when doing that.
What solution would you like?
Additional endpoint to invalidate user authentication caches on a per user level.
What alternatives have you considered?
Cache TTL plugins.security.cache.ttl_minutes
was considered but if a user's backend role changes prior to the expiration of cached entry then cached entry will be stale.
Do you have any additional context?
Add any other context or screenshots about the feature request here.