Create secrets in Vault

This guide shows you how to create secrets using the HashiCorp Vault UI.

Create a secret

1

Log in to Vault UI

Open the Vault Server UI and log in with your credentials.

2

Access KV Secrets Engine

Click anywhere on the KV bar to access the Secrets Engine.

3

Start secret creation

Click the Create secret + button.

4

Configure secret path

Choose a path from the dropdown menu or enter it manually. This path must be unique and will be used to reference the secret later.

5

Set version limit

Enter the number of versions to keep for the secret metadata.

6

Add secret data

In the key field in the secret data section, enter your secret information. For example, you might use test_pass as the key name.

7

Verify data

Click the eye icon to verify the information was entered correctly. You can include multiple keys within one path or use the Add button to enter additional secret data.

8

Save secret

Click the Save button to store your secret data.

Use JSON format

You can also enter secrets using JSON format. Use the JSON toggle switch to switch between the form view and JSON view.

The Version dropdown menu refers to the iteration of the secret, not the version of the KV Vault Engine.

Manage secrets

Created secrets appear alphabetically in the list. Use the dropdown menu to perform actions such as:

  • Viewing secret details
  • Editing secrets
  • Deleting secrets
  • Viewing version history

Next steps