Welcome to this HashiCorp Vault lab repo, where you can get hands-on experience with HashiCorp Vault using GitHub Codespaces. In this repository, you’ll find a variety of labs that walk you through using HashiCorp Vault in different scenarios.
Note: GitHub provides users with 120 core hours for FREE per month. Check your current consumption of hours here. Additionally, you can set a limit of spending for Codespaces on your account here.
- A pre-configured development container that installs and runs Vault in your Codespace.
- Multiple labs, each with its own
README.md
and step-by-step instructions. - Example files, scripts, and configurations to help you practice Vault’s core features.
- Create a Codespace from this repo (click the button below or go to the “Code” drop-down, select “Codespaces,” and create a new one).
- Once the Codespace is running, open the integrated terminal.
- Follow the instructions in each lab to complete the exercises.
Below are a few example labs you can explore. Each link points to a specific lab file or folder within this repository.
Lab | Description | Codespace | Link |
---|---|---|---|
Install Vault | Install Vault from Scratch and Start the Service | Launch | Lab |
Intro to Vault | Learn basic Vault commands. | Launch | Lab |
Using the Vault UI | Configure and Manage Vault using the UI | Launch | Lab |
Using the Vault CLI | Practice mananaging Vault using the CLI | Launch | Lab |
Initialize and Unseal | Learn how to initialize and unseal Vault | Launch | Lab |
Lab | Description | Codespace | Link |
---|---|---|---|
Vault Tokens | Learn the basics of using Vault tokens to authenticate. | Launch | Lab |
Vault Response Wrapping | Use Response Wrapping to protect secrets | Launch | Lab |
AppRole Auth Method | Enable, configure, and use the AppRole Auth Method | Launch | Lab |
Userpass Auth Method | Configure the Userpass Auth Method | Launch | Lab |
Kubernetes Auth Method | Learn how to enable and configure the k8s auth method | Launch | Lab |
Lab | Description | Codespace | Link |
---|---|---|---|
Key/Value Secrets Engine | Create, read, update, and delete secrets in Vault. | Launch | Lab |
Transit Secrets Engine | Learn how to encrypt data using HashiCorp Vault | Launch | Lab |
PKI Secrets Engine | Use Vault as a Certificate Authority and generate certs | Launch | Lab |
Lab | Description | Codespace | Link |
---|---|---|---|
Vault Policies | Create and assign policies to restrict access. | Launch | Lab |
Vault Audit Devices | Enable and configure an audit device. | Launch | Lab |
Integrate Vault w/ Terraform | Learn how to query Vault when using Terraform | Launch | Lab |
If you’d like to add more labs or improve these, feel free to fork this repo or open a pull request. Feedback and contributions are always welcome!
Enjoy your journey with Vault!