read and execute permissions.
Conjur policies are defined in .yml files. For recommended structure and patterns, see Policy best practices in the CyberArk Conjur documentation. For policy syntax and operators, see the Policy syntax reference.
Prerequisites
- A Conjur server (Conjur Cloud, Conjur Enterprise, or Conjur Open Source)
- A Conjur policy that defines a host for Activepieces and grants it access to the variables you want to use
Conjur host configuration for Activepieces
To allow Activepieces to read secrets, configure a Conjur policy that declares a group, variables, a host, a layer, and the right permissions. The steps below describe how to create that policy file.Example policy (Activepieces)
The following policy defines a policyactivepieces with a group, two variables, a host, a layer, and the grants so the host can read the variables.
Policy steps (summary)
-
Declare a group at the root of the policy (e.g.
activepieces-secrets). This group will be allowed to read (and optionally execute) the variables. -
Declare variables and give the group
readandexecuteon them (so the host can fetch secret values): -
Declare the host that Activepieces will use (e.g.
activepieces) and a layer (e.g.activepieces), and add the host to the layer: -
Grant the layer membership in the group that has access to the variables:
- Load the policy into Conjur. Conjur will create the host and return an API key for that host. You will use this API key and the host identity when connecting Activepieces.
Server URL and organization
- Conjur Cloud: Use a URL of the form
https://<subdomain>.secretsmgr.cyberark.cloud/api/
and set Organization account name toconjurunless your Cloud tenant uses a different account. - On-prem / Enterprise: Use your Conjur server base URL (e.g.
https://conjur.example.com) and your organization account name.
Connecting to Activepieces
- Go to Platform Admin → Security → Secret Managers.
- Select CyberArk Conjur from the provider list.
- Enter the connection details:
- URL: Conjur server URL (e.g.
https://conjur.example.comor Conjur Cloud URL above). Do not add a trailing slash. - Organization account name: Your Conjur account (e.g.
conjurfor Conjur Cloud). - Login ID: For host authentication this must be the Conjur host ID with a
host/prefix, e.g.host/activepieces/activepieces(policy id and host name as in your policy). - API Key: The host API key returned when the host was created (see policy load response above).
- URL: Conjur server URL (e.g.
- Click Connect to test and save the connection.
Using CyberArk Conjur secrets in connections
When configuring a connection that uses a secret:- Click the key icon (🔑) next to the credential field.
- Select CyberArk Conjur as the secret manager.
- Enter the Secret key: the Conjur variable path in the form
policy_id/variable_id.
For the example policy above, use:activepieces/key-1activepieces/key-2