Skip to content

A Keyfactor IPAMProvider plugin that provides support for retrieving passwords of Managed Accounts on Managed Systems in Beyond Trust Password Safe.

License

Notifications You must be signed in to change notification settings

Keyfactor/beyondtrust-beyondinsight-pam

Repository files navigation

BeyondTrust Password Safe PAM Provider

The BeyondTrust Password Safe PAM Provider allows for the retrieval of stored account credentials from the Password Safe solution. A valid API registration in BeyondTrust is used to open a request and retrieve credentials for a given account on a system.

Integration status: Production - Ready for use in production environments.

About the Keyfactor PAM Provider

Keyfactor supports the retrieval of credentials from 3rd party Privileged Access Management (PAM) solutions. Secret values can normally be stored, encrypted at rest, in the Keyfactor Platform database. A PAM Provider can allow these secrets to be stored, managed, and rotated in an external platform. This integration is usually configured on the Keyfactor Platform itself, where the platform can request the credential values when needed. In certain scenarios, a PAM Provider can instead be run on a remote location in conjunction with a Keyfactor Orchestrator to allow credential requests to originate from a location other than the Keyfactor Platform.

Support for BeyondTrust Password Safe PAM Provider

BeyondTrust Password Safe PAM Provider is supported by Keyfactor for Keyfactor customers. If you have a support issue, please open a support ticket via the Keyfactor Support Portal at https://support.keyfactor.com

To report a problem or suggest a new feature, use the Issues tab. If you want to contribute actual bug fixes or proposed enhancements, use the Pull requests tab.

Initial Configuration of PAM Provider

In order to allow Keyfactor to use the new BeyondTrust Password Safe PAM Provider, the definition needs to be added to the application database. This is done by running the provided kfutil tool to install the PAM definition, which only needs to be done one time. It uses API credentials to access the Keyfactor instance and create the PAM definition.

The kfutil tool, after being configured for API access, can be run in the following manner to install the PAM definition from the Keyfactor repository:

kfutil pam types-create -r beyondtrust-beyondinsight-pam -n BeyondTrust-PasswordSafe

Configuring Parameters

The following are the parameter names and a description of the values needed to configure the BeyondTrust Password Safe PAM Provider.

Initialization Parameters for each defined PAM Provider instance

Initialization parameter Display Name Description
Host BeyondTrust Host The IP address or URL of the BeyondTrust instance, including the API endpoint (default endpoint: BeyondTrust/api/public/v3/)
APIKey BeyondTrust API Key The base64 encode API registration key from BeyondTrust
Username BeyondTrust Username The username that the API request will be run as. This user needs to have sufficient permissions on the API key and the credentials to request
ClientCertificate BeyondTrust Client Certificate Thumbprint (OPTIONAL - enter whitespace if unused) The thumbprint for a client certificate to authenticate with BeyondTrust. Can be blank. Certificate should be present with exportable private key in the User's Personal store.

Instance Parameters for each retrieved secret field

Instance parameter Display Name Description
SystemId BeyondTrust System ID The ID of the system that holds the requested credential
AccountId BeyondTrust Account ID The ID of the account on the system, whose password will be retrieved

Configuring for PAM Usage

In Beyond Trust

The Beyond Trust platform needs to be configured to allow for API requests to retrieve credentials for the systems and accounts necessary. In the Web Console, the Configuration section API Registrations will allow an API Key to be generated for a user, as well as specify if a Client Certificate will be required. The user that gets assigned this API Key should not be the default Administrator, and they will also need to be granted access to retrieve Credentials from the appropriate accounts in the User Management section. If using a Client Certificate, this will need to be exported from the Beyond Trust platform itself or issued from a properly configured PKI that the platform trusts. If you are not using a Client Certificate, enter whitespace into this field during configuration in Keyfactor.

After defining the necessary Functional Account to handle Managed System actions and administration, a Managed System can be defined and then a Managed Account with a Credential added. You will need to get the IDs for the Account and System to use them in Keyfactor. In order to obtain these, start by going to the "Managed System" or "Managed Accounts" area in Beyond Trust. Find the relevant system or account you are looking for, and click the 3-dot options on the far-right, and go to the "Advanced Details". The ID number will show up in the URL field after opening the Advanced Details.

On Keyfactor Universal Orchestrator

Installation

Configuring the UO to use the Beyond Trust Password Safe PAM Provider requires first installing it as an extension by copying the release contents into a new extension folder named BeyondTrust-PasswordSafe. A manifest.json file is included in the release. This file needs to be edited to enter in the "initialization" parameters for the PAM Provider. Specifically values need to be entered for the parameters in the manifest.json of the PAM Provider extension:

"Keyfactor:PAMProviders:BeyondTrust-PasswordSafe:InitializationInfo": {
      "Host": "https://<IP address | FQDN>/BeyondTrust/api/public/v3/",
      "APIKey": "base64 API Key from BeyondTrust",
      "Username": "username (with API Key and credential access)",
      "ClientCertificate": "thumbprint of Client Auth Cert - whitespace or blank if unused"
    }
Usage

To use the PAM Provider to resolve a field, for example a Server Password, instead of entering in the actual value for the Server Password, enter a json object with the parameters specifying the field. The parameters needed are the "instance" parameters above:

{"SystemId":"numeric ID of the system with the requested credential","AccountId":"numeric ID of the Account on the system with the password to retrieve"}

If a field supports PAM but should not use PAM, simply enter in the actual value to be used instead of the json format object above.

In Keyfactor - PAM Provider

Installation

In order to setup a new PAM Provider in the Keyfactor Platform for the first time, you will need to run the kfutil tool (see Initial Configuration of PAM Provider).

After the installation is run, the DLLs need to be installed to the correct location for the PAM Provider to function. From the release, the beyondtrust-beyondinsight-pam.dll should be copied to the following folder locations in the Keyfactor installation. Once the DLL has been copied to these folders, edit the corresponding config file. You will need to add a new Unity entry as follows under <container>, next to other <register> tags.

Install Location DLL Binary Folder Config File
WebAgentServices WebAgentServices\bin\ WebAgentServices\web.config
Service Service\ Service\CMSTimerService.exe.config
KeyfactorAPI KeyfactorAPI\bin\ KeyfactorAPI\web.config
WebConsole WebConsole\bin\ WebConsole\web.config

When enabling a PAM provider for Orchestrators only, the first line for WebAgentServices is the only installation needed.

The Keyfactor service and IIS Server should be restarted after making these changes.

<register type="IPAMProvider" mapTo="Keyfactor.Extensions.Pam.BeyondInsight.PasswordSafe.PasswordSafePAM, beyondtrust-beyondinsight-pam" name="BeyondTrust-PasswordSafe" />
Usage

In order to use the PAM Provider, the provider's configuration must be set in the Keyfactor Platform. In the settings menu (upper right cog) you can select the Priviledged Access Management option to configure your provider instance.

After it is set up, you can now use your PAM Provider when configuring certificate stores. Any field that is treated as a Keyfactor secret, such as server passwords and certificate store passwords can be retrieved from your PAM Provider instead of being entered in directly as a secret.


About

A Keyfactor IPAMProvider plugin that provides support for retrieving passwords of Managed Accounts on Managed Systems in Beyond Trust Password Safe.

Topics

Resources

License

Stars

Watchers

Forks

Languages