Getting started with HashiCorp Vault

preview_player
Показать описание
In this video I will give you an introduction to HashiCorp Vault and how you can run it locally in a Docker container (in Development mode). I will walk you through the process of getting the docker image and setting everything up to successfully connect to the vault server and write and read secrets.

COMMANDS
Get docker image: docker pull vault

Running image: docker run -d --rm --name vault-server --cap-add=IPC_LOCK -e 'VAULT_DEV_ROOT_TOKEN_ID=tdc-token' -e 'VAULT_DEV_LISTEN_ADDRESS=0.0.0.0:8200' vault

Get IP Address: docker inspect vault-server | grep IPAddress

Authenticate to server from CLI: vault login

Write secret (CLI): vault kv put secret/tdc tdcpassword=test1234

Read secret (CLI): vault kv get secret/tdc

INFO

==========================

Python script (run pip install hvac first!):

import hvac

print(read_response['data']['data']['tdcpassword'])
Рекомендации по теме
Комментарии
Автор

Thanks a lot for this video. Please do continue to make such AMAZING videos.

thandekazulu
Автор

Thank you for the simple tutorial on windows i had to install vault client binary using chocolatey, and i had to set the environment variable to ip 127.0.0.1 and expose port 8200 since the container ip is within a vm basically and not visible to the host, and everything is working great!

kayC
Автор

I love this simple demo and I learned something here. Thank you.

JoseMendez-kqwy
Автор

Great! Enough information and simplicity for a good introduction to the topic

jillsaw
Автор

thanks and this looks like a quick and easy way to get started in a dev environment. there needs to some better setup for production though.

sanketss
Автор

Great place to start, for me. Thank you.

sampark
Автор

nice and simple, thanks for the content

hectormanuel
Автор

Like I said if this video uses the new official hashicorp/vault, it would be helpful

stevebuonincontri
Автор

In python script we are passing the token in plain text, how it is useful, we just replaced one password with another. :)

the_dream_detective
Автор

why is no one explaining the cloud version?

maneshipocrates
Автор

Hello Tobi, I'm following your tutorials and i got the point of determining the IP address. I have forwarded the port to 8200 but i get the "This site can't be reached" message. Any suggestion? Tried Chrome and Safari browsers.

radonspace