Security & Trust
Learn about Keymint's cryptographic controls, transport protections, session verification handshakes, and organizational compliance.
Keymint's infrastructure is built from the ground up around data isolation, secure cryptographic verification, and the principle of least privilege. This document outlines the security architecture and compliance safeguards implemented across the platform.
Cryptographic Controls
Keymint uses industry-standard cryptographic algorithms to protect licensing credentials and make offline licenses tamper-evident.
1. Data at Rest & in Transit
- Transport Security: Connections to the Keymint REST API and dashboard are encrypted end to end with TLS 1.2 or TLS 1.3, and HTTP Strict Transport Security (HSTS) is enabled. Outbound webhooks are delivered only to HTTPS endpoints.
- Storage Security: Our primary database is hosted by a managed database provider that encrypts it at rest, and our server disks, database backups and archived audit logs are encrypted at rest as well. License keys are stored encrypted with AES-256-GCM using per-organization derived keys, and looked up by a SHA-256 hash, so raw keys are never stored in plain text, searchable, or logged.
2. Offline License Signatures (Ed25519)
Offline license keys are generated as JSON Web Tokens (JWT) signed using asymmetric cryptography:
- Signing Key Protection: Private signing keys are encrypted with a managed key management service before they are stored, and are decrypted only to sign a license.
- Local Verification: Client applications store only the trusted public verification keys locally. The client extracts the Key ID (
kid) from the incoming.licheader, retrieves the corresponding public key, and verifies the Ed25519 signature locally using standard libraries (such asjose). No internet access is required.
Session Hardening & Replay Defenses
Floating concurrent licenses require constant communication between client devices and the Keymint servers. To prevent seat theft, hijacking, and spoofing, we enforce a strict cryptographic challenge-response protocol:
- Session Secret Exchange: Upon checking out a seat (
POST /key/checkout), the client receives a temporary, cryptographically securesessionSecretand an initial single-use challenge nonce (nextNonce). - HMAC-SHA256 heartbeats: Every heartbeat and check-in request must be signed. The client computes an HMAC-SHA256 signature using the
sessionSecretover a payload containing thesessionIdand thenextNonce. - Nonce Rotation: The server rotates the cryptographic nonce (
nextNonce) with every successful heartbeat response. The previous nonce is instantly invalidated, preventing replay attacks. - Current nonce required: The request field named
timestampcarries the currentnextNonce, not a wall-clock timestamp. Heartbeats and check-ins with an old or incorrect nonce are rejected.
Access Control & Scoped Authorization
API access to Keymint is governed by role-based API keys and organization-level tenant isolation.
Organization Tenant Isolation
Business data is scoped to the authenticated organization. The organization is resolved on the server from the signed-in user's membership or the API key, never taken from the request, and queries filter by it, protecting against Insecure Direct Object Reference (IDOR) vulnerabilities.
API Key Scopes
We enforce the principle of least privilege. Every API key has one of three named scopes, admin, client or read-only, and can optionally be bound to specific products. The scope sets what a key can do when it has no explicit permission list:
| Scope | Allowed Operations | Typical Use Case |
|---|---|---|
admin | Full read/write access to all products, customers, and license key records. | Backend management scripts and CI pipelines. |
client | Activation, optional first-time licensee claim, device-scoped deactivation, checkout, heartbeat, and checkin. Blocked from detailed key lookup and administrative reads/writes. | Integration inside client-side SDK bundles. |
read-only | View-only queries. | Internal monitoring dashboards and telemetry tools. |
A key can instead be given an explicit permission list when it is created (for example license:read, license:activate or customer:write). A key with a permission list is checked against that list exactly, whatever its scope: a read-only key granted customer:write can create and update customers, and a client key granted license:read can look up keys. The one exception is the * wildcard, which grants only what the key's scope already allows. Grant only the permissions an integration needs.
API keys can be given an expiry date (30, 60 or 90 days, or a custom date) and an IP allowlist. Expired keys are rejected on every request.
Further Reading
- Learn how offline license signatures work: Offline Verification
- Understand floating license session mechanics: Floating Licenses
- Review API authentication setup: Authentication
- Security posture for procurement and compliance reviews: Security Overview