/anonymization-vault-ent

Vault anonymization Demo Python App

Primary LanguageHCL

Vault - Anonymization demo

Tested env

  • macOS Monterey 12.5 intel
  • python 3.9.12
  • HashiCorp Vault Enterprise v1.11.2+ent

Python Setup

pip install

# Install fastapi
pip install fastapi

# Install uvicorn
pip install uvicorn

vault information

# main.py
vault_addr = "http://127.0.0.1:8200"
headers = {
    'X-Vault-Token': 'root'
}

Vault Setup

License

Trial : https://www.hashicorp.com/products/vault/trial

First terminal

VAULT_LICENSE_PATH=vault.hclic vault-ent server -dev -dev-root-token-id=root

Second terminal

Terraform Apply or cli

Run Python Demo App

HOME DIR : app

cd app
uvicorn main:app --reload

Test index page

http://127.0.0.1:8000/

Swagger UI

http://127.0.0.1:8000/docs

API Doc

http://127.0.0.1:8000/redoc

Demo screenshot