Skip to main content
Complete this checklist before you send production traffic. Each item links to the page with the full instructions.

Keys and secrets

  • Store your Key Encryption Key (KEK) in a secure location with backups. If you lose it, Prem cannot recover your data. See Encryption.
  • Make a backup of your DEK store. If you lose it, you lose access to your uploaded files.
  • Store all keys in environment variables. Do not commit keys to source control. See Quickstart.
  • Use one API key for each environment, for example development, staging, and production. See API Keys.

API key security

  • Give each API key only the scopes that it needs. A key without explicit scopes has full permissions. See API Keys.
  • Add IP restrictions to the keys for critical integrations.
  • Rotate your API keys on a regular schedule.
  • Do not share one API key between teams or environments.

Reliability

  • Retry failed requests with exponential backoff and random jitter. See Rate limits.
  • Read the Retry-After header on 429 responses. Wait for that time before you retry.
  • Use idempotency keys for requests that you cannot repeat safely. See Idempotency.
  • Handle each error code that the API returns. See Errors.
  • Record the support_id value from error responses. Contact support in the week after the error occurs. See Errors.

Capacity and cost

  • Confirm that your tier gives enough requests per second, tokens per minute, and concurrent requests. See Rate limits.
  • Set a monthly budget limit for your organization. See Limits.
  • Configure auto top-up so that your balance does not reach zero. See Balance.
  • Monitor your token usage in the dashboard. See Usage.

Verification

  • Keep attestation on. The SDK verifies the enclave automatically because attest: true is the default. See Attestation.
  • For independent verification, use the @premai/reticle package to check the attestation reports yourself.
  • Get the current endpoint values from dashboard.prem.io/endpoints.json at deployment time.

Before launch

Questions before a production launch? Contact us at support@premai.io.