Skip to content

Keys and authentication

View Markdown

Keep public ingestion, secret build uploads, and agent sessions separate.

Which credential goes where?

CredentialUsed forBrowser bundle?
Public project key pk_…SDK telemetry and public release reportsYes
Secret upload key ik_…Source-map upload in CI/server buildsNever
CLI/device sessionAuthenticated agent and platform operationsNever
Personal API keyExplicit CI/platform integration where supportedNever
GitHub App/OAuth secretsAuthorized repository integration on the serverNever

A public ingestion key is not a platform management token. CLI login does not turn it into a secret account credential and does not grant GitHub access.

Rotation

Project key endpoints support rotation. Update the consuming runtimes/build environment with the new value and verify delivery. Do not keep using predictable legacy project-ID-derived keys; new integrations should use the generated random key.

Storage

Keep CLI credentials in their protected configuration directory and server/provider secrets in a secret manager or private files. Never put an ik_… upload key, a personal API key, an OAuth client secret, or a private App key into a browser variable.

For self-hosting, set the deployment's public origins and encryption/authentication configuration consistently. A local-development service token is not an appropriate universal public-user credential.