Verify Privilege Vault Clustering

This document is a guide to IBM Security's Verify Privilege Vault clusters for administrators and advanced users. Verify Privilege Vault can run with multiple front-end Web servers. For a critical instance, clustering offers a redundant system to limit potential down time from a single point of failure. Clustering also allows users to load balance for better performance.

Overview

Clustering and Background Thread Changes in 10.7.

There are two major architectural changes in Verify Privilege Vault 10.7:

The first change is obvious in the Verify Privilege Vault user interface, and the second is hidden but very important to those supporting Verify Privilege Vault.
  • Primary Node: We eliminated "primary nodes." Previously, some important background operations, such as password changing and heartbeat, would only run from the primary node. Now they run from all nodes. Given that, there is no longer a "Make Primary" button, and the ValidPrimaryNode setting no longer applies.
  • Background Operations: There are no longer background threads for scheduled operations. Instead, operations are scheduled by Quartz.

Clustering Overview

With Verify Privilege Vault clustering, you can easily scale Verify Privilege Vault for redundancy and performance. Basic Verify Privilege Vault clustering is simple—you install Verify Privilege Vault and then copy the installation to another machine. Verify Privilege Vault clustering has four core concepts or components:

Nodes

Each machine with Verify Privilege Vault installed on it, pointing to the same database, is a node. All nodes respond to Web requests and thus are Web servers.

Backbone Bus

The backbone bus Internally handles all communication between the roles. In a clustered environment, the backbone bus should always be an installed RabbitMq messaging queue. This allows every node in the cluster to help with the workload. If the backbone bus is set to "internal," then each node is using its own internal backbone bus.

Engine Response Bus

The engine response bus facilitates communication from Verify Privilege Vault to distributed engines and back.

Worker Roles

Each node can optionally run one or more worker roles: background Worker, engine worker, and session recording worker. Though they may run on the same machine, the roles do not directly communicate with each other.

Each node that is set to run the background worker role automatically runs the scheduler role as well. The scheduler role is responsible for running the vast majority of Verify Privilege Vault background operations. It uses Quartz to run "trigger jobs" that send a message on the backbone bus for each scheduled operation. One or more background worker roles then processes those messages.

See the article Troubleshooting Quartz Trigger Jobs for more information about Quartz.

Component Communication

Figure:Verify Privilege Vault Internal Cluster-Component Communication

1565983214970

Messages are placed on the backbone bus by the Scheduler role and the website. Messages are retrieved from the backbone bus.

Figure:Verify Privilege Vault Distributed Engine Communication

1565984037119

  1. Manual or scheduled operation.

  2. Background worker processes a message.

  3. Outbound messages (password changes, heartbeats, and others) are placed on the site connector.

  4. Distributed engine performs the operation.

  5. Engine worker processes the response.

Server Node Configurations

The work an individual node handles depends entirely on which boxes are checked on the Server Nodes page (in edit mode):

1565717798898

  • In Cluster is a toggle that turns a server node on or off. If enabled this node can process Web requests, and (if configured) will run the background, engine, and session recording roles. If disabled, the node is just a backup—it cannot run any roles, and trying to access the website on the node will redirect to the server nodes page.
  • Background Worker is a toggle for all background operations, such as password changing, heartbeat, and discovery. When it is set to false, only the bulk operations, password generation, email, and secret import operations run on the node. See the list of background operations below.
  • The Background Worker, Engine Worker, and Session Recording Worker check boxes enable the corresponding roles for that node.
  • Engine Worker enables or disables the engine worker role, which processes responses from distributed engines.
  • Session Recording Worker enables or disables the session recording role, which encodes session videos.
  • Maintenance Mode enables or disables a read-only mode where the node cannot change secrets or related data.

Scheduled Background Operations

The current scheduled background operations in Verify Privilege Vault are:

  • ActiveDirectorySynchronizationMonitor
  • BackgroundWorkerTaskTriggerJob
  • BackupMonitor
  • Bulk Operations When triggered by user
  • CheckOutMonitor
  • ComputerScanMonitor
  • ConnectWiseMonitor
  • DatabaseCleanupTriggerJob
  • DiscoveryMonitor
  • EventQueueMonitor
  • ExpiredSecretPasswordChangeTriggerJob
  • ExpiringLicenseTaskTriggerJob
  • ExpiringSecretTaskTriggerJob
  • HeartbeatMonitor
  • Local Heartbeat Trigger Job
  • Local Password Change Trigger Job
  • NodeClusteringMonitor
  • NodeTaskTriggerJob
  • PasswordRequirementTriggerJob
  • PbaDirectiveTriggerJob
  • PbaMetadataUploadTriggerJob
  • PrimaryNodeTaskMonitor
  • Process Field Encryption Changes Task
  • ProcessDashboardJsonValidationTask
  • ProcessSecretPolicyChangesMessage
  • ScheduledReportMonitor
  • SecretComputerMatcherMonitor
  • SecretItemHashMonitor
  • SqlReplicationConflictMonitor
  • TelemetryTriggerJob
  • ThycoticOneSyncUserTriggerJob
  • TruncateDatabaseCacheTriggerJob
  • TruncateEngineLogTriggerJob
  • VideoConversionTriggerJob

To see the current state of these jobs, such as the last time they ran and how long until they run again, go to Admin > Diagnostics.

Procedures

Setting up Clustering

Clustering requires a Verify Privilege Vault Premium add-on or Enterprise Plus edition license.

  1. Have Verify Privilege Vault upgraded or installed and running on a server.

  2. Enable clustering on the node:

    1. In Verify Privilege Vault, click Admin > See All. The Administration page appears:

      1565726671364

    2. Click the Server Nodes button in the Setup section. The Server Nodes page appears:

      1565726759539

    3. Click the Enable Clustering button.

  3. Copy the entire Verify Privilege Vault application folder (typically c:\inetpub\wwwroot\SecretServer) from the existing node to the secondary node.

  4. Follow the steps in the Installation Guide for setting up the application pool and virtual directory in IIS.

    If you use DPAPI encryption for your encryption.config file, you need to transfer the non-DPAPI-encrypted version of the file to the secondary node. You can turn on DPAPI encryption from that server node locally after Verify Privilege Vault is running. This setting can be found at ADMIN > Configuration on the Security tab.
  5. If running Verify Privilege Vault 8.9.300000 or later, ensure that both servers are using the same date and time.

  6. Once the secondary server is running, navigate to its Verify Privilege Vault using a Web browser.

  7. Reset the database connection, following the instructions at Changing SQL Server Connection Parameters.

  8. Activate licenses for the new node. You can do this on either server once the database connection is established on the secondary node.

  9. Configure your load balancer for the two sites to have "sticky sessions" to prevent a user from bouncing between server on each request.

  10. Configure the worker roles for the cluster:

    • Each server node can optionally run the background worker, engine worker, and session recording worker roles.

    • At least one instance of each type of those roles must be active in the cluster for the clustered Verify Privilege Vault application to function.

    • You may run more than one instance of each role as desired to improve the performance of the clustered Verify Privilege Vault application.

For more information on what the various roles do, please see the Worker Roles section.

Upgrading Verify Privilege Vault in a Clustered Environment

Overview

Verify Privilege Vault has a built-in Web installer. That installer is a series of pages inside Verify Privilege Vault for downloading and updating Verify Privilege Vault. Verify Privilege Vault is accessible by users for most of the upgrade process. You can stop outside access to the site if you want to prevent users from making changes during the upgrade. Preventing user access will make restoring the database and site backups simpler if you decide to roll back the upgrade immediately afterward.

Before upgrading, backup your Verify Privilege Vault folder and database. See Upgrading Verify Privilege Vault - Single Instance and Web Clustering for important steps for ensuring your data is backed up.
Upgrading to Verify Privilege Vault version 8.9.000000+ requires Windows Server 2008 R2 or greater.
Upgrading to Verify Privilege Vault 10.0.000000 and above requires configuring integrated pipeline mode on the Verify Privilege Vault application pool. Please see Changing IIS to Not Stop Worker Process in IIS 7.0 and Later for details.
If using Integrated Windows authentication you will also need to update IIS authentication settings as detailed in Configuring Integrated Windows Authentication. If you are at version 9.1.000000 and below, you will need to first upgrade to 9.1.000001 before you can upgrade to 10.0.000000+.
You do not need to download the Verify Privilege Vault installer to perform an upgrade.

Procedure

  1. Before you start:

    • Ensure that you have account credentials information and access for the server hosting Verify Privilege Vault and the SQL Server instance hosting your Verify Privilege Vault database.

    • Have a recent backup of the application files and database available.

    • Stop the application pools on all of the servers except the one that you have chosen to upgrade.

  2. Choose one Verify Privilege Vault server to upgrade

  3. Perform a backup of that server.

  4. Stop the Web servers of all other nodes.

  5. Perform the upgrade using the same procedure as a single instance.

  6. Once Verify Privilege Vault is upgraded and working, copy the Web application folder (without the database.config or encryption.config files) to all other servers.

    Never overwrite or delete the encryption.config file on a Verify Privilege Vault server.
    Both encryption.config and database.config are automatically propagated to the new servers from the original. If you need to copy those files because of database configuration changes and are using DPAPI, disable DPAPI encryption in Verify Privilege Vault by going to Admin > Configuration on the Security tab. and clicking Decrypt Key to not use DPAPIbefore copying those files to secondary servers. Please note, that DPAPI is system specific. Do not copy the database.config or the encryption.config from machine to machine if they are protected by DPAPI.
    EFS encryption is tied to the user account running the Verify Privilege Vault application pool, so it is not machine-specific. Thus, it is not necessary to copy EFS encrypted files between Verify Privilege Vault instances, but it is allowed.
  7. If IBM Security management server (TMS) is installed and clustered, copy the TMS directory to the secondary servers as well. The TMS directory is included by default for new installs of Verify Privilege Vault 10.2+. TMS is used by advanced session recording and Verify Privilege Manager. If the TMS folder and site does not exist in IIS, then no additional actions are needed.

  8. Start the secondary servers to confirm they still work.

Upgrading Database Mirroring

  1. If there is more than one Web server running Verify Privilege Vault, ensure all instances are pointing to their primary database.

  2. Select one server to perform the upgrade on, stop all other web servers.

  3. Perform the upgrade on the single instance.

  4. Once upgraded and working, copy the Web application folder to all other Web servers.

  5. Start all other Web servers and confirm they work

  6. Ensure all instances are properly activated

  7. Ensure that the primary database changes have been replicated to the mirror database.

  8. If one of the servers was pointing originally to the secondary database, adjust it to point there again.

Upgrading Disaster Recovery Installations

  1. Perform the upgrade on the production instance.

  2. Backup the production instance.

  3. Copy the database backup to the remote DR instance and restore the database.

  4. Once the database is upgraded and working, copy the web application folder (but not the database.config or encryption.config files) to the remote DR instance, overwriting the existing files.

  5. Restart IIS or recycle the application pool running Verify Privilege Vault on the remote DR instance.

  6. Confirm that the remote DR instance is working correctly.

Load Balancing Verify Privilege Vault Clusters

In a clustered Verify Privilege Vault environment set up behind a load balancer, the accessible outside URL may be something other than the server name.

Customers often configure the service monitor on the load balancer to hit login.aspx. This can cause performance issues and memory leaks. We strongly suggest hitting healthcheck.aspx instead.

Custom URL Configuration

In Verify Privilege Vault 8.5 and later, the Custom URL setting can be configured to ensure that links and resources are resolved correctly and are not based upon the server name. The Custom URL sets a definitive URL for Verify Privilege Vault. Without it, features in Verify Privilege Vault that need to build a link back to the server must construct the link using the host value on the request, which is susceptible to manipulation.

  1. Navigate to Admin > Configuration.

  2. On the General tab, click the Edit button.

  3. Go to the Application Settings section.

  4. Click to select the Custom URL check box.

  5. Type the desired URL in the Verify Privilege Vault Custom URL text box.

SSL Recommendations

For the best security, we recommend placing the SSL certificate on each of the Web servers. This ensures the traffic leaving the server is encrypted by SSL. Optionally, the load balancer would need the certificates as well for adding the client's IP address.

If the connection between the load balancer and the server is isolated in a security zone, you could leave HTTP between the load balancer and the server and have the SSL on the load balancer.

Configuring Client's IP Address (X-Forwarded-For)

Routing traffic through a load balancer will cause Verify Privilege Vault to audit the IP address of the load balancer instead of the end user. To avoid this:

First, configure the load balancer to pass along the client's IP address in the header.

Then add the appSettings key IpAddressHeader with the value of the name of the header field containing the client's IP address. This setting must be added to allVerify Privilege Vault Web servers. Depending on your Verify Privilege Vault version, do this in one of two ways:

For Verify Privilege Vault prior to 10.5.000000:

In the web-appSetting.config file in your Verify Privilege Vault directory, add the following key:

Copy
<?xml version="1.0" encoding="utf-8" ?>
<appSettings>
  <add key="IpAddressHeader" value="X-Forwarded-For" />
</appSettings>

For Verify Privilege Vault 10.5.000000 and later:

  1. Go to https://<SecretServerAddress>/ConfigurationAdvanced.aspx.

  2. Scroll to the bottom and click Edit.

  3. Locate the IP Address Header text box, type X-Forwarded-For.

  4. Click the Save button.

The SSL certificate needs to exist on the load balancer and the Web server to ensure it has access to add the client IP address header.

Clustering Errors

The following error may arise when setting up or operating Verify Privilege Vault clustering:

  • Server dates do not match: If the Web server dates do not match, the audit records could be bad. The fix is to set the servers to the same time.

    This only applies to Verify Privilege Vault before version 8.9.300000.
  • Verify Privilege Vault version does not match: If some of the cluster nodes have been upgraded and others have not, their versions will conflict, producing this error. Nodes which have the wrong (older) version will not function correctly. To fix this issue, ensure that all the nodes in your cluster are upgraded. For nodes that are having this issue, you can copy the application folder (minus the database.config file) to replace the server files with the correct version.