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

Configuring the database secrets engine - Vault Tutorial

From the course: Learning HashiCorp Vault

Start my 1-month free trial

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…

Contents