Skip to main content
The Delegare Vault is a TypeScript Express application designed to run on AWS ECS (Fargate), but it can be run locally for testing.

Prerequisites

  • Node.js 20+
  • pnpm
  • AWS Credentials (with access to DynamoDB and Secrets Manager in a dev/sandbox account)

Installation

  1. Clone the repository:
git clone https://github.com/delegare/delegare.git
cd delegare/vault
  1. Install dependencies:
pnpm install
  1. Configure environment variables: Create a .env file or export these variables:
ENVIRONMENT=dev
AWS_REGION=us-east-2
PORT=3000
  1. Run in development mode:
pnpm dev

Architecture

The Vault is stateless and relies on:
  • DynamoDB: For transaction logs, delegate metadata, and rate limiting.
  • Secrets Manager: For Stripe API keys and HMAC signing secrets.
  • KMS: For field-level encryption of sensitive data.

Deployment

Deployment is managed via AWS CDK. To deploy your own stack:
cd infrastructure
npm run deploy