Skip to main content

AI, SES email, and account security

Gemini​

The API uses GEMINI_API_KEY server-side for contract analysis. Quick scans can use deterministic heuristic analysis. Do not expose the key through frontend build variables.

Amazon SES​

SES sends email verification, password reset, and support/contact messages. SES_FROM_EMAIL must be a verified sender identity. SES sandbox mode restricts recipients; request production access before public account email delivery. Locally, messages are logged by the API.

First-party accounts​

No external identity provider is used. Passwords are stored as salted scrypt hashes. Verification links expire after 24 hours; password reset links expire after 30 minutes. Tokens are random, stored as hashes, and invalidated after use. API bearer sessions are HMAC-signed with AUTH_JWT_SECRET and expire after seven days.

Admin login​

ADMIN_USERNAME, ADMIN_PASSWORD, and AUTH_JWT_SECRET are required GitHub Actions secrets. Admin sessions expire after eight hours. Keep credentials out of frontend build variables and source control.

Free quotas​

Default anonymous quotas: one scan per day and seven per week. Default account quotas: five reviews per day and 35 per week. Administrators can edit all four values in Settings. Counters use UTC boundaries and atomic DynamoDB updates. Anonymous browser identifiers are a convenience quota, not strong abuse protection.