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

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs