- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud

Configure and Test HashiCorp Vault REST API
In this hands-on lab, we will be required to create a token along with a policy allowing us to create and work with secrets at specific paths. We achieve this by making various requests to the API endpoints.

Lab Info
Table of Contents
-
Challenge
Log in with Root Token and Unseal Vault
To make sure the lab is fully provisioned, please give the lab an extra 3-4 minutes before starting the lab activity.
- Unseal vault.
- Log in with root token.
-
Challenge
Enable kv Secrets Engine on Multiple Arbitrary Paths
- Enable
kv
secrets engine atsecrets-kv-X
path. - Enable
kv
secrets engine atsecrets-kv-Y
path. - Enable
kv
secrets engine atsecrets-kv-Z
path.
- Enable
-
Challenge
Create a Policy for All the Previously Created Paths: CREATE, READ, DELETE
- Create a policy file.
- Populate a policy file.
- Write a policy.
-
Challenge
Create a Token with the Previously Created Policy and Test Out the API Calls with curl
- Create token and assign the newly created policy.
- Create secrets.
- Get a secret.
- Delete a secret.
- Try to get a deleted secret.
About the author
Real skill practice before real-world application
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.