We use JWT tokens for auth, but here is result of authinfo query using a valid token:
{
“user” : “User [name=36b46947-e27f-4423-9d82-98c1fc0cc660, backend_roles=, requestedTenant=null]”,
“user_name” : “36b46947-e27f-4423-9d82-98c1fc0cc660”,
“user_requested_tenant” : null,
“remote_address” : “10.14.250.35:52513”,
“backend_roles” : ,
“custom_attribute_names” : [
“attr.jwt.iss”,
“attr.jwt.session_state”,
“attr.jwt.typ”,
“attr.jwt.auth_time”,
“attr.jwt.email_verified”,
“attr.jwt.preferred_username”,
“attr.jwt.given_name”,
“attr.jwt.aud”,
“attr.jwt.acr”,
“attr.jwt.nbf”,
“attr.jwt.resource_access”,
“attr.jwt.ki-realm-roles”,
“attr.jwt.realm_access”,
“attr.jwt.azp”,
“attr.jwt.family_name”,
“attr.jwt.scope”,
“attr.jwt.sub”,
“attr.jwt.name”,
“attr.jwt.exp”,
“attr.jwt.iat”,
“attr.jwt.jti”,
“attr.jwt.email”
],
“sg_roles” : [
“SGS_OWN_INDEX”,
“user-roles-36b46947-e27f-4423-9d82-98c1fc0cc660”
],
“sg_tenants” : {
“36b46947-e27f-4423-9d82-98c1fc0cc660” : true
},
“principal” : null,
“peer_certificates” : “0”,
“sso_logout_url” : null
}
The error from the elastic log:
[2019-10-17T11:05:54,412][INFO ][c.f.s.p.PrivilegesEvaluator] [ktelastic] No cluster-level perm match for User [name=36b46947-e27f-4423-9d82-98c1fc0cc660, backend_roles=, requestedTenant=null] Resolved [aliases=[], indices=[], allIndices=[], types=[], originalRequested=, remoteIndices=] [Action [indices:data/read/scroll/clear]] [RolesChecked [user-roles-36b46947-e27f-4423-9d82-98c1fc0cc660, SGS_OWN_INDEX]]
[2019-10-17T11:05:54,412][INFO ][c.f.s.p.PrivilegesEvaluator] [ktelastic] No permissions for [indices:data/read/scroll/clear]
The roles checked have an action group called “INDICES_ALL”:
{
“user-roles-36b46947-e27f-4423-9d82-98c1fc0cc660” : {
“reserved” : false,
“hidden” : false,
“cluster_permissions” : [
“CLUSTER_COMPOSITE_OPS”
],
“index_permissions” : [
{
“index_patterns” : [
“d20e21af9d20-006e15f6efc3”
],
“fls” : ,
“masked_fields” : ,
“allowed_actions” : [
“INDICES_ALL”,
“SGS_INDICES_ALL”
]
},
{
“index_patterns” : [
“51b5672da2b2-1f2d0781ef09”
],
“fls” : ,
“masked_fields” : ,
“allowed_actions” : [
“INDICES_ALL”
]
}
],
“tenant_permissions” : ,
“static” : false
}
}
Action group “INDICES_ALL” includes SGS_INDICES_ALL (I also manually added indices:data/read/scroll/* just to be safe, but it makes no difference as expected).
{
“INDICES_ALL” : {
“reserved” : false,
“hidden” : false,
“allowed_actions” : [
“indices:data/read/scroll”,
“indices:data/read/scroll/clear”,
“SGS_INDICES_ALL”
],
“type” : “index”,
“static” : false
}
}