- 30 Mar 2024
-
DarkLight
-
PDF
Creating a Secret using the Vault UI
- Updated on 30 Mar 2024
-
DarkLight
-
PDF
To create a secret within Vault:
-
Go to the Vault Server UI connected with IAP and login.
Figure 1: Vault UI
-
Click anywhere on the KV bar.
Figure 2: Secrets Engine KV Bar
-
Click the Create secret + button.
Figure 3: Create Secret
-
Choose a path from the dropdown or enter manually. This must be unique, and it will be important for future steps.
-
Enter the number of versions to keep for the secret metadata.
-
In the
key
filed in the secret data section, enter the secret data information. For this example test_pass was used. -
Click the eye icon (button) to make sure the information was added correctly. You can include multiple keys within one path, or use the Add button to enter additional secret data.
-
Click the Save button to retain your secret data.
Figure 4: Save Secret
-
Secrets may be entered using JSON. The Version 1 dropdown menu pertains to the iteration of the secret entered not the version of the KV Vault Engine.
Figure 5: JSON Toggle Switch
-
The newly created secret will appear alphabetically in the list. From the dropdown menu a variety of functions maybe peformed, such as deleting and viewing details.
Figure 6: Secrets List