We initialize the RestHighLevelClient
with username-password only at our api startup (spring-boot app)
There is a small chance that the password can be changed/resetted externally (maybe by mistake of a human) later while our api is still running.
My question is, does the Elastic connection still stays active after initialization even the password changes later? Maybe it's only checked one time? And if not, what is an elegant way to update this password at runtime (via Elastic API), without needing to destroy and re-initiliaze all our beans with new password?
Note: I also see that RestHighLevelClient is deprecated, We can also make it a priority to migrate to the newer version if there is a solution for this