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
>Sensitive Variables
from the left sidebar. -
Select the β Create new sensitive variable button at the top of the page.
-
Fill in the details and click Save.
Alternatively, variables can also be added from an Deployment Step Advanced script by clicking the β 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
>Sensitive Variables
from the left sidebar. -
Select π Delete 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.