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

Putting a license in

MNC cannot be used without a valid license. That includes a fresh installation: it starts anyway, is ready, and takes a license in. This is the same in every operating mode.

What you see without a license​

  • The services run and answer their probes: /alive and /ready with 200. /health names the check license as unhealthy, /status names the reason, for example license.missing (no license), license.invalid (signature or content wrong), license.not-bound (made for another installation), license.expired (ended).
  • Every business request to the Service Center and Application Center is answered with 402 and the reason.
  • The radio interfaces accept no connection, no connector runs, no business job runs.
  • The interface shows a statement with the reason instead of the pages of the locked center and leads to the license page.

The probes and the status, the license page, identity, PKI and messaging, and the clean-up jobs that deliver nothing keep running. Nothing is deleted: with a valid license everything runs again, without a restart.

Putting a license in​

The standard way is the interface. After you have set the password at the first sign-in, a step "Put a license in" appears; you can skip it with "Later" and use the interface. The functions that need a license then do not work until a license releases them: the centers report license.missing, and the Application Center does not connect to a Service Center. You find the same action later under System → License (one page for both centers): "Put a license in". You need the permission license.install for it; without it the page shows the state but not the action. The license takes effect without a restart.

Option for an automated deployment: the file. License__File is not set by default. Whoever delivers the license with the deployment turns on the file way, equally for all services that need a license (servicecenter, gateway, jobs, applicationcenter): with Docker Compose through compose.license-file.example.yaml and the file ./license/license.json, with Kubernetes through licenseFile.enabled=true and the secret mnc-license (the file license.json), on Linux by uncommenting the line License__File in the settings of these services under /etc/noritec/mnc and putting the file /etc/noritec/mnc/license.json in place. The services read the file at every check; a restart is not needed. While the file is set, an upload through the interface is refused (409), and a missing file reports license.file-unreadable.

The license is bound to the installation id of your installation (License:InstallationId, a secret of the installation in every operating mode); the license page shows it.

Only licenses from the manufacturer​

A released MNC accepts only licenses that the manufacturer signed with its official key. The services carry the public half of that key built in; a setting, a file next to the programs or an environment variable cannot replace it. A license signed with any other key is refused, even if it looks fine otherwise and even if you start the services in a development environment (ASPNETCORE_ENVIRONMENT=Development): the released product has no development mode in which another key would count, and it contains no development key.

What you see with such a license: the services stay locked, /status names license.invalid, and every business request is answered with 402 and licenseCode license.invalid. The reason is in the services' log: the license was signed with a key this product does not know, and the key name is given. That does not mean your installation is set up wrongly, but that the file does not come from the manufacturer or was signed with a key this product does not know. Download the license again from your customer area; if that does not help, contact the manufacturer and name the key from the log.

A beta does not accept a license yet. As long as the manufacturer has not built its official key into the product, a beta has no key to check a license against: it stays locked and reports license.invalid as soon as a license is present, whoever signed it. That is intended; a beta that contains the key accepts licenses.

What the check proves​

The proof that the lock holds is a stack test that runs before every release: it starts the software without a license, with a broken signature, with a foreign binding and with an expired trial license, and checks that every business request returns 402, the radio interfaces accept nothing, the probes answer, and a valid license opens it without a restart. Not covered by this test are the perpetual license with ended updates (it is valid on every build released within the updates; covered by the tests of the license library) and the behavior of the jobs (covered by the tests of the centers).