Sensitive Variables
Sensitive Variables
Chocolatey Central Management gives you the ability to create sensitive variables for use in Deployment Steps.
The Sensitive Variables page can be accessed from the Administration section of Chocolatey Central Management. The page is only visible to users who have permissions to create or delete sensitive variables.
Creating a new Sensitive Variable
-
From the Chocolatey Central Management dashboard, select Administration then Sensitive Variables from the left sidebar and select the Create Sensitive option.
-
Fill in the details and click Save.
Alternatively, variables can also be added from an Deployment Step Advanced script by clicking the Plus sign button in the upper right corner.
Adding Sensitive Variables to scripts
WARNING
To ensure that you don’t accidentally leak sensitive information into Chocolatey logs, be sure to use them with commands or parameters that are hidden from the logs.
- In an Advanced script of a Deployment Step, select the variable to insert from the Sensitive Variables drop down.
Deleting Sensitive Variables
-
From the Chocolatey Central Management dashboard, select Administration then Sensitive Variables from the left sidebar and select the View Sensitive option.
-
Select Delete button beside the Sensitive Variable you wish to delete.
Editing / Changing Sensitive Variables
You cannot change or edit a Sensitive Variable directly. If you need to change the value a Sensitive Variable has, please delete it and create it again.