Kortyx Studio Credentials and Secrets
Updated 17 minutes ago • August 2, 2026
Studio separates human sign-in, SDK ingestion, internal reads, database access, and API-key verification. These credentials have different consumers and must not be reused interchangeably.
Credential roles
Kortyx stores the API key identifier, a one-way HMAC verifier, Project ownership, scopes, expiry, revocation state, and usage metadata. The complete ktyx_... value belongs only in the secret store used by its consumer.
Why both a database record and a secret manager? The secret manager protects the raw credential. PostgreSQL holds the verifier and authorization policy needed to check that credential without retaining a reusable key.
Local credentials
The CLI creates and stores local values privately under ~/.kortyx/studio.
Print the current connection details:
Rotate the browser password, telemetry key secret, and Studio key secret:
The CLI updates the private environment atomically, applies the new key verifiers, recreates the affected services, and attempts to restore the previous values if the application fails.
Rotation invalidates the previous telemetry key immediately. Update and restart every server-side SDK producer using that key. PostgreSQL credentials and the API-key pepper are deliberately preserved.
Generate credentials for a deployment
This command prints a fresh deployment credential set without writing local state. Store the output immediately; it cannot be retrieved later.
Use the secret facility appropriate to the target:
Do not put secret values in Terraform source, generated manifests, image layers, CI logs, tickets, chat, or screenshots.
Remote key rotation
The initial deployment contract replaces an API-key secret while retaining its key ID:
- Preserve the prefix through the final underscore, such as
ktyx_live_<key-id>_. - Generate a new random secret of at least 32 bytes and append it.
- Update the consumer's secret-manager value.
- Run
kortyx-studio-db bootstrapwith the new complete key. - Roll or restart the affected consumer.
- Verify that the new key works and the previous key receives
401 Unauthorized.
Reusing the key ID replaces its verifier. For the Studio read key, run bootstrap before recreating Studio. For one telemetry write key shared by multiple applications, coordinate a maintenance window; overlapping remote keys are not yet managed through an Admin API.
Do not rotate the pepper during routine key rotation. A new pepper makes every existing API-key verifier unusable.
Backup and incident response
Back up PostgreSQL and deployment secret references as one recovery set. A database backup without its matching pepper cannot verify the existing API keys.
If a raw API key is exposed:
- replace its secret under the same key ID;
- rerun bootstrap;
- roll the affected consumer;
- verify the new key; and
- verify the exposed value now receives
401 Unauthorized.
Treat captured telemetry backups according to the sensitivity of any input or output content your producers chose to export.