Support · Installation · License · Related Integrations
The Akeyless PAM Provider allows for the retrieval of stored account credentials from an Akeyless secret.
The Akeyless 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.
The Akeyless PAM Provider is used by Command to resolve PAM-eligible credentials for Universal Orchestrator extensions and for accessing Certificate Authorities. When configured, Command will use the Akeyless PAM Provider to retrieve credentials needed to communicate with the target system. There are two ways to install the Akeyless PAM Provider, and you may elect to use one or both methods:
- Locally on the Keyfactor Command server: PAM credential resolution via the Akeyless PAM Provider will occur on the Keyfactor Command server each time an elegible credential is needed.
- Remotely On Universal Orchestrators: When Jobs are dispatched to Universal Orchestrators, the associated Certificate Store extension assembly will use the Akeyless PAM Provider to resolve eligible PAM credentials.
Before proceeding with installation, you should consider which pattern is best for your requirements and use case.
Important
For the most up-to-date and complete documentation on how to install a PAM provider extension, please visit our product documentation
To install Akeyless PAM Provider, it is recommended you install kfutil. kfutil is a command-line tool that simplifies the process of creating PAM Types in Keyfactor Command.
- Akeyless credentials w/ permission to access the secret(s) being used. See the Akeyless documentation for more information on how to configure the different types of auth.
Create the required PAM Types in the connected Command platform.
# Akeyless
kfutil pam-types create -r akeyless-pam -n AkeylessFor full API docs please visit our product documentation
Below is the payload to POST to the Keyfactor Command API
{
"Name": "Akeyless",
"Parameters": [
{
"Name": "Url",
"DisplayName": "Akeyless URL",
"Description": "The URL to the Akeyless instance. Defaults to: https://api.akeyless.io",
"DataType": 1,
"InstanceLevel": false
},
{
"Name": "AccessId",
"DisplayName": "Access ID",
"Description": "The access key ID used to authenticate to Akeyless using `access_key` authentication.",
"DataType": 2,
"InstanceLevel": false
},
{
"Name": "AccessKey",
"DisplayName": "Access Key",
"Description": "The access key used to authenticate to Akeyless using `access_key` authentication.",
"DataType": 2,
"InstanceLevel": false
},
{
"Name": "AuthType",
"DisplayName": "Auth Type",
"Description": "The auth type used to authenticate to the Akeyless platform. Supported types are `access_key`.",
"DataType": 1,
"InstanceLevel": false
},
{
"Name": "SecretName",
"DisplayName": "Secret Name",
"Description": "The full name (path) of the secret in Akeyless that contains the credential to retrieve.",
"DataType": 1,
"InstanceLevel": true
},
{
"Name": "SecretType",
"DisplayName": "Secret Type",
"Description": "The type of secret stored in Akeyless. Supported types are `static_kv,static_text,static_json`.",
"DataType": 1,
"InstanceLevel": true
},
{
"Name": "StaticSecretFieldName",
"DisplayName": "Static Secret Field Name",
"Description": "The field name within a static secret to retrieve the credential from. Required for `static_kv` and optional for `static_json` secret types.",
"DataType": 1,
"InstanceLevel": true
}
]
}-
On the server that hosts Keyfactor Command, download and unzip the latest release of the Akeyless PAM Provider from the Releases page.
-
Copy the assemblies to the appropriate directories on the Keyfactor Command server:
Keyfactor Command 11+
-
Copy the unzipped assemblies to each of the following directories:
C:\Program Files\Keyfactor\Keyfactor Platform\WebAgentServices\Extensions\akeyless-pamC:\Program Files\Keyfactor\Keyfactor Platform\WebConsole\Extensions\akeyless-pamC:\Program Files\Keyfactor\Keyfactor Platform\KeyfactorAPI\Extensions\akeyless-pam
Keyfactor Command 10
-
Copy the assemblies to each of the following directories:
C:\Program Files\Keyfactor\Keyfactor Platform\WebAgentServices\bin\akeyless-pamC:\Program Files\Keyfactor\Keyfactor Platform\KeyfactorAPI\bin\akeyless-pamC:\Program Files\Keyfactor\Keyfactor Platform\WebConsole\bin\akeyless-pamC:\Program Files\Keyfactor\Keyfactor Platform\Service\akeyless-pam
-
Open a text editor on the Keyfactor Command server as an administrator and open the
web.configfile located in theWebAgentServicesdirectory. -
In the
web.configfile, locate the<container> </container>section and add the following registration:<container> ... <!--The following are PAM Provider registrations. Uncomment them to use them in the Keyfactor Product:--> <!--Add the following line exactly to register the PAM Provider--> <register type="IPAMProvider" mapTo="Keyfactor.Extensions.Pam.Akeyless, Keyfactor.Command.PAMProviders" name="Akeyless" /> </container>
-
Repeat steps 2 and 3 for each of the directories listed in step 1. The configuration files are located in the following paths by default:
C:\Program Files\Keyfactor\Keyfactor Platform\WebAgentServices\web.configC:\Program Files\Keyfactor\Keyfactor Platform\KeyfactorAPI\web.configC:\Program Files\Keyfactor\Keyfactor Platform\WebConsole\web.configC:\Program Files\Keyfactor\Keyfactor Platform\Service\CMSTimerService.exe.config
-
-
Restart the Keyfactor Command services (
iisreset).
-
Install the Akeyless PAM Provider assemblies.
-
Using kfutil: On the server that hosts the Universal Orchestrator, run the following command:
# Windows Server kfutil orchestrator extension -e akeyless-pam@latest --out "C:\Program Files\Keyfactor\Keyfactor Orchestrator\extensions" # Linux kfutil orchestrator extension -e akeyless-pam@latest --out "/opt/keyfactor/orchestrator/extensions"
-
Manually: Download the latest release of the Akeyless PAM Provider from the Releases page. Extract the contents of the archive to:
- Windows Server:
C:\Program Files\Keyfactor\Keyfactor Orchestrator\extensions\akeyless-pam - Linux:
/opt/keyfactor/orchestrator/extensions/akeyless-pam
- Windows Server:
-
-
Included in the release is a
manifest.jsonfile that contains the following object:{ "Keyfactor:PAMProviders:Akeyless:InitializationInfo": { "Url": "<Url>", "AccessId": "<AccessId>", "AccessKey": "<AccessKey>", "AuthType": "<AuthType>" } }Populate the fields in this object with credentials and configuration data collected in the requirements section.
-
Restart the Universal Orchestrator service.
-
In the Keyfactor Command Portal, hover over the ⚙️ (settings) icon in the top right corner of the screen and select Priviledged Access Management.
-
Select the Add button to create a new PAM provider. Click the dropdown for Provider Type and select Akeyless.
Important
If you're running Keyfactor Command 11+, make sure Remote Provider is unchecked.
- Populate the fields with the necessary information collected in the requirements section:
| Initialization parameter | Display Name | Description |
|---|---|---|
| Url | Akeyless URL | The URL to the Akeyless instance. Defaults to: https://api.akeyless.io |
| AccessId | Access ID | The access key ID used to authenticate to Akeyless using access_key authentication. |
| AccessKey | Access Key | The access key used to authenticate to Akeyless using access_key authentication. |
| AuthType | Auth Type | The auth type used to authenticate to the Akeyless platform. Supported types are access_key. |
- Click Save. The PAM provider is now available for use in Keyfactor Command.
Now, when defining Certificate Stores (Locations->Certificate Stores), Akeyless will be available as a PAM provider option. When defining new Certificate Stores, the secret parameter form will display tabs for Load From Keyfactor Secrets or Load From PAM Provider.
Select the Load From PAM Provider tab, choose the Akeyless provider from the list of Providers, and populate the fields with the necessary information from the table below:
| Instance parameter | Display Name | Description |
|---|---|---|
| SecretName | Secret Name | The full name (path) of the secret in Akeyless that contains the credential to retrieve. |
| SecretType | Secret Type | The type of secret stored in Akeyless. Supported types are static_kv,static_text,static_json. |
| StaticSecretFieldName | Static Secret Field Name | The field name within a static secret to retrieve the credential from. Required for static_kv and optional for static_json secret types. |
Keyfactor Command 11+
In Command 11 and greater, before using the Akeyless PAM type, you must define a Remote PAM Provider in the Command portal.
-
In the Keyfactor Command Portal, hover over the ⚙️ (settings) icon in the top right corner of the screen and select Priviledged Access Management.
-
Select the Add button to create a new PAM provider.
-
Make sure that
Remote Provideris checked. -
Click the dropdown for Provider Type and select Akeyless.
-
Give the provider a unique name.
-
Click "Save".
When defining Certificate Stores (Locations->Certificate Stores), Akeyless can be used as a PAM provider. When defining a new Certificate Store, the secret parameter form will display tabs for Load From Keyfactor Secrets or Load From PAM Provider.
Select the Load From PAM Provider tab, choose the Akeyless provider from the list of Providers, and populate the fields with the necessary information from the table below:
| Instance parameter | Display Name | Description |
|---|---|---|
| SecretName | Secret Name | The full name (path) of the secret in Akeyless that contains the credential to retrieve. |
| SecretType | Secret Type | The type of secret stored in Akeyless. Supported types are static_kv,static_text,static_json. |
| StaticSecretFieldName | Static Secret Field Name | The field name within a static secret to retrieve the credential from. Required for static_kv and optional for static_json secret types. |
Keyfactor Command 10
When defining Certificate Stores (Locations->Certificate Stores), Akeyless can be used as a PAM provider.
When entering Secret fields, select the Load From Keyfactor Secrets tab, and populate the Secret Value field with the following JSON object:
{"SecretName":"The full name (path) of the secret in Akeyless that contains the credential to retrieve.","SecretType":"The type of secret stored in Akeyless. Supported types are `static_kv,static_text,static_json`.","StaticSecretFieldName":"The field name within a static secret to retrieve the credential from. Required for `static_kv` and optional for `static_json` secret types."}
We recommend creating this JSON object in a text editor, and copying it into the Secret Value field.
Note
Additional information on Akeyless can be found in the supplemental documentation.
When configuring Akeyless for use as a PAM Provider with Keyfactor, you will need to ensure that your instance is configured for API access using the desired auth method. This can be done by an Akeyless administrator. For more details visit the vendor docs here.
Once API access is configured the credential MUST be granted access to view secret(s) you'll be using.
In Akeyless, access is controlled through Access Roles. A role ties one or more auth methods to a set of permitted item paths. The steps below show how to grant an API Key auth method read access to a secret using the Akeyless console.
1. Create an Access Role (if one doesn't exist already)
Navigate to Access Roles → New Role, give it a name (e.g. keyfactor-pam), and save.
2. Associate the Auth Method with the Role
Open the role, go to the Auth Methods tab, and click Associate. Select the API Key auth method whose Access ID and Access Key you'll be configuring in Keyfactor.
3. Add a secret access rule to the Role
Still in the role, go to the Access Rules (or Items) tab and click Add Rule:
| Field | Value |
|---|---|
| Item path | The full path to your secret, e.g. /my-org/my-app/db-password. Wildcards are supported, e.g. /my-org/my-app/* |
| Access type | read |
Save the rule.
Once the rule is in place, the auth method can authenticate and retrieve any secret that matches the configured path. You can verify access using the Akeyless CLI:
akeyless auth --access-id <ACCESS_ID> --access-key <ACCESS_KEY>
akeyless get-secret-value --name /my-org/my-app/db-password --token <TOKEN>The full service account setup can be scripted using the Akeyless CLI. The create-auth-method-api-key command returns the Access ID and Access Key you'll need for the Keyfactor configuration.
# 1. Create the API Key auth method
# The response includes the Access ID and Access Key — save these.
akeyless create-auth-method-api-key --name /keyfactor/pam-auth-method
# 2. Create an access role
akeyless create-role --name keyfactor-pam
# 3. Associate the auth method with the role
akeyless assoc-role-auth-method \
--role-name keyfactor-pam \
--am-name /keyfactor/pam-auth-method
# 4. Grant the role read access to a secret path (wildcards supported)
akeyless set-role-rule \
--role-name keyfactor-pam \
--path "/my-org/my-app/*" \
--capability readAfter adding and sharing a secret, you can use the secret's name (the "Secret name") to retrieve credentials from Akeyless as a PAM Provider.
When installing on the Universal Orchestrator (UO), the PAM provider is installed on and run from the UO host. Below is a sequence diagram showing the flow of the PAM provider when it is run from the UO.
sequenceDiagram
KeyfactorCommand->>KeyfactorCommand: New job created.
UO->>KeyfactorCommand: Hello do you have any jobs for me?
KeyfactorCommand->>UO: Yes here's a job.
UO->>Akeyless: Hello here are my client credentials.
Akeyless->>UO: Here's your API token.
UO->>Akeyless: I need secret named `my_secret`, here's my API token.
Akeyless->>Akeyless: Check secret ACL.
Akeyless->>UO: This is allowed, here's the secret.
UO->>UO: Running job.
UO->>KeyfactorCommand: Job completed.
When installing the PAM provider on the Keyfactor Command Host, it is installed on and run from the Keyfactor Command host. Below is a sequence diagram showing the flow of the PAM provider when it is run from the Keyfactor Command Host.
sequenceDiagram
KeyfactorCommand->>KeyfactorCommand: Creating a new job.
KeyfactorCommand->>Akeyless: Hello here are my credentials.
Akeyless->>KeyfactorCommand: Here's your API token.
KeyfactorCommand->>Akeyless: I need secret named `my_secret`, here's my API token.
Akeyless->>Akeyless: Check secret ACL.
Akeyless->>KeyfactorCommand: This is allowed, here's the secret.
UO->>KeyfactorCommand: Hello do you have any jobs for me?
KeyfactorCommand->>UO: Yes here's a job with these credentials I pulled from Akeyless.
UO->>UO: Running job.
UO->>KeyfactorCommand: Job completed.
This method uses an Access Key and Access ID pair to authenticate to the Akeyless API. These credentials can be created in the Akeyless console. For more information, see the Akeyless documentation.
{
"extensions": {
"Keyfactor.Platform.Extensions.IPAMProvider": {
"PAMProviders.Akeyless.PAMProvider": {
"assemblyPath": "akeyless-pam.dll",
"TypeFullName": "Keyfactor.Extensions.Pam.Akeyless.AkeylessPam"
}
}
},
"Keyfactor:PAMProviders:Akeyless-:InitializationInfo": {
"Url": "https://api.akeyless.io",
"AuthType": "access_key",
"AccessId": "<ACCESS_ID>",
"AccessKey": "<ACCESS_KEY>"
}
}Below are the types of Akeyless secret that are supported by this provider.
For full details on static secrets, see the Akeyless documentation.
| Secret Type | Description | Additional Fields |
|---|---|---|
static_text |
A static secret whose value is returned as a plain string | N/A |
static_json |
A static secret containing JSON; a specific field can optionally be extracted | Optional: StaticSecretFieldName. Use this to parse a specific field value from a JSON secret, else the full JSON blob will be returned |
static_kv |
A static secret containing key-value pairs; a specific field is extracted by name | Required: StaticSecretFieldName. Use this to parse a specific field value from a key-value secret. For example password. |
A static secret whose entire value is a plain string. The value is returned as-is with no parsing.
Example secret value in Akeyless:
s3cr3tP@ssword!
Example instance parameter configuration:
| Parameter | Value |
|---|---|
SecretName |
/my-org/my-app/db-password |
SecretType |
static_text |
A static secret whose value is a JSON object. The provider can return either the full JSON blob or a single extracted field.
- If
StaticSecretFieldNameis omitted, the full JSON string is returned. - If
StaticSecretFieldNameis provided, only the value of that field is returned.
Note: The Keyfactor Command portal may display
StaticSecretFieldNameas a required field. If you want the full JSON blob returned (no field extraction), enter a single space () in the field — the provider treats whitespace-only values as empty.
Example secret value in Akeyless:
{
"username": "db_user",
"password": "s3cr3tP@ssword!"
}Example instance parameter configuration (extract a single field):
| Parameter | Value |
|---|---|
SecretName |
/my-org/my-app/db-credentials |
SecretType |
static_json |
StaticSecretFieldName |
password |
A static secret whose value is a set of key-value pairs, one per line in key=value format. A specific field must be named via StaticSecretFieldName.
Example secret value in Akeyless:
username=db_user
password=s3cr3tP@ssword!
host=db.example.com
Example instance parameter configuration:
| Parameter | Value |
|---|---|
SecretName |
/my-org/my-app/db-credentials |
SecretType |
static_kv |
StaticSecretFieldName |
password |
Apache License 2.0, see LICENSE
See all Keyfactor PAM Provider extensions.