Create and Edit Secrets¶
Secret values can either be saved as text or as files containing keys.
-
Text values: Group vault entries for a common service under a common path, and enter the path as a string value.
For example, dockerhub/username and dockerhub/password.
-
Files: Upload a key file, such as a PEM file.
Tip
DKCloudCommand option: Use the secret-write command in the command line interface.
Create or edit a secret¶
- Navigate to the Secrets page.
- Click Add Secret below the Global Secrets or Kitchen Secrets section.
- In the Add Secret dialog, enter a name.
- Select the Entry Value.
- For Text Input, enter a string containing the secret or path.
- For File Input, drag and drop or browse to select the file.
- Click Update.
To edit a secret, from the Secrets page, click Edit Secret associated with the secret. Make updates to the name and Entry Value as needed, then click Update.
Warning
After a secret value is saved, you cannot view its underlying value.
Visual example in Automation¶
