DEV Community

Frederick Ollinger
Frederick Ollinger

Posted on

Hashicorp Vault Key Value I (KV) Secrets Engine

Introduction

This tutorial assumes you have a work Vault server and are logged in with the root token.

https://dev.to/frederickollinger/production-hashicorp-vault-minimal-configuration-485a

What is a Secrets Engine

"Secrets engines are components which store, generate, or encrypt data."

What is the KV Engine

This engine allows you to store key/value pairs.

A KV2 engine also exists which introduces more complexity. This tutorial will confine itself to the KV1 secrets engine.

Turn on KV Engine

The KV engine is not on my default.

Switch it on:

vault secrets enable -path=kv kv
Enter fullscreen mode Exit fullscreen mode

Create First Secret

vault kv put kv/my-secret my-value=bluedragon
Enter fullscreen mode Exit fullscreen mode

Get First Secret

vault kv put kv/my-secret my-value=bluedragon
Enter fullscreen mode Exit fullscreen mode

Get First Secret

Links

  1. Minimal Vault Server Setup

https://dev.to/frederickollinger/production-hashicorp-vault-minimal-configuration-485a

  1. Vault Secrets

https://www.vaultproject.io/docs/secrets

Top comments (0)