Lesson 5: Create an identity for your workload
In this lesson, you will learn how to create and identity in Conjur Cloud for your workload.
Workloads are any non-human users in your environment. You create a workload identity by defining it in a Conjur Cloud policy object called a
host can be created with different attributes based on:
the type of workload
the method of authentication used by the workload
hostthat authenticates using an API key:
This task assumes you are logged in to the Conjur Cloud CLI as a Conjur Cloud admin user.
Create a policy for the
- !host id: <host name> annotations: authn/api-key: true
Save the policy as myapp-host.yaml.
Load the policy file into the
conjur policy load -b data -f myapp-host.yaml
The policy is loaded and an API key is returned.
Copy the API key. You will need this key when you authenticate myapp to Conjur Cloud.
Save the API key securely as a Privilege Cloud account.