Add a CyberArk Conjur custom secret manager
This tutorial explains how to create CyberArk Conjur custom secret manager.
You can link CyberArk Conjur to Harness and use it to store any sensitive data you use in Harness, including secrets.
Before you begin
You need an understanding of:
CyberArk Conjur secret manager permission requirements
Make sure you have Create/Edit permissions for secrets.
Make sure you have Create/Edit permissions for connectors.
Step 1: Create a Secret Manager Template
You can create a Secret Manager Template at the account, org, or project scope.
This topic shows you how to create a Secret Manager Template at the Project scope.
In your Harness Account, go to your Project.
Select Project Settings, then under Project-level resources, select Templates.
Select New Template, then select Secret Manager.
Enter a Name for your template.
(Optional) In Description, select the pencil icon and enter a description.
(Optional) In Tags, select the pencil icon and assign a tag.
Enter a Version Label.
(Optional) Select the upload icon and upload a Logo.
Under Save To, select Project, then select Start.
Select your Script Type, then select your script location.
Enter the following script in Script.
Select Configuration, then Select Add Input Variable.
Set up the following input variables.
CONJUR_APPLIANCE_URLType: String
Value:
<+input>
HOST_IDType: String
Value:
<+input>
API_KEY_SECRET_IDType: String
Value:
conjur_api_key
AUTHENTICATORType: String
Value:
<+input>
ACCOUNTType: String
Value:
<+input>
IDENTIFIERType: String
Value:
<+input>
Select Save.
For detailed steps to create a Secret Manager Template, go to Create a Secret Manager Template.
Example YAML
Step 2: Add a Custom Secret Manager
You can add a Custom Secret Manager at the account, org, and project scope.
To do this, go to Project, Organization, or Account settings.
This topic shows you how to add a Custom Secret Manager in the project scope.
In your Harness Account, go to your Project.
In Project Setup, select Connectors and then select New Connector.
In Secret Managers, select Custom Secret Manager. The Custom Secret Manager settings open.
Enter a Name for your Custom Secret Manager. Select Continue.
Select Select Template. The Template Library appears with all the Secret Manager Templates listed.
Select the desired scope and select a your CyberArk Conjur Secret Manager template from the Template Library.
You can also search for a specific Secret Manager Template by entering its name in Search. Once you select the Secret Manager Template, the details are displayed in the Template Studio.
Select Use Template.
Enter values for the required Input Variables. Harness allows you to use Fixed Values and Runtime Inputs.
Select Fixed for the
CONJUR_APPLIANCE_URL,HOST_ID,AUTHENTICATOR,API_KEY_SECRET_ID, andACCOUNT.The
API_KEY_SECRET_IDshould be an identifier for a Harness Secret, to be used for authenticating with Conjur. Create the secret using any secret manager other than Conjur. Based on where you create the secret, this can be in the format ofaccount.secretid,org.secretid, or justsecretid.The following values are used to authenticate with Conjur using this API URL format:
$CONJUR_APPLIANCE_URL/$AUTHENTICATOR/$ACCOUNT/$HOST_ID/authenticateThe following values are used to fetch a secret from Conjur using this API URL format:
$CONJUR_APPLIANCE_URL/secrets/$ACCOUNT/$KIND/$IDENTIFIERSet the
IDENTIFIERto not be Fixed, and provide an example secret identifier to be used for testing the connection.The
IDENTIFIERshould be in the following format:<vault>/<lob-user>/<safe>/<account>/<property>
Select Continue.
In Delegates Setup, enter Selectors for specific Delegates that you want to allow to connect to this Connector. Select Save and Continue.
In Connection Test, select Finish after your connection is successful.
Step 3: Use the Custom Secret Manager
Create an Encrypted Text using the Custom Secrets Manager you created earlier. Enter the name and values of all the Input Variables defined while creating the Shell Script Template.
For more information on creating Encrypted Text Secret, go to Add Encrypted Text.
Last updated
Was this helpful?