Security

How SaleHero protects your data

SaleHero holds your orders, stock, prices and invoices, and the keys to the tools you connect. This page says what the product does to protect them, in plain terms and nothing more.

Your data stays yours

Every company is an organization, and its data is kept apart from every other organization's.

  • Every query is bound to your organization

    Data access goes through one layer that adds the organization to every read and every change, so a record is looked up by its id and its organization together. A guessed id from another company finds nothing. An automated test suite checks that one organization cannot read or change another's rows.

  • Roles and sections

    People are Owner, Admin or Member. Owners and admins can do everything in their organization; a member only sees the sections an admin granted, as read or write (sales, catalog, inventory, purchasing, accounting, analytics, warehouse, B2B, settings). Ready-made job roles, such as warehouse operator or financial, set the role and the sections together.

  • Your own wholesale clients

    B2B portal buyers sign in to a separate area and reach only their own account, prices, orders and credit with you.

Accounts and sign-in

How people prove who they are.

  • Passwords are hashed

    Passwords are stored as argon2id hashes, never as text, and the sign-in check compares against the hash. Password reset links are single-use, expire after two hours, and are stored only as a hash.

  • Verified email

    A new account has to confirm its email address before it can sign in. Sign-up, password reset and verification emails are rate limited per address. Sign-in with Google is available where it is switched on.

  • Sessions

    Sessions are signed tokens in a cookie. On the production site the cookie carries the secure prefix and travels over HTTPS only. A session lasts until its token expires; to remove someone, remove their membership.

  • Handing over a password

    For staff without a mailbox, an owner or admin can generate a password. SaleHero shows it once and stores only its hash.

Keys and credentials

What happens to the secrets you give SaleHero, and the ones it gives you.

  • Integration credentials are encrypted

    Tokens and passwords for the tools you connect (accounting, shipping, e-commerce, advertising and similar) are encrypted at rest with AES-256-GCM, with a key that is held in the server environment and not in the database. The screens show a masked hint, never the secret.

  • API keys are stored as hashes

    An API key is shown once, when you create it. SaleHero keeps only its SHA-256 hash, so it cannot show the key again. Keys can be revoked at any time, and every key belongs to one organization.

  • Scopes and limits on keys

    A key has a scope: the operations API, a read-only API, or full access for AI agents. Only an admin can create one. A full-access key acts as a named team member with the admin role, can be narrowed with allow and deny rules on routes, and everything it does is attributed to it. Each key is rate limited.

  • Logs leave secrets out

    Application logs redact tokens, passwords and authorization headers.

In transit and in the browser

What every response and page carries.

  • HTTPS and security headers

    Responses carry a strict transport security header (two years, subdomains included), no-sniff, a strict referrer policy and a policy that turns off camera, microphone and location. Pages can only be framed by the site itself.

  • Content security policy

    A content security policy limits where scripts, styles, images, fonts and connections may load from. It still allows inline scripts and styles, because the framework needs them.

  • Uploads cannot run

    Files customers attach to returns are served with a policy that blocks scripts and sandboxes the file, so an upload can never run as a page.

  • The embeddable returns form

    Only that one page can be framed by another site, and only by the domains you list. With no domain listed, nobody can embed it. Order lookups on it are rate limited per address and per order number.

  • Validated input

    API routes check what they receive against a schema before using it, and refuse what does not fit.

Accountability and control

What is recorded, and what you can take with you.

  • An audit trail

    Sign-ups, organization creation and deletion, API key creation, data exports, and every call made through the read API, the MCP server or the agent API are written to an audit log with who, what and when.

  • Your data, on request

    An organization can export its data as a file from Settings, Danger zone, and an owner can delete the organization there.

Questions from your security team?

Create an account and look at roles, keys and the audit trail yourself, or read how the API keys work.