Defense in Depth
Turen provides multiple layers of security:Authentication Model
Turen uses three types of credentials, each with a specific scope:
Key principles:
- Registration keys have a configurable maximum registration count, can expire, and can be revoked. They are optional for desktop installs, which register by signing into the desktop app
- Agent secrets are unique per machine and can be rotated
- API keys can be revoked instantly
- No credential type can access another organization’s data
Local-First Security
Security rules are enforced locally on the developer’s machine, not in the cloud. This means:- No round-trip latency: Rules are evaluated in milliseconds
- Works offline: Once policies are synced, rules work without network access
- No data leaves the machine unnecessarily: Only telemetry and session data are uploaded
Multi-Tenant Isolation
Every resource in Turen is scoped to an organization:- Database queries are filtered by
organization_id - Session data is stored in per-organization paths
- Encryption keys are unique per organization
- API keys and agent secrets are bound to a single organization
Agent Identity
Each agent machine has a verified identity:- Machine fingerprint: Generated from hardware identifiers (platform-specific)
- Client ID: Unique identifier derived from the machine fingerprint
- Clone detection: Turen detects when an agent’s machine fingerprint has been duplicated (e.g., VM cloning) and flags the anomaly
Secret Rotation
Agent secrets can be rotated without re-registration:- Agent requests a new secret via the API
- A new
as_live_secret is generated - The old secret is invalidated
- The agent stores the new secret locally