← All documentationGitHub source ↗
Security

Account and API security

Protect OCL accounts, API credentials, personal data and privileged operations.

Least privilege

Grant each person or service only the permissions required for its role. Public browser code must never contain database secret keys, payment secrets, email secrets or administrative credentials. Store server-only variables in encrypted hosting settings.

Authentication

Use unique passwords and a password manager. Never share one-time passwords or recovery codes. Separate customer accounts from administrator access. Administrative requests must be checked on the server, not merely hidden in the interface.

API key lifecycle

Create separate keys for production and testing. Give each key the smallest available scope, store it in a secret manager and rotate it if exposed. Do not commit secrets to source control, issue trackers or logs.

Validate input

Treat form fields, URL parameters, uploads and webhook bodies as untrusted. Validate types, lengths and allowed values on the server. Avoid rendering untrusted HTML, apply rate limits and return generic errors.

Health information

Collect only information needed for a feature. Ordinary analytics should not collect symptoms, prescriptions, names, emails or query strings. Health-related information requires a clear purpose, appropriate review and strict access controls.

Incident response

Document how to revoke a compromised key, revoke sessions, suspend a risky feature, preserve logs and notify the responsible operator. Test backups and rollback procedures. HTTPS alone does not prove an application is secure.