deduplicate-elasticsearch
deduplicate-elasticsearch copied to clipboard
Add secrets
Enable and implement secrets file, allowing credentials to securely be stored and access preventing plaintext passwords from being present in working script.
Enable index as variable so we only have to change it in one place.
Motivation and Context
Currently credentials, passwords, and endpoints are all plaintext in the script; this is an unnecessary risk and utilizing a secrets file allows one to store credentials separately and more securely.
Also, currently if one wants to change the index they are deduplicating it has to be adjusted in two places. As the script grows in functionality and complexity it is desired to be only need to be changed in one place.
How Has This Been Tested?
Implemented and tested multiple times on local and production environments.