Data security

Uses: Insomnia

End-to-end encryption

Insomnia implements end-to-end encryption (E2EE), which means that all encryption keys are generated locally, all encryption is performed before sending any data over the network, and all decryption is performed after receiving data from the network. At no point in the sync process can the Insomnia servers read or access sensitive application project data.

Each user sets their own encryption passphrase, which is never shared or stored. Project data is encrypted with a randomly generated symmetric key, which is then encrypted separately for each user using their public encryption key. Only someone with the matching private key can decrypt the symmetric key. Insomnia stores encrypted workspace data and the encrypted symmetric key for each authorized user. Nothing is ever stored in plain text.

Insomnia data is stored in a pooled model for multi-tenancy. Each row is separated by a tenant identifier within the database. To retrieve data, the Insomnia Admin API request must have the tenant identifier (organization ID) in the request path and an authenticated user who is a member of the target tenant (organization).

Local database encryption

v13.5+ Insomnia encrypts sensitive fields in the local database that it keeps on your machine. Encryption applies to every project, including Scratch Pad and local projects, and doesn’t require any action from you.

Insomnia encrypts the following fields:

  • Authentication credentials on requests, folders, and collections, such as passwords, tokens, client secrets, private keys, and API key values. This also applies to gRPC, WebSocket, Socket.IO, and MCP requests.
  • Cookie values in the cookie jar.
  • Client certificate files, keys, and passphrases.
  • OAuth 2.0 access, identity, and refresh tokens.
  • Cloud provider credentials used for external vaults.
  • Git credentials and tokens.
  • The stored copies of requests in the response history.

Other data, such as environment variables, headers, request bodies, and URLs, is stored on disk without encryption. Data that Insomnia sends to Cloud Sync is protected by end-to-end encryption separately.

Local encryption doesn’t change Cloud Sync, Git Sync, or exported files. Insomnia decrypts values before it syncs or exports them, so teammates on any version of Insomnia can still collaborate with you.

Local encryption key

Insomnia generates a random 256-bit key on first launch and stores it protected by your operating system’s credential store: Keychain on macOS, DPAPI on Windows, or Secret Service on Linux. Insomnia never writes the key to disk without encryption.

You don’t need the key to use the Insomnia app. You need it only to run Inso CLI against Insomnia’s local database files.

To get the key:

  1. In Insomnia, open Preferences.
  2. Click the General tab.
  3. In the Security section, find Local Encryption Key.
  4. Click Copy Key to copy the key as a single line of text, or click Export Key to save it to a file.
  5. In the confirmation dialog, click I understand, continue.
  6. If you clicked Export Key, choose a location and click Save. The default filename is insomnia-encryption-key.json.

On macOS and Linux, the exported file can only be read and written by its owner (mode 600). On Windows, the file gets the permissions of the folder you save it in.

Both forms of the key work with Inso CLI. The key also records the name of the machine it was exported on.

  • Never share the key. Anyone with the key can decrypt the tokens and other values stored in your local database. Don’t commit it to a repository or paste it into shared logs.
  • Never use the key on another machine. Using the wrong key can make values unreadable for the Insomnia app on that machine.

Sign up and authentication

Insomnia uses the Secure Remote Password (SRP) protocol to securely manage authentication without sending or storing passphrases in a readable format. This ensures that sensitive user credentials remain protected during account creation and login.

Account creation

During sign up, the client generates encryption keys, salts, and RSA key-pairs. It derives secure password representations using HKDF and PBKDF2 and encrypts sensitive keys before sending them to the server. The server stores only the SRP verifier and encrypted data, never the raw passphrase.

Account login

When logging in, the client repeats the password derivation steps and performs an SRP exchange using stored salts. A session key is then generated and used for encrypted communication, ensuring the passphrase itself is never exposed.

Data models

The following are data models we use.

Data Model

Definition

M_Account A user that can log in
M_Resource An entity that can be synced (Request, Workspace, etc.)
M_ResourceGroup A group of M_Resource that can be shared as one
M_Link A relationship linking a M_Account to M_ResourceGroup

Keys and salts

The following are keys and salts we use.

Name

Definition

Stored?

Stored with encryption?

PUB_Account Public key for M_Account Y N
PRV_Account Private key for M_Account Y Y
SYM_Account Symmetric key for M_Account Y Y
SYM_ResourceGroup Symmetric Key for data encryption N N
SYM_Link Encrypted form of SYM_ResourceGroup Y Y
SLT_Auth_1 Salt for PBKDF2 of passphrase for auth Y N
SLT_Auth_2 Salt for SRP authentication process Y N
SLT_Enc Salt for PBKDF2 of passphrase for encryption Y N
SEC_PWD_Auth Secret derived from passphrase using SLT_Auth_1 N N
SEC_PWD_Enc Secret derived from passphrase using SLT_Enc N N
SRP_Verifier Verification string used for SRP Y N

FAQs

All data is encrypted using randomly generated 256 bit symmetric keys for use with AES-GCM-256 (Galois Counter Mode).

Information is sent over TLS and is end-to-end encrypted.

Secure Remote Passwords (SRP) encrypted key exchange protocol. You can read more about the exact SRP implementation that Insomnia paid plans use in RFC-2945.

Information is stored in GCP, within Postgres, in US Central region.

Insomnia requires users who use cloud or git sync storage to have a passphrase to decrypt their account keys.

If you lose your passphrase, there is no way to access your account projects and information and your account must be reset. If you have been invited to collaborate with other organizations, you can reset your passphrase and then ask to be invited back. You will only be able to retrieve data for the organizations that you are invited back to. If you have shared your personal organizations or project data, you can ask other users with Admin permissions to also re-invite you after resetting the passphrase.

Partly. In Insomnia 13.5 and later, sensitive fields such as passwords, tokens, cookie values, and client certificate secrets are encrypted in the local database for all projects, including Scratch Pad. Insomnia creates the key on first launch and protects it with your operating system’s credential store. Other project data, such as request URLs and bodies, is still stored on disk without encryption, and E2EE only applies to project data that is transmitted over the network. For more information, see Local database encryption.

Yes. You can open every project, collection, and request in an earlier version. However, values that 13.5 encrypted appear as text that starts with enc:insomnia:v1:, and requests that use them fail. To use these requests in the earlier version, enter the values again. Cloud Sync, Git Sync, and exported files aren’t affected.

If the key isn’t available at startup, for example after you move the application data to another machine or reset your operating system’s credential store, Insomnia shows The local encryption key is not available. For that session, encrypted values don’t work and new values are saved without encryption. Nothing is deleted, and Insomnia tries again on the next launch. If the key is gone for good, click Reset local encryption key to start over with a new key.

If only some values can’t be decrypted, the Some encrypted data could not be decrypted dialog lists them. Click Reset affected fields to clear them and enter them again, or click Continue without decryption to keep them as they are.

No. Data sent to AI features is not end-to-end encrypted, and therefore is not covered by this document. Organization administrators can disable specific AI features for all users. Individual users can disable available features in Preferences > AI Features. When a feature is disabled at the organization level, its option appears greyed with a tooltip explaining that it has been turned off by an administrator.

The ability to share Resource Groups is the reason that every Resource Group needs its own key, and every account needs a public/private key-pair to securely share said key. Here’s an example involving two users, Jane and Bob. For Jane to share a Resource Group with Bob, she must encrypt the Resource Group’s key with Bob’s public key and store it on the server (M_Link). Now, Bob can use his account’s private key to decrypt the Resource Group’s key and gain access to the data. This is a classic example of the Diffie-Hellman key exchange being put to good use.

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!