OpenSearch/libs
Yang Wang a84469742c
Improve role cache efficiency for API key roles (#58156) (#59397)
This PR ensure that same roles are cached only once even when they are from different API keys.
API key role descriptors and limited role descriptors are now saved in Authentication#metadata
as raw bytes instead of deserialised Map<String, Object>.
Hashes of these bytes are used as keys for API key roles. Only when the required role is not found
in the cache, they will be deserialised to build the RoleDescriptors. The deserialisation is directly
from raw bytes to RoleDescriptors without going through the current detour of
"bytes -> Map -> bytes -> RoleDescriptors".
2020-07-13 22:58:11 +10:00
..
cli Replace compile configuration usage with api (7.x backport) (#58721) 2020-06-30 15:57:41 +02:00
core Detangle JdkJarHellCheck from build tool building (#58601) (#58755) 2020-07-01 10:41:01 +02:00
dissect Remove deprecated usage of testCompile configuration (#57921) (#58083) 2020-06-14 22:30:44 +02:00
geo Remove deprecated usage of testCompile configuration (#57921) (#58083) 2020-06-14 22:30:44 +02:00
grok Replace compile configuration usage with api (7.x backport) (#58721) 2020-06-30 15:57:41 +02:00
nio Replace compile configuration usage with api (7.x backport) (#58721) 2020-06-30 15:57:41 +02:00
plugin-classloader Use task avoidance with forbidden apis (#55034) 2020-04-15 13:27:53 -07:00
secure-sm Remove deprecated usage of testCompile configuration (#57921) (#58083) 2020-06-14 22:30:44 +02:00
ssl-config Replace compile configuration usage with api (7.x backport) (#58721) 2020-06-30 15:57:41 +02:00
x-content Improve role cache efficiency for API key roles (#58156) (#59397) 2020-07-13 22:58:11 +10:00
build.gradle Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00