Preview: this product has not been released yet. The description may change before release.
Skip to main content

Plugins

A Plugin is the package that hands the Application Center's measurements on somewhere: into a PLC over Modbus, to an MQTT broker, into a database, into a control system. It is the software; what actually runs is a Connector — a configured, startable copy of it. A Plugin can have none, one, or many Connectors.

Plugins live on the Connectors screen, in the Catalog tab: the shop where it is decided what may run at all. Before it stands the Connectors tab with what runs (see Connectors), after it the Sources tab with the feeds the offer is assembled from. A Plugin and a Connector are not siblings but two steps — one installs, the other runs what was installed.

Opening the page reads the offer. The catalog is not a stored directory but the sources' answer at this moment. While it is on its way, the page says where it is reading from — Reading the offer: from Noritec (packages.noritec.io). If a source does not answer, that stands above the list, and the list shows what the others deliver.

The list carries one row per Plugin: installed, available, source, Connectors. It only shows; everything that happens to a plugin — installing, updating, removing versions, uninstalling — happens on the detail page, which a click on the row opens.

Sources​

A source is the address packages are asked for. The product ships with a built-in source; further ones can be added, an in-house feed with your own Plugins, say. The sources live in the Sources tab of the Connectors screen, Add source above their list.

When several sources offer one Plugin, the order decides. The list is ordered and read top to bottom: the first source offering a package under that name wins — the ones below it are no longer asked for that package. The move up and move down arrows shift the order. Anyone shipping their own build of the same Plugin therefore puts their source on top.

Address​

The address field takes four forms:

FormMeaning
.../index.jsonthe service index of a NuGet feed
.../catalog.jsona catalog that lists the packages directly
oci://registry/repository:channela single repository in an OCI registry
oci+index://registry/index:channelan index in an OCI registry pointing at several repositories

The channel at the end of an OCI address is the tag the registry keeps its states under — such as stable or preview.

The built-in source's address comes from the server configuration (ApplicationCenter:ConnectorCatalogUrl) and cannot be changed in the surface. The built-in source can be switched off, but not removed.

Token​

A source that requires authentication gets a token. It is stored encrypted and never handed out again — not even to the surface, which is why the field is empty when editing. Leaving it empty keeps the stored token; a new value replaces it; the remove stored token switch deletes it, and the source is queried without authentication afterwards.

A token is only accepted over https. Over an unencrypted connection it would travel the network in the clear.

Prereleases​

The show prereleases switch affects the offer only — that is, what this source contributes to the list of available versions. It has no effect on what is already installed: an installed prerelease keeps running even if the switch is turned off afterwards, and it is offered the later final release as an ordinary update.

Unsigned packages​

A Plugin can carry a signature from its publisher. It says who built the package — which is a different thing from the address it was downloaded from. The signature is checked before anything is unpacked, and the check has several distinct outcomes:

OutcomeWhat it means
trustedThe signature chains to a root this machine trusts. The package is installed.
unsignedNobody made a statement about this package.
tampered withA statement was made, and the bytes have changed since.
foreignThe statement comes from somebody this machine does not trust.
no rootThis machine has no certificate store at all, so it cannot judge anything.

The accept unsigned packages switch covers the second case and nothing else. A tampered or a foreign-signed package is still refused however the source is configured — the switch is not an off switch for the check.

It is needed for now, which is why it is also the default. Plugins are not signed yet; the certificate for that has to be bought from a public authority. A source that refused unsigned packages would therefore offer nothing installable today. So that this does not go unnoticed, every source accepting unsigned packages is marked Unsigned allowed in the list. Once signed packages ship, this switch is where a plant can insist on them.

Removing a source​

A removed source is no longer asked for packages. What was installed from it stays installed and keeps running — only updates no longer come from there.

When a source does not answer​

If a source cannot be reached, the screen says so by name. The consequence stands beside it, because it is not obvious: what that source offers is missing from the list, and for the Plugins that come from it there is no telling whether a newer version exists. The installed Plugins and their Connectors keep running unchanged; only the offer is incomplete.

Beside each source stands since when it has not answered and why:

ReasonWhat to check
no answer in timeNetwork path and firewall; a source has five seconds, a registry fifteen.
not reachableName, address and network – this is what a system without Internet access looks like.
access refusedThe source's token is missing, wrong or not enough.
answers with an errorThe source itself; it can be reached but delivers nothing.
does not answer with a catalogThe address points at something other than a feed or catalog.

If no source answers, the catalog could not be loaded; the list then shows only what is installed and bundled. A Plugin can still be uploaded in that case. The sources are asked at the same time, so the screen waits for the time limit once at most, not once per source; the result holds for a minute.

Uploading a plugin​

On a system without Internet access a Plugin arrives as a file: the .nupkg the Plugin's build produces. Upload on the Catalog tab opens the dialog; once the file is chosen, a bar shows how much of it has been sent, and then the Application Center checks and installs the package. Only administrators may upload.

An uploaded package is checked exactly like one from a source: it has to be marked as a connector Plugin, the id and version in the package have to match its manifest, the signature is judged as described above, and the Plugin's program has to be built for the operating system of this Application Center. If the same version is already installed, nothing is overwritten. Every reason a package is refused for appears as a sentence in the dialog.

How large a package may be and whether packages without a signature are accepted is stated in the dialog; the operator sets both (ConnectorUploadMaxMebibytes, AcceptUnsignedUploads). In the list, an uploaded Plugin that no source offers carries the origin uploaded; if a source later offers a newer version, it appears as an update.

The detail page​

Clicking a row opens the Plugin: at the top its name, id and state (installed, update available, not installed) with the maturity and contract marks of the newest version; below that the author, the source, the newest and the installed version, the number of Connectors and the project address, when the package names one. This is where the actions are: Install or Update, Uninstall and Create Connector, once something is installed.

Three tabs:

  • Overview — the description from the package and What a Connector needs: the settings the newest installed version declares, with type, whether required, and default. As long as nothing is installed, it says that the fields come with the package — they are in its manifest, not in the feed.
  • Versions — every version in one table, installed and offered together, newest first: when it was published, maturity and contract, whether it is installed and how many Connectors run on it. Per row Install this version or Remove; only a version no Connector runs on can be removed.
  • Changes — per version, what changed in it, newest first: the release notes the release generates from the commits and writes into the package. For an installed version they come out of the package, for an offered one out of the source; neither is read before the tab is opened. A version released before the package brought the notes along carries none, and the page says so — unlike a source that does not answer: there the notes may exist, and Read again asks once more.

The publish date comes from the package's registration in the feed, one request of its own per Plugin. If the source does not answer it, the dates stay empty and the page says so; the table is complete all the same.

Versions​

A Plugin can be installed in several versions at once. That is not a special case but the way an update proceeds in a plant that cannot be switched over in one go: the new version is installed, one Connector is moved and watched, then the next.

The list therefore shows two figures side by side:

  • Installed — what is on disk. With several versions, their count stands there.
  • Available — the highest version an active source offers.

If the available one is above the installed one, update available stands beside it.

Contract and maturity​

Beside both versions stands what the Application Center makes of them before either runs — the same marks at a Connector's version, in the Create Connector dialog and in the question before an update.

The IPC contract. A package names the version of the contract it speaks to the Application Center over, and the Application Center compares it with its own:

MarkWhat it means
IPC contract …: olderAn older minor of the same major. The package runs and uses nothing the contract has gained since — a reason to update the Plugin.
IPC contract …: newerA newer minor. The package runs; whatever of it needs the newer contract stays unused until the Application Center catches up.
IPC contract …: incompatibleThe majors do not meet. Such a Connector does not start — the Application Center refuses the start and names both versions.

No mark means: the package speaks exactly this contract, or it names none (packages from before the declaration existed) — both the ordinary case. Every version stays installable, an incompatible one too: the mark predicts, it forbids nothing.

The maturity. A package's author can state what they vouch for: Experimental, Preview or stable. Stable carries no mark. Where the manifest says nothing, Maturity not stated stands there — explicitly, because silence is not the same as a promise.

Installing and updating​

Install fetches the package and puts it down. Running Connectors do not move by themselves — they carry on with the version they are running. That is why there are two separate operations: installing makes a version available, and the per-Connector update decides who uses it.

Uninstalling​

Uninstalling distinguishes two things:

  • Uninstall Plugin removes the package entirely. While Connectors use it, that is refused.
  • Remove version takes a single version off disk. Connectors running it have to move to another version first.

Both are a refusal and not a fault: they stop the ground being pulled out from under a running Connector.

New versions​

Once a day, at five in the morning, the Application Center checks its sources for a newer version of an installed plugin. When it finds one, it leaves a notification: in the bell in the header, naming the plugin, the offered and the installed version, one per plugin. Open catalog leads to the plugin's detail page, where the version is installed; the tick marks the notification read. It does not come back while the offer stays the same — an even newer version is a new notification.

A notification disappears by itself when its cause is gone: the version is installed, the plugin uninstalled or the offer withdrawn. When a source does not answer, the notifications stay until it answers again. The list of plugins shows the pill Update available right away anyway; the notification is for whoever did not have the list open.