Security design
ChangelogAI uses server-authoritative access controls so the browser is not trusted to grant paid access, quota or private-repository permissions.
Server-authoritative quotas
Generation permission is reserved atomically in the database before an AI request. Browser counters cannot grant extra usage.
Payment verification
Paid entitlement is derived from server-side subscription state and signed Lemon Squeezy webhook events, not from a checkout success-page redirect.
GitHub least privilege
The GitHub App uses read-only content, metadata and pull-request permissions and is intended to access only repositories selected during installation. Webhook signatures are verified before processing.
Secret isolation
AI, payment, Supabase service-role and GitHub private credentials are kept in server-side secrets and are not embedded in public JavaScript.
Prompt-injection boundary
Commit messages and pull-request text are treated as untrusted data, not instructions that can change authorisation or reveal secrets.
Revocable access
GitHub connections, standalone device credentials and API tokens are scoped and revocable. Security and privileged-action records have defined retention windows.