/playground-vault

some useful example scripts to work on Vault

Primary LanguageShellGNU General Public License v3.0GPL-3.0

Vault playground

What is Vault? See my HackMD file

Some useful demo see here

Agent? see here

Run up Vault:

$ export VAULT_ADDR=http://localhost:8200
$ sh server.sh

目錄

Agent

Use agent to help you auto-renew token or lease.

You can also use consul-template to output the result!

detail

Authenticate

GitHub or AppRole as example

detail

High Availability

Build a standby node and step-down the active node.

You will see the original standby node become active.

detail

PKI

Build your TLS certificate by Vault.

This will need consul-template, please install first.

detail

Token

Do some token stuff

  • List accessor
  • Batch token
  • Wrap token
  • Revoke token by accessor

detail

Transit

Encryption as server

  • Encryption
  • Decryption
  • Key rotate
  • Disable old key to encrypt / decrypt
  • Rewrap cipher
  • Remove old key

detail

License

See in LICENSE file