/python-mysql-vault-demo

Web application demo using a simple python-mysql stack interacting with Vault

Primary LanguagePythonOtherNOASSERTION

python-mysql-vault-demo

A docker based demo to show how we can secure a python webapp and mysql database with Vault You can run the scripts on any mac or linux host with Docker installed. I only tested this on a macbook.

You will need to add a license.txt file with a valid vault ent license to run script 07_apply_vault_license.sh If you dont have a license you must finish the demo within 30 mins which is doable.

Step A: Initial App
Run Scripts 01-04 to start the application and test it before Vault. Add a user in the WebApp. WebApp runs on port 5000

Step B: App with Vault
Run Scripts 05-14 to setup vault and App configuration and at the end start the app. Test the app, add new user

Step C: Cleanup
Destroy with Script 15

Application code is copied from:

With minor modifications including:

  • Warning messages fix on deprecated syntax
  • MySQL version used (8.0.26)
  • SQL statements are read from a file
  • Changed sample data & data scheme
  • Added tokenization script demo

TODO:

  • Add tokenization integration for the Bank Account field