Skip to content

tstoermer/vault-db-showcase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VAULT DB Showcase

This showcase is intended for setting up a postgres database with direct HashiCorp Vault integration. It can be used for local testing and exploration of the concept.

Target is to provide:

  • An admin role to manage the database/schema
  • An application role to access and change data
  • An read role to only access data

Usage

  1. Generate rsa keys for psql db
    • [Server Cert] docker/postgres/config/postgres_server.pem
    • [Private Key] docker/postgres/config/postgres_server-key.pem
  2. Use docker compose to setup the docker containers. docker-compose
  3. Initialize vault.
  4. Perform login to vault with root token.
  5. Execute terraform apply to create
    • postgres database objects
    • vault secret engine for database
  6. Run the test script to verify the setup.

Attention!

Following points are only used, because it is a local demo showcase:

  • Postgres containers are using simple unsecured credentials
  • Vault root token would never be used for general vault access
  • Vault server uses http instead of https

TODO

  • extract terraform modules

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published