We are using embedded ES (version 5.6) and am exploring the snapshot & restore options with GCS as snapshot repository. The repository-gcs plugin expects that the service account JSON file must be added into the elasticsearch keystore .
ES doc explains the way to add service account JSON file through the CLI tool ( bin/elasticsearch-keystore ), but I couldn't find this CLI tool since we are using embedded ES (added the ES jar into our lib).
Is it possible to add the service account programmatically to ES keystore?