Documentation Workbench Updated

Extensions

Finding, installing and removing extensions from the Exprezoe Marketplace, what an extension may reach, and the sandbox it runs in.

The Extensions view

Choose Extensions in the activity bar (the four squares, Ctrl Shift X). It has two parts:

  • Installed: what PluggedDesk has. The built-in extensions (PluggedHub, Remote Desktop) come with PluggedDesk and are updated with it. Extensions you installed can be disabled, enabled, updated and uninstalled here.
  • Exprezoe Marketplace: search box and results. The first time you open the view it lists what the Marketplace has for your PluggedDesk; type what you are looking for (a name, or words like gitlab or secrets) and press Enter. Include previews also lists pre-release versions.

An installed extension that contributes a view adds its own button to the activity bar.

Extensions run on Windows: PluggedDesk runs an extension's code only inside a Windows sandbox (below). On Linux and macOS the Extensions view lists what is built in and says why there is nothing to install.

Installing

Choose an extension in the results to read about it (its description, publisher, licence, README, and the newest version that runs on your PluggedDesk), then Install. Before anything is installed, PluggedDesk:

  1. downloads the package by its fingerprint and checks it — the publisher's signature, the Exprezoe Marketplace's countersignature (the Marketplace's key is built into PluggedDesk), the package's fingerprint and structure, its manifest, that it was made for this PluggedDesk, and that the Marketplace has not withdrawn it. A package that fails any check is refused and deleted, and PluggedDesk says which check failed;
  2. shows what the extension asks to reach (below) and waits for you to choose Install or Cancel.

Nothing of an extension runs before both.

Who it comes from

Each extension shows what PluggedDesk checked of it, in its details and in Installed:

Mark What it means
TRUSTED An official extension of Exprezoe's own (an official first-party publisher), countersigned by the Exprezoe Marketplace, and not withdrawn.
VERIFIED Another publisher's extension, countersigned by the Exprezoe Marketplace, and not withdrawn.
BLOCKED The Marketplace withdrew it, or its signature failed a check. It cannot be installed, and an installed one does not run.
NOT VERIFIED PluggedDesk has no current list of withdrawn extensions to check it against (it fetches one every six hours).

PluggedDesk works the mark out itself: from the package's signature document, checked against the Marketplace's key that is built into PluggedDesk, and from the Marketplace's signed list of withdrawals. It never takes a mark from what the Marketplace's listing says, and checks an installed extension's signature again each time the list is shown. From 0.9.1 it also keeps the fingerprint of every file it installed, and checks them each time it starts and before it starts an extension. One whose files changed afterwards does not run, and is shown BLOCKED until it is installed again. The details also name the key that signed the package and the Marketplace key that countersigned it, and the PluggedDesk versions the extension is made for.

A mark grants nothing. A trusted extension runs in the same sandbox, reaches only what it declared, and asks for your consent like any other.

What an extension may reach

An extension reaches nothing but what its manifest declares, and PluggedDesk enforces it — nothing is granted because of who published it. You see the list before installing:

Permission What it means
Network The addresses (HTTPS) it may connect to — exactly those, nothing else. PluggedDesk makes the requests; redirects are not followed.
Credentials The names under which PluggedDesk may keep a credential for it (a sign-in, a token you type). The extension never sees the credential: PluggedDesk attaches it to requests for the address it belongs to.
Clipboard Read, write, or both. What it copies as a secret is cleared after 30 seconds and kept out of clipboard history.
Files A file you choose in a dialog, each time; saving a new file in your Downloads folder (never replacing one). Every extension also has a folder of its own.
Workspace Reading your connections (names, addresses, folders). The workspace never holds a password. PluggedDesk lets no extension change your connections.

From PluggedDesk 0.9.1, an extension that asks for something this PluggedDesk cannot give it (your Documents folder, changing your connections, a live connection of its own) is not installed: it would not work as it says. The view names what is missing. An extension already installed that needs something a PluggedDesk no longer offers is turned off and kept, and runs again once it is offered (an update of PluggedDesk, or of the extension).

An update that asks for more is shown again, with what is new, and waits for you. Updates are never installed without you: Update appears beside an extension when there is one. An extension installed as a preview is offered the next preview; one installed from the stable channel, the next stable version.

The sandbox

On Windows, each extension with code runs in a process of its own, inside a Windows AppContainer made for that extension alone, with no network access, no access to your files or to your saved Windows credentials, no clipboard, and no way to start programs or to open PluggedDesk's own process. Everything it does reaches the outside through PluggedDesk, which checks it against what the extension declared and records in the extension's audit trail what it reaches and every request it is refused. If an extension crashes, it ends; PluggedDesk does not.

Each extension also runs on its own private, invisible desktop, on a Windows "window station" separate from yours. What an extension shows is drawn by PluggedDesk, in PluggedDesk's own style; the toolkit gives the extension no way to open a window. If an extension's own code opens a window anyway, it opens on that invisible desktop — not yours — so it cannot put a fake PluggedDesk or Windows password prompt in front of you; and because its desktop is off your own, it cannot read what is on your screen, nor reach back to your desktop to do so. When PluggedDesk asks you to confirm something destructive, to sign in again, or to enter a secret, PluggedDesk itself draws the dialog and names the extension that asks. While a secret is revealed in PluggedDesk's window, PluggedDesk also keeps that window out of screen captures.

What the sandbox does not do: code running as you outside PluggedDesk (other malware on the PC) is not stopped by it. On Linux and macOS there is no sandbox yet, so PluggedDesk installs and runs no extension there.

When an extension stops

If an extension's process ends by itself (a crash), its view says so, and Try again starts it again. If it ends by itself three times within ten minutes, PluggedDesk turns it off and says so. Enable in Installed runs it again; an update of the extension does too.

Safe Mode. If PluggedDesk misbehaves because of an extension, hold Shift while PluggedDesk starts (or start it with --safe-mode). That time no extension runs. The Extensions view lists them, so you can disable or uninstall the one that gets in the way. The next ordinary start runs them again.

Diagnostics. Diagnostics beside an installed extension shows:

  • its mark and signature;
  • whether it runs on this PluggedDesk, and what it needs from it;
  • what you granted it;
  • whether it is running, and how often it stopped by itself;
  • where its log is.

Copy puts that on the clipboard for a support ticket. Nothing in it is secret.

Signing in through an extension

An extension that connects to a server it declared (your company's GitLab, for example) asks PluggedDesk to sign you in. PluggedDesk first asks you, naming the server; then your browser opens at that server, and you sign in there, as you always do. PluggedDesk keeps the result in Windows Credential Manager and sends it only to that same server: a sign-in an extension wanted delivered anywhere else is refused before anything is shown. You never type that password into PluggedDesk, and the extension never sees the sign-in. Signing out (or uninstalling the extension) revokes the sign-in at the server, where the server offers that, and deletes it here in any case. If the server could not be reached to confirm it, PluggedDesk tells you which server may still hold the sign-in and where to end it (its list of authorized applications). A server that cannot be reached for a moment does not end your sign-in; PluggedDesk tries again. Only a server that refuses it ends it, and then nothing of it stays on this computer.

Every address an extension opens in your browser is shown to you first, and you choose whether to open it. An extension has at most one question for you on the screen at a time, and after you answer one with Cancel it cannot ask again for a few seconds — longer each time you cancel again, up to a minute — enough to reach Disable in the Extensions view if it keeps asking. A link you click yourself in an extension's view is never held back.

From PluggedDesk 0.8, an extension can add what it knows to the search (Ctrl K): a project, an issue, a runner. Its results come after your own computers and connections, each names the extension and what kind of thing it is, and choosing one opens it in the extension. The extension never sees what you type. The titles it added stay on this computer until you sign out of that extension, until it has been disabled for seven days, or until you uninstall it; the Extensions view says how many each extension has added.

Uninstalling

Uninstall stops the extension and deletes its files, its folder, its sandbox, its settings and every credential PluggedDesk kept for it (sign-ins are revoked at their servers first, where the server offers that). Its audit trail stays, for you, in %LOCALAPPDATA%\PluggedDesk\extension-state\<id>\ (audit.jsonl, and audit.previous.jsonl once a trail has grown past 8 MB: the newest entries are kept). Requests an extension repeats are written once a minute with a count.

Uninstall your extensions before you uninstall PluggedDesk. Uninstalling PluggedDesk removes PluggedDesk; it does not go through each extension, so their folders, sandboxes and saved credentials stay behind, and their sign-ins are not revoked.

When the Marketplace is not reachable

PluggedDesk installs only from marketplace.exprezoe.com. If it cannot be reached, the view says so; extensions already installed keep working.

PluggedDesk installs and updates only while it holds the Marketplace's current signed list of withdrawn extensions (each list is valid for at most a week). It fetches the list when it starts and every six hours, and stops at once an installed extension the list withdraws. Without a current list, the view says that installing is paused. If the list PluggedDesk stored cannot be read, PluggedDesk runs no extension (an older list could otherwise be slipped back in) and the view says how to start over.