- Lab
- A Cloud Guru
Configure Authentication with HashiCorp Vault
As part of this lab, we will be required to create a policy, and a token, that can be used to authenticate against a vault server.
Path Info
Table of Contents
-
Challenge
Unseal the Vault and Log in with the Root Token
- In the
Vault Server
, retrieve the vault keys. - Unseal the vault.
- Log in with the
Initial Root Token
.
- In the
-
Challenge
Enable KV Secrets Engine and Write a Generic Test Secret
- Enable a
kv
secrets engine at thesecrets-kv
path. - Write a secret to the
secrets-kv
path.
- Enable a
-
Challenge
Create a Policy That Gives Read Permissions to the KV Secrets Engine
- Create a policy file named
my_token_policy.hcl
. - Populate the policy file.
- Write the policy.
- Create a policy file named
-
Challenge
Create a Token, Test It Out, and Then Revoke It
- Create a token.
- Copy the
client_token
. - Log in with the newly created token.
- Attempt to read the secret.
- Attempt to write a new secret.
- Log in with the
Initial Root Token
. - Revoke the
client_token
.
What's a lab?
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.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.