Hi
Elastic 7.15
My question is. When security is on, whenever I need to restore data to a new cluster, then how I am supposed to do that..?
I mean, I install necessary packages, replace all the configuration files, then start the service.
But then I cannot execute any API requests to this cluster, since the new cluster has no users to begin with, each request gives me an error:
{
"error" : {
"root_cause" : [
{
"type" : "security_exception",
"reason" : "unable to authenticate user [elastic] for REST request [/?pretty]",
"header" : {
"WWW-Authenticate" : "Basic realm="security" charset="UTF-8""
}
}
],
"type" : "security_exception",
"reason" : "unable to authenticate user [elastic] for REST request [/?pretty]",
"header" : {
"WWW-Authenticate" : "Basic realm="security" charset="UTF-8""
}
},
"status" : 401
}
Obvious approach would be to turn security off and then start cluster and then create the specified users, but without the security turned on, I cannot even see the Security tab in kibana.
Here it states that for backup, I should use snapshot_user
role. But this is only for taking snapshots, since this user cannot modify any data in cluster.
Back up a cluster’s data | Elasticsearch Guide [8.11] | Elastic
Regards
Raul