Skip to the content

Your server

Keys and domains

Applications and their keys are managed in the dashboard, under Applications. Owners and admins can create and change them; developers can see them.

Applications#

An application is one product of yours that uses the editor, for example "Contracts portal". Make one per product, so each has its own keys, domains and usage. Your plan sets how many you can have (Plans and limits).

Deleting an application revokes all its keys at once, and the editor stops getting licenses wherever they were used.

Making a key#

In an application, choose New key:

FieldWhat to choose
KindSecret key for your server (strict mode), or Publishable key for your domains (and, without strict mode, your pages)
EnvironmentTest for development and staging, Live for production
Domains (publishable keys)The page addresses the editor runs on, one per line
NameOptional, so you can tell keys apart: "Production server", "Staging"

The key is shown once. Copy it straight into your server's environment or your page. Dorvyn keeps only a fingerprint of it, so it can't be shown again. If it's lost, replace it.

An application can have up to 10 active keys.

Which keys you need#

SetupKeys, per environment
Strict mode (recommended)A secret key (in your server's environment) and a publishable key listing your domains (not in any page)
A key in the pageA publishable key listing your domains (in the page)

For development and production, make one set of each: test and live.

Domains#

A publishable key lists the exact page addresses (origins) the editor may run on: scheme, host and port, with no path.

WriteNot
https://app.example.comapp.example.com (no scheme)
https://app.example.comhttps://app.example.com/editor (no path)
https://example.com and https://www.example.comhttps://*.example.com (no wildcards: list each one)
http://localhost:3000 (test keys)http://localhost when your app runs on port 3000

The rules:

  • Live keys: https only, and a real domain name. No localhost, no IP addresses.
  • Test keys: any https address, plus http://localhost, http://127.0.0.1 and http://[::1] on any port.
  • localhost and 127.0.0.1 are different addresses. List the one you open in the browser.
  • Your plan sets how many domains a key can list.

Change a key's domains at any time with Domains on its row. The change applies to the next grant: open editors on a removed domain stop at their next renewal.

Replacing a key (rotation)#

Choose Replace on a key's row to make a new key with the same settings. The old key keeps working for the overlap you choose, then stops:

OverlapWhen to use it
None: the old key stops nowThe key was exposed. Replace it now, then deploy the new one
1 hourA quick switch you're deploying right away
24 hours (default)A routine rotation
72 hoursSeveral servers or apps to update, or a slow release

With no downtime:

  1. Replace the key with an overlap, and copy the new one.
  2. Deploy it: set the new DORVYN_SECRET_KEY and restart your servers, or release your pages with the new publishable key.
  3. Done. The old key stops by itself when the overlap ends.

Rotate secret keys routinely, for example every 90 days, and whenever someone who could see them leaves.

Revoking a key#

Revoke stops a key at once and for good. Editors using it go read-only at their next renewal (within minutes), and saving as Word stops at once. Use it for a key you no longer use, or one that may have been seen by someone who shouldn't have it. If it's still in use, replace it first.

Personal test keys#

People with a developer seat get their own test key under Your setup, for building on their own machine:

  • It works only on the local addresses they list.
  • Files saved with it carry a test note.
  • It stops if they leave the organization or lose their seat.
  • Usage is shown per developer on the Usage page.

Use your applications' own keys for staging and production, never a personal one.

Keeping keys safe#

  • Secret keys go only in your server's environment or a secrets manager. Never in a page, a mobile app, a repository, a ticket or a chat.
  • If a secret key is exposed, replace it with no overlap, deploy the new one, then check Security for anything unusual.
  • A publishable key in a page is meant to be seen. It's limited to your domains. Replace it if it's being misused (your Security page will show refused attempts).
  • Every key change is in the Audit log: who made, replaced or revoked which key, and when.