Hello,
So I have a user with bellow auth.
{
"user" : "User [name=admin, roles=[], requestedTenant=null]",
"user_name" : "admin",
"user_requested_tenant" : null,
"remote_address" : "127.0.0.1:42376",
"backend_roles" : [ ],
"custom_attribute_names" : [ ],
"sg_roles" : [
"sg_all_access"
],
"sg_tenants" : {
"test_tenant_ro" : true,
"admin" : true,
"adm_tenant" : true
},
"principal" : null,
"peer_certificates" : "0",
"sso_logout_url" : null
}
While I am using elasticsearch 6.5.3 with searchguard 23.2, I can take and restore backup including searchguard indices.
But, When I am trying same action in elasticsearch-6.8.0 with searchguard 25.0, the restore fails with error:
Restoring index: searchguard
Tue, 06 Aug 2019 11:53:44 GMT | Error Emitted => {"root_cause":[{"type":"security_exception","reason":"no permissions for [] and User [name=admin, roles=[], requestedTenant=null]"}],"type":"security_exception","reason":"no permissions for [] and User [name=admin, roles=[], requestedTenant=null]"}
failed to restore mapping for searchguard
Inside elasticsearch cluster, the error message is:
indices:admin/mapping/put for 'searchguard' index is not allowed for a regular user
I am not sure if this change in searchguard is causing the issue.
Any hints? Is there any way to achieve restore searchguard indices?
FYI, I am using elasticdump for backup and restore purpose.