invantive documentationpart of invantive cloud
Invantive Support ForumsLog In / Sign Up

License Service

All Invantive products exchanges licensing messages with a central Invantive License Service node.

The following environment variables control License Service and are available on all platforms and products:

  • INVANTIVE_LICX_KEY: the licence key will be taken from this variable when defined for use with the Invantive License Service when configured by default or via INVANTIVE_LS_NEW. Available since release 26.0.
  • INVANTIVE_LIC_KEY: the licence key will be taken from this variable when defined for use with the (obsolete) CryptoLicensing system when configured by default or via INVANTIVE_LS_NEW. Available since release 26.0.
  • INVANTIVE_LICENSE_FILE_PATH: the licence file name and path will be taken from the environment variable INVANTIVE_LICENSE_FILE_PATH. Otherwise a file will be used named invantive.licx (Invantive License Service) or invantive.lic (CryptoLicensing) in the Invantive configuration folder.
  • INVANTIVE_LS_NEW: whether the Invantive License Service is used (true) or the obsoleted CryptoLicensing service (false). Defaults to true on release 26.0 and later, false before.
  • INVANTIVE_LS_ENVIRONMENT: the licence environment to use as one of production, acceptance, test and development. Defaults to production. Only in selected versions the development licence environment is available.
  • INVANTIVE_ACCEPT_LICENSE: the code of the licence variant whose agreement is accepted without a window. See Unattended Start. Available from release 27.0.

Every product takes the licence key from the first of these sources which holds one:

  • the command line, such as /licensekey: of Invantive Data Hub and --licensekey of Invantive Query Tool. A key on the command line is visible in the process list of the host, so the product writes a warning in the trace.
  • the environment variable INVANTIVE_LICX_KEY. Invantive Query Tool also still reads INVANTIVE_LICENSE_KEY, with a warning; that name will be removed.
  • the licence file named by INVANTIVE_LICENSE_FILE_PATH, otherwise the default licence file in the configuration folder. In a container or a cluster, mount the key as a secret file and point INVANTIVE_LICENSE_FILE_PATH at it.
  • the encrypted user settings of the product, for the products which keep user settings.

The sources below the one which holds a key are not read, so a key from the command line or the environment takes precedence over a key entered in the product. A value which is not a usable key is skipped, with a warning in the trace. This applies to all products, including the graphical and multi-platform Invantive Producer products such as Invantive Data Hub, Invantive Query Tool, Invantive Data Loader, Invantive Estate and Invantive Studio. Reading a key does not accept the agreement: the Agreement window is still shown until the user accepts the agreement, unless the agreement variant is named on the command line or in the environment. Available since release 28.0 (BETA 27.1).

The licence key is never written to the trace, the start-up report or an error message: they name the source only. When INVANTIVE_LS_NEW is not set and the key has the size of a CryptoLicensing key, the trace holds a warning which names INVANTIVE_LS_NEW=false; the CryptoLicensing system is not selected automatically.

A licence key is read the same way from INVANTIVE_LICX_KEY, from INVANTIVE_LIC_KEY and from the licence file: spaces, tabs and line endings before, after and inside the key are ignored, whether the text ends in the Linux, Mac OS or Windows manner. A value taken from a file, a here-document or a block scalar in a deployment manifest therefore needs no stripping first.