- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.
07-04-2019 05:04 AM
Hello Community -
We have been using an HA Vault cluster with DR cluster all this while. I am now beginning to evaluate the Distributed Vault architecture with v10.9. Setting this up was pretty straight forward and I built and configured one Satellite vault and one Master Vault. the Satellite vault was able to replicate the data from master on startup and also took over the role of the Master Vault when the original Master Vault was shutdown - which is cool and working as expected.
But, the problem comes when I start back the original Master Vault - which still thinks that its the master and allows for write operations. So, if a client connects to this Master Vault that allows write, there can be data inconsistency issues that may arise. Am i missing something or is this an expected behavior? Is there a way that the Original Master Vault on startup realize that some other vault has taken the master role and then settle with starting up as a satellite?
07-04-2019 05:25 AM
What did you do for failback? What I generally do:
- Master goes down
-Master Candidate automatically promoted as Master
-I will fix issues in Original master
-Now include original master as a Satellite with the below parameters ( Refer CyberArk doc : Add the old Master Vault as a Satellite Vault)
-Stop the current Master.
-Original master become master
-Add the old Master Vault as a Satellite Vault
07-04-2019 05:32 AM
@Nirmalkumar Dhanaraj I am thinking of a scenario where a master went down overnight due to some maintenance and a satellite picked up the role of the master. lets assume that the master came up automatically in an hour after the maintenance and starts the PrivateArk service on system boot. In that case we will have 2 masters. Both will allow write operations.
07-04-2019 05:33 AM
Hi @Nirmalkumar Dhanaraj
I had also configured a Distributed Vault environment , did you all Create the prioritized list of Vaults in the DNS [ Based on the installation guide] ?
07-04-2019 05:39 AM
@RUI WEI NG Thats another tricky thing. I haven't played around with DNS SRV yet as the document from cyberark indicates that there are some configurations to be done at the DNS level. Doing that in the corporate DNS can be bit of a challenge. I wonder if we could use some other service that provides DNS SRV such as Consul or HAProxy which can do a service discovery based on health checks and also return those that are active.
In reading through other documentations I also see that the clients support "DistributedVault=Static" where you can provide a comma separated IP address list and I am guessing its mostly a failover that happens from left to right. The documentation isn't much clear on that.
07-04-2019 05:44 AM
that's where your problem started. since there is nothing pointing clients to the preferred vault (your Master) they will happily continue to talk to the Promoted Satellite vault, until you (or a SRV record) tells them otherwise
07-04-2019 05:48 AM
@Richard Eisenberger Does this mean it is a must to create the SRV record? As i also having issue in the failover/failback process too.
07-04-2019 05:50 AM
Thats interesting. So DNS SRV is required when using Distributed Vaults? I will have that tested out too. How about Private Ark Admin client? I have never used it with a vault.ini file and have to manually specify the address of the vault that I want to connect. If an admin doesn't realize that there is a different master vault and tries to make changes, the vault will still allow the write to the master that went down and then recovered automatically and still calls itself a master.
To me, the architecture should enforce the rule (through technical controls) of not having more than one master.
07-04-2019 06:00 AM
My understanding is that only Credential Provider & ExportVaultData Utility can refer DNS SRV list, all other tools like PAReplicate and PVWA do not have the capability to refer DNS SRV records.. Let me know if my understanding is wrong.
07-04-2019 06:02 AM
@RUI WEI NG , @Nataraj Rao it is required if you want to be able to automatically fail back to your original Master Vault.
Generally I would point the PA client only to the 'true' Master.
As part of your procedure of getting back to business as usual I would add the former Master vault as a satellite vault, and replicate to ensure the changes that were made on the satellite that got promoted are incorporated. After that process has been done successfully you can either set that original Master as the master candidate and take the temporary Master down, or do a manual switch
07-04-2019 06:05 AM
only the Credential Provider can use an SRV record, actually
PVWA can access a satellite vault, as long as the Master is available, according to the docs.
https://cyberarkdocu.azurewebsites.net/Product-Doc/OnlineHelp/PAS/Latest/en/Content/PASIMP/Architecture-Distributed-Vaults.htm#CyberArkClientsthatworkonaSatelliteVault
07-04-2019 06:06 AM
Thanks @Richard Eisenberger I just wish there was a way for things to automatically fall in place without any human intervention. E.,g Master fails, Satellite becomes master, Older Master comes alive and finds someone else is a master and assumes the role of a satellite and gets the replicated data from the promoted master. Helps me sleep peacefully at night 😀
07-04-2019 06:08 AM
Yeah... Thats what I read through the documentation too. Never tried it so far
07-04-2019 06:16 AM
Anyone knows if there is an easy way like a REST API call to identify the current master? That way , i can run a start-up script to identify the promoted master and then re-configure the older master as a satellite and initiate a replication during startup.
07-04-2019 06:30 AM
yes.. There is a REST method you can consume to read the Vault current role
https://<IIS_Server_Ip>/PasswordVault/api/ComponentsMonitoringSummary
"Vaults": [
{
"IP": "<IP>",
"Role": "<Role>",
"IsLoggedOn": <true/false>
}
]
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

