For organization owners

Uploading & updating your project

Get your project's files into Aegis, publish them as releases, and move every machine that runs your software onto the version you choose.

How it fits together

Every copy of your software runs the dpdx-runtime-integrity kit, which checks in with Aegis about once a minute (a heartbeat). Aegis keeps a list of releases of your project: complete sets of your source files, each with a version number. On a heartbeat, a copy learns which release it should be on. If it isn't on it, it downloads the files, checks every file against its signed hash, writes them, and restarts.

  • Upload puts a new release in Aegis. Nothing changes on anyone's machine yet.
  • Copies pick up the newest release on their own within about 6 hours, or within seconds when you press Update everyone or update one license.
  • Every release stays available, so you can roll back to an earlier one at any time.

Before you upload

  • Your organization has an active plan and you are its owner or admin. Organization staff can update licenses but can't upload or edit files.
  • The project exists under Projects, and its config files are listed (e.g. config.json). Config files belong to your customers: a release never overwrites them, even if your upload contains them.
  • Your software runs the kit and passes its project id (Projects → copy id). Deployments on kit 1.6.0 or later run npm install themselves when a release changes package.json. Kit 1.7.0 or later also reports its release version to the dashboard.
  • Secrets are out of your source. Put tokens and passwords in each license's environment variables (license → Runtime), not in files. Aegis skips .env, .pem and .key files on upload anyway.

Uploading your files

  1. Open Projects, find your project and press Files.
  2. Press Upload folder (top right) and pick your project's root folder, the one with package.json in it. Paths are kept relative to it, so my-bot/src/index.js is stored as src/index.js.
  3. Check the summary: how many files will be uploaded and how many were skipped. Enter a version (for example 1.0.0, then 1.0.1 for the next one).
  4. Leave Protect these files on if the project uses file integrity. Aegis then rebuilds its list of expected file hashes from this upload, so a copy running edited files gets caught, and a copy running your new files doesn't get flagged.
  5. Press Upload as new release. It becomes the latest release straight away.

What gets uploaded

Only text source files. The picker skips these automatically:

SkippedWhy
node_modules, .git, dist, build, .next, out, coverage, .cache, .turboDependencies and build output. Deployments install and build these themselves.
dpdx-runtime-integrity/ (at any depth)The licensing kit updates through its own channel and can never be replaced by a release.
Images, audio, video, fonts, archives, binariesReleases carry text only. Ship media with your installer, or load it from a URL.
.env files, .pem, .key, id_rsaSecrets. Use license environment variables instead.
Files over 1 MBToo large for a source file. Usually generated or bundled output.
LimitValue
Files per release2,000
Size of one file1 MB
Total size of a release12 MB of source
A release only adds and replaces files. A file you leave out of a new release stays on machines that already have it. To remove a file from deployments, open it in the Files tab and use Remove file. Deployments still keep their copy on disk, so delete it by hand if that matters.

From a terminal (DPDX projects)

DPDX staff can also register a release from a checkout with npm run register-project-release -- --project <id> --dir <folder> --version 1.2.0 in the Aegis repo. Add --dry-run first to see the file list. This needs the Aegis admin key, so organization owners use the dashboard upload.

Editing in the dashboard

For a small change there's no need to upload everything again. The Files tab edits the current release directly:

  • Start & dependencies: the npm start command, main, the Node version, dependencies and overrides, all written back into package.json.
  • Any text file: pick it in the tree and edit it. Changed files get a dot in the tree. Files open instantly: the dashboard loads them in the background as soon as the release opens.
  • Folders: the buttons next to the search collapse or expand every folder. Hover a folder (always visible on phones) to remove it with everything inside it in the next release, or to restore it.
  • View changes on a changed file shows exactly what you changed, line by line: green lines are added, red lines are removed. Revert undoes the file.

Publishing a release

Edit as many files as you like first. A slim bar at the bottom counts your changes without getting in the way. When you're done, press Review & publish: every changed file's diff is in one place, with the next version already filled in. Add notes if you like, then Publish. Publishing creates a new release; the one you started from stays available.

After publishing, Aegis offers Push now, which does the same as Update everyone.

Protecting files

A protected file is one deployments must not change. Each heartbeat, a copy proves it still has the original version of a rotating sample of protected files. If one has been edited, the license is flagged, or blocked when the project enforces file integrity. The shield in the tree shows which files are protected.

  • For everyone: click a file's shield in the tree, or Protect in the editor. A folder's shield protects or unprotects everything in it. Protection uses the version of the file in the release you're viewing, so view the release your deployments run.
  • For one license: open the file and press the people icon next to Protect. Set a license to Protect (checked even when the project doesn't protect the file), Don't (exempt, e.g. a customer allowed to customise it), or Project to follow the project again.
  • A file you unprotect stays unprotected through later uploads and edits. New files are protected by default when they are code (.js, .ts and similar) and not config files.
  • Changes apply on each copy's next heartbeat. A copy already being checked gets a short grace period, so switching protection never flags anyone by itself.

Fresh installs with the Aegis Loader

Your customers don't need your code in advance. In an empty folder they download one file and run it. It asks for their license key, downloads the release that license should run plus the licensing kit, checks every file's signature, installs dependencies, and saves the key into .env:

mkdir my-server && cd my-server
curl -fsSLO https://aegis.dpdx.in/aegis.js
node aegis.js

The loader then lists the variables still missing from .env and any config files to create. Running node aegis.js again starts the project (npm start in its folder). Customers also see these steps on their license in the client portal.

  • Upload a release first. The loader downloads the release the license should run (its pin, or the latest).
  • Include default config files (e.g. config.json) when you upload, so a fresh install has them. Updates never overwrite config files, so customers keep their own values.
  • List required variables on the project. Variables you or the customer already set in Aegis arrive at runtime, so the loader only asks for the rest.
  • The loader puts the kit where your code expects it: the folder your code loads dpdx-runtime-integrity/license.js from (for example bot/dpdx-runtime-integrity). .env goes next to that folder.
  • Paused, expired, terminated and revoked licenses can't download. The loader tells the customer why.

Updating deployments

You want toDo this
Move every copy to the latest release nowFiles → Update everyone → Release only. Every active or paused license installs it on its next heartbeat. Running copies are nudged and update within seconds.
Update one customer nowFiles → Deployments → Update now on their license (or open the license → Updates), and pick vX (release only), Kit or Release + kit.
Try a release on one license first, or hold one backPick Pin to vX in that license's release menu. It stays on that release while everyone else follows the latest. Choose Follow latest to undo.
Update only the licensing kitUpdate everyone → Kit only for the whole project, or Kit on one license. Kits also update on their own every few hours unless you hold them.
Ship code that needs a newer kitUpdate everyone → Release + kit (or on one license). The kit installs first, then your release on the restart that follows.
Keep the kit where it is for nowDeployments → turn on Hold kit updates for the whole project, or set one license to Kit: hold updates. Held licenses don't install new kit builds on their own. Pushing a kit update still installs it. Kit: always update exempts one license from a project-wide hold. DPDX can still push an urgent kit fix (for example a security update) through a hold.

An update restarts the process, so it needs a process manager that restarts it (pm2, systemd, Docker restart: always, or your host's own). Terminated and revoked licenses never receive updates.

Seeing who runs what

Files → Deployments lists every license and every machine that has checked in with it, with the release and kit version it reported on its last heartbeat:

ColourMeaning
GreenOn the release this license should run (its pin, or the latest), or on the latest kit.
AmberBehind. It updates on its next check, or press Update to do it now.
GreyNot known yet: it hasn't checked in since this was added, or it runs a kit older than 1.7.0.

The same versions appear under Installations when you open a license. “via failover” means that copy found the license server through the backup route, which is normal.

Deprecating & rolling back

Files → Releases lists every release with how many machines run it. Deprecate a release to stop offering it:

  • Deprecating the latest release makes the previous approved one the latest again. Copies move back to it on their next check, or right away with Update everyone. That's a rollback.
  • Licenses pinned to a deprecated release go back to following the latest.
  • Re-approve brings a release back. If it's the newest approved one, it becomes the latest again.

Capabilities

A capability is a named, gated operation your project's own backend exposes — a piece of server-side logic other licenses (or other projects) can be allowed to call through Aegis, instead of you wiring up your own auth for it. Aegis signs every request to your endpoint and every response back to the caller, so both sides know it genuinely went through Aegis. Which licenses can call it at all is controlled the same way as everything else here: it's on or off per project, same as any other capability.

Onboarding one

  1. Open Projects, edit the project that owns the logic, and find Capabilities near the bottom of the form.
  2. Click New capability (the same button is on the Capabilities page). By default you write the code right there and it runs on Aegis — give it a module name (becomes aegis.<namespace>.<module>) and one function per action (e.g. charge-card). To keep the logic on your own server instead, follow Forward calls to your endpoint instead and fill in the endpoint URL and its actions, one per line, written the way they're called: charge(amount, currency): Take a payment. The form shows the exact call, request and answer as you type.
  3. Creating an endpoint-backed one shows a signing secret once — save it. Your endpoint uses it to verify a request genuinely came from Aegis before acting on it. Code that runs on Aegis has no signing secret.
Onboarding switches the capability on for the project that owns it automatically. To let a different project use it, open that project's edit form and switch it on there too from the same Capabilities list (or, for a DPDX built-in, share it to that project first).

Calling it from your license

dpdx-runtime-integrity's execute(operation, payload) calls one action and returns its verified result. For an action declared as charge(amount, currency) on aegis.acme.billing:

// arguments in the declared order…
const receipt = await license.execute('aegis.acme.billing.charge', [500, 'INR']);
// …or by name. The endpoint receives { amount: 500, currency: 'INR' } either way.
const receipt = await license.execute('aegis.acme.billing.charge', { amount: 500, currency: 'INR' });

It throws if the license's current lease doesn't include that capability, if your endpoint refuses the call, or if the response fails verification. license.hasCapability(code) / requireCapability(code) check the lease locally first, for a nicer UX (e.g. skip registering a command a license doesn't cover) — the real enforcement is server-side in execute() regardless. An action declared without arguments takes whatever JSON object you pass.

What your endpoint receives

One POST per call, to the endpoint URL, with a JSON body and these headers. x-aegis-signature is v1= followed by the hex HMAC-SHA256 of timestamp + "." + body under the signing secret — check it, and that the timestamp is recent, before doing anything.

POST /your/path
content-type: application/json
x-aegis-timestamp: 1791092222
x-aegis-signature: v1=5f2c…
x-aegis-request-id: 0b6c…
x-aegis-capability: aegis.acme.billing

{
  "type": "operation",
  "id": "0b6c…",
  "operation": "aegis.acme.billing.charge",
  "capability": "aegis.acme.billing",
  "action": "charge",
  "caller": { "projectId": "…", "organizationId": "…", "licenseId": "…", "installationId": "…" },
  "payload": { "amount": 500, "currency": "INR" },
  "sentAt": "2026-10-04T05:32:02.000Z"
}

Send test on the capability's page posts { "type": "ping" } the same way; answer it with any 2xx.

What it answers

Your endpoint answersThe product gets
200 with any JSON, up to 256 KBThat JSON, returned by execute() and signed by Aegis.
4xx with { "error": "why" }execute() throws with your message. Use it to refuse a call in words meant for the product.
5xx, no answer within the timeout, or a body that isn’t JSONexecute() throws a generic failure. Nothing from the body reaches the product.

Encrypted payloads and private addresses

Switch on Encrypt payloads and both bodies are sealed with the signing secret, on top of the signature: AES-256-GCM, key = SHA-256 of the secret, sent as { enc: "A256GCM", iv, tag, data } with each part base64 and an x-aegis-encryption: A256GCM header. The signature covers that sealed body. Your endpoint decrypts it to get the event above, and answers in the same shape — a plain answer is refused.

A DPDX project can point a capability at a private IPv4 address on Aegis's own network (10.x, 172.16–31.x, 192.168.x, 100.64–127.x), over https:// or http://. No public certificate covers a private address, so those are always encrypted, and a self-signed certificate is accepted. Everyone else needs a public https:// URL: a private address would point into Aegis's network, not yours.

A complete endpoint in Node, handling both modes:

const crypto = require('crypto');
const SECRET = process.env.AEGIS_SIGNING_SECRET;
const key = crypto.createHash('sha256').update(SECRET).digest();

const open = ({ iv, tag, data }) => {
  const d = crypto.createDecipheriv('aes-256-gcm', key, Buffer.from(iv, 'base64'));
  d.setAuthTag(Buffer.from(tag, 'base64'));
  return Buffer.concat([d.update(Buffer.from(data, 'base64')), d.final()]).toString();
};
const seal = (json) => {
  const iv = crypto.randomBytes(12);
  const c = crypto.createCipheriv('aes-256-gcm', key, iv);
  const data = Buffer.concat([c.update(json), c.final()]);
  return JSON.stringify({ enc: 'A256GCM', iv: iv.toString('base64'), tag: c.getAuthTag().toString('base64'), data: data.toString('base64') });
};

require('http').createServer((req, res) => {
  let raw = '';
  req.on('data', (c) => (raw += c));
  req.on('end', () => {
    // 1. It came from Aegis, recently.
    const ts = req.headers['x-aegis-timestamp'];
    const want = 'v1=' + crypto.createHmac('sha256', SECRET).update(`${ts}.${raw}`).digest('hex');
    const got = String(req.headers['x-aegis-signature'] || '');
    const fresh = Math.abs(Date.now() / 1000 - Number(ts)) < 300;
    if (!fresh || got.length !== want.length || !crypto.timingSafeEqual(Buffer.from(got), Buffer.from(want))) {
      res.writeHead(401).end();
      return;
    }
    // 2. Open it, if payloads are encrypted.
    const encrypted = req.headers['x-aegis-encryption'] === 'A256GCM';
    const event = JSON.parse(encrypted ? open(JSON.parse(raw)) : raw);
    const reply = (status, body) => res.writeHead(status, { 'content-type': 'application/json' }).end(encrypted ? seal(JSON.stringify(body)) : JSON.stringify(body));

    if (event.type === 'ping') return reply(200, { ok: true });
    // 3. Do the work. event.payload is { amount, currency } for charge(amount, currency).
    if (event.action === 'charge') {
      const { amount, currency } = event.payload;
      if (!(amount > 0)) return reply(422, { error: 'amount must be positive' });
      return reply(200, { charged: amount, currency, by: event.caller.licenseId });
    }
    reply(404, { error: `No action ${event.action}` });
  });
}).listen(8080);

The API, for scripting

Everything above is also a plain API if you'd rather script it: POST /api/capabilities with { kind: "webhook", projectId, module, endpointUrl, actions: [{ name, params?, description? }], encrypt?, label?, description?, timeoutMs? } onboards one and returns { capability, secret } (the secret, again, only in this one response). GET /api/capabilities lists everything you can see or manage; PATCH/DELETE /api/capabilities/:code update or remove one you own.

Troubleshooting

What you seeWhat to do
"Nothing to upload"The folder had no text source files after skipping. Pick the project root, not a build or node_modules folder.
"over the 2000-file limit" / "12 MB"Something generated got picked up. Upload the source folder only, without build output, vendored code or large data files.
A machine stays amber after an updateIt may be offline, paused by its process manager, or unable to write to its folder. Check its logs for "DPDX — RELEASE UPDATED" or an error, and make sure something restarts it.
Updated, but crashes on a missing packageThe machine runs a kit older than 1.6.0 (no automatic npm install). Run npm install there once, then Update kit.
A machine is flagged for modified files after an updateThe release was uploaded with "Protect these files" off while the project uses file integrity. Upload again with it on, or edit and publish from the dashboard, which keeps the list in step.
Release version shows "?"That machine runs a kit older than 1.7.0. Update kit once; versions show from the next heartbeat.

Something missing here? Tell us from the dashboard, or read the terms that cover uploads.