Secrets and configuration

Related: cognito-and-auth · deployment-pypi-s3 · troubleshooting-decisions

Environment variables

VariableSecret?Notes
VILLA_COGNITO_CLIENT_SECRET**Yes**Value from Cognito → **Show client secret**
VILLA_COGNITO_CLIENT_IDNo6k932iah7v1hgnd33a53c3v1mj
VILLA_COGNITO_USER_POOL_IDNoap-southeast-1_bul3MgmNE
VILLA_COGNITO_REGIONNoap-southeast-1
VILLA_BASE_URLNoDefault https://shop.villamarket.com
VILLA_ENVNodev or prod
PYPI_KEY**Yes**PyPI API token (local publish only)

Copy .env.example.env (gitignored).

Where to store secrets

ContextWhere
Local dev.env or ~/.env
Cursor Cloud AgentDashboard → **Secrets** → Runtime Secret
GitHub CIRepository secrets (VILLA_COGNITO_CLIENT_SECRET, AWS_*)
NeverGit commits, chat, issues

git-secrets

git-secrets **blocks** accidental commits — it is not a secret store.

./scripts/setup-git-secrets.sh "$VILLA_COGNITO_CLIENT_SECRET"

Common mistake

**Client Secret ID** (6k932iah7v1hgnd33a53c3v1mj--1779672734505) ≠ **client secret** (from Show client secret). Wrong value → Unable to verify secret hash.