From the course: Learning HashiCorp Vault
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Configuring the database secrets engine - Vault Tutorial
From the course: Learning HashiCorp Vault
Configuring the database secrets engine
- [Instructor] I'll use Visual Studio code and the integrated terminal to demonstrate the database secrets engine. If your containers are already running, you'll need to reset them. From the Exercise Files root directory, execute docker-compose down. Then bring them back up with docker-compose up -d. We'll now need to initialize and unseal the vault server, vault operator init. Now we need to unseal it. Copy the first unseal key, vault operator unseal, paste in the key, and two more times, and we're logged in. Our next step is to enable the database secrets engine, vault secrets enable database, and it's enabled. The next set of commands are rather lengthy, so I saved them here in setup_commands.txt under the mariadb folder. I'll go over them and then we can copy and paste them into the integrated terminal. The first command here, writes a configuration to the database secrets engine. The path is database/config/my-mariadb, which is the name we've given to this configuration. The…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Running a Vault server2m 21s
-
(Locked)
Initializing and unsealing a Vault server2m 43s
-
(Locked)
Running the containers5m 18s
-
(Locked)
SSH secrets engine overview1m 38s
-
(Locked)
SSH secrets engine set up6m 44s
-
(Locked)
Database secrets engine overview2m 1s
-
(Locked)
Configuring the database secrets engine3m 23s
-
(Locked)
Policies and credentials with the database secrets engine5m 18s
-
(Locked)
-
-
-