Conjur - What are the permissions to change, update, or fetch a variable in conjur
93
Created On 11/10/26 10:58 AM - Last Modified 11/10/26 12:56 PM
Question
What are the permissions to change, update, or fetch a variable in conjur?
Environment
v5.0;11.7;12.4;12.6;12.7 Conjur
Answer
There are three permissions that will affect how you can interact with a variable:
read- Permits a role to view the variable in Conjur and associated meta-data. This permission does not allow fetching of the value.
execute - Permits a role to fetch the value of a variable.
update - Allows a role to change the value of a variable.
If you’re unable to change or update a variable, make sure you have the proper permissions.
Below is an example policy snippet where the user “alice” is given full permissions on the variable “db-password”.
- !permit
role: !user alice
privilege: [ read, execute, update ]
resource: !variable db-password
Additional Information
Details
PROBLEM: -
Unable to change, update, or fetch a variable
SOLUTION: -
There are three permissions that will affect how you can interact with a variable:
read
Permits a role to view the variable in Conjur and associated meta-data. This permission does not allow fetching of the value.
execute
Permits a role to fetch the value of a variable.
update
Allows a role to change the value of a variable.
If you’re unable to change or update a variable, make sure you have the proper permissions.
Below is an example policy snippet where the user “alice” is given full permissions on the variable “db-password”.
- !permit
role: !user alice
privilege: [ read, execute, update ]
resource: !variable db-password