Skip to content
Robnu
Field NotesField Notes5 min read

The token vault: how Robnu stores marketplace credentials securely

Robnu acts on your behalf with marketplaces, so it treats your tokens the way a payments processor treats card data. This post walks through what the vault stores, the per-seller key model, and why a database leak on its own is a bag of unreadable blobs.

Hiren Bhuva
Co-founder, Onviqa Inc. · Robnu
TL;DR
  • Your marketplace password never reaches Robnu. The Chrome extension does the token handshake locally, on your machine.
  • Tokens are encrypted with a per-seller DEK; the DEK is sealed under an AWS KMS master key. A DB breach without KMS access leaks nothing readable.
  • Every credential decrypt goes through KMS, which logs the call. Auditable, rotation-friendly, blast-radius-limited.

Robnu acts on your behalf with marketplaces. Every order pull, every confirmation upload, every manifest submission goes through credentials that, if compromised, could let an attacker do significant damage. So we treat marketplace tokens with the same architecture a payments processor would treat card data. Here’s the model.

What we store, and what we don’t

We store: marketplace session tokens and refresh tokens. We never store: your marketplace password.

The Chrome extension performs the OAuth-style handshake against the marketplace inside your browser session. Your password never leaves your machine. The handshake produces a session token, the extension hands that token to Robnu, and Robnu stores the encrypted token in the vault.

This means a hypothetical breach of Robnu cannot leak your marketplace password — because we don’t have your password.

Diagram showing the Chrome extension performing the marketplace handshake inside the browser, keeping the password on the seller's machine, while only the resulting session token crosses to Robnu, which stores it encrypted in the vault.
Figure 1 — The token handshake: your password stays in the browser, only a session token crosses to Robnu (illustrative).

Per-seller DEK

Each seller gets their own Data Encryption Key (DEK) — a 256-bit AES key, generated when you sign up.

The DEK encrypts your tokens. Different sellers’ tokens are encrypted with different DEKs. This bounds the blast radius: if a DEK is compromised somehow, it compromises one seller’s tokens, not all of them.

KMS-sealed

The DEK itself is sealed under a master key held in AWS KMS. KMS is hardware-backed key management — the master key never leaves the HSM, never sits in our application memory, and every operation against it is logged in CloudTrail.

To decrypt a token, Robnu has to:

  1. Read the encrypted DEK from the database
  2. Send it to KMS to be unsealed
  3. Use the unsealed DEK in memory to decrypt the token
  4. Use the token, then drop the unsealed DEK from memory

Step 2 is the choke point. KMS authenticates the request, checks the access policy, and logs the operation. An attacker who has the database alone but not KMS access cannot perform step 2 — the encrypted DEK is meaningless without KMS.

Diagram of envelope encryption. Each seller's tokens are encrypted with a per-seller data encryption key. That key is sealed under an AWS KMS master key held in an HSM. To decrypt a token Robnu must read the encrypted key, send it to KMS to be unsealed, decrypt in memory, then drop the key. A database-only attacker cannot unseal the key.
Figure 2 — Envelope encryption: a per-seller DEK encrypts the tokens, and the DEK is sealed under an AWS KMS master key (illustrative).

The audit trail

Every decrypt is logged. Sellers can see their own audit trail (when their tokens were read, by which Robnu service, against which marketplace). Auditors see the org-level trail.

For sellers who care about compliance posture (DPDP, future SOC 2): this is the gold-standard primitive for credential storage. The audit trail is also where suspicious access patterns get caught — if a service starts decrypting tokens 100x more than usual, the alert fires before anything operational breaks.

Rotation

Refresh tokens rotate on every use. Session tokens rotate on schedule (typically 15-min TTL). DEKs rotate on suspicion or on a 90-day schedule.

Rotation is cheap because the architecture is per-seller. Rotating one seller’s DEK doesn’t touch any other seller. Rotating a session token doesn’t touch the refresh token.

What this protects against

  • Database leak alone. Without KMS access, the leaked rows are encrypted blobs. Useless to the attacker.
  • Application memory dump. The unsealed DEK lives in memory only briefly during a decrypt. Memory-only attacks have a small window.
  • Insider threat. KMS logs everyone — including engineers. A malicious insider would need to decrypt many tokens to do damage, and the audit trail would catch it.
Two-column threat model. Protects against: a database leak alone yields only encrypted blobs, an application memory dump has a small window, and insider access is logged by KMS. Does not protect against: a fully compromised seller machine, a marketplace-side compromise, or a seller sharing their own password.
Figure 3 — What the vault protects against, and what it honestly does not (illustrative).

The vault protects what we can protect. It’s not a panacea.

Read more

Tags:securityarchitecture

Frequently asked questions

  • No. The Chrome extension performs the OAuth-style handshake against the marketplace inside your own browser session, so your password never leaves your machine. The handshake produces a session token, and only that token is handed to Robnu and stored encrypted. Because we do not have your password, a breach of Robnu cannot leak it.

Start Robnu free

See where you're losing rupees on Ajio

Robnu walks every Ajio order from open through manifest, flags every silent deduction, and watches every SLA. Free during early access. No caps. No card. No trial timer.

  • Ajio order processing — every stage covered
  • Free for ≤ 25 orders/day — forever
  • 11-stage flow, document pipeline, SLA watchdog

Sources & further reading

  1. Digital Personal Data Protection Act, 2023 — text and rules
    Ministry of Electronics and IT, Government of IndiaAccessed July 2026
  2. CERT-In — guidelines on information security practices
    Indian Computer Emergency Response TeamAccessed July 2026
Hiren Bhuva
Co-founder, Onviqa Inc. · Robnu

Hiren has spent over a decade shipping commerce software for Indian sellers and runs Onviqa Inc., the parent company behind Robnu. He writes about marketplace ops, deduction defense, and the boring infrastructure that decides whether a small Indian brand keeps its money.

Related reading

All posts
build e7713058ee9ee67dffe938623a3f859dcb157b2a · 2026-07-24T12:14:00+05:30