Difficulty: beginner
Estimated Time: 10 minutes

HashiCorp Vault secures, stores, and tightly controls access to tokens, passwords, certificates, API keys, and other secrets in modern computing.

YouTube

This lab walks you through the installation and configuration of a Vault server, and some of the primary tasks in operating Vault:

  • Installing Vault
  • Write Vault Configuration File
  • Initialize Vault
  • Enable Audit Logging
  • Generating Root Token
  • Key Rotation

Vault logo

Also, refer to the following guides:

In this lab, you performed the following tasks:

  • Installing Vault
  • Run Vault in Development Mode
  • Write Vault Configuration File
  • Initialize Vault
  • Enable Audit Logging
  • Generating Root Token
  • Key Rotation

To learn more about Vault operation topics, refer to the following resources.

Resources:

Vault Operations

Step 1 of 6

Installing Vault

This tutorial demonstrate the Vault installation on Ubuntu. For other operating systems, refer to Install Vault.

Enter the following command into the terminal, or click on the command () to automatically copy it into the terminal and execute to downloads the Vault binary for Linux.

First, add the HashiCorp GPG key.

curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -

Add the official HashiCorp Linux repository.

sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"

Finally, update and install Vault.

sudo apt-get update && sudo apt-get install vault

That's it!

Execute the following command to verify the vault version.

vault version
config.hcl