Karyo
Documentation/ Operations

Licence settings (retired)

Karyo 2.1.1rendered at build time
On this page

Karyo is one Apache-2.0 product, and every capability - the ten engine capabilities included - is available on every installation. No licence is needed, and none is read (ADR 0030). Which capabilities the console shows is the installation's profile, never a licence (ADR 0052). This document is for two readers: an operator whose environment file still carries the 1.x licence settings, and the author of a client that reads GET /api/v1/license.

Derived from libs/karyo-license/src/main/kotlin/com/karyo/license/LicenseService.kt, libs/karyo-license/src/main/kotlin/com/karyo/license/LicenseResource.kt, services/karyo-app/src/main/resources/application.yaml, scripts/.env.prod.example and scripts/render_compose_env.py.

The settings are accepted and ignored

Property Environment spelling In 1.x Now
karyo.license.key KARYO_LICENSE_KEY the signed licence token accepted, ignored
karyo.license.public-key KARYO_LICENSE_PUBLIC_KEY an override for the bundled vendor key accepted, ignored
karyo.license.entitlements KARYO_LICENSE an unsigned comma-separated list of engines accepted, ignored

Any value is accepted: a valid token, an expired one, one signed by a foreign key, text that is not a token at all, key names Karyo never had, or an empty value. Nothing parses, verifies or compares them, so no value can stop the application from starting, lock a capability or change a response (LicenseService). An empty value, as the 1.x production template shipped KARYO_LICENSE=, is injected as an optional value and never trips SmallRye Config's empty-value failure, SRCFG00040.

The settings still reach the application container the way every application variable does: scripts/render_compose_env.py puts everything that is not KC_, not POSTGRES_ and not KARYO_PUBLIC_ORIGIN or KEYCLOAK_URL in the application bucket (render_compose_env.py, service_assignments). The production template leaves both lines commented out (scripts/.env.prod.example, KARYO_LICENSE, KARYO_LICENSE_KEY).

What the log says

At startup the application logs one warning for each retired setting that is present, naming the setting and never its value:

karyo.license.entitlements (KARYO_LICENSE) is set, but Karyo no longer uses licences: every capability is available and this setting is ignored. It can be removed.

A blank value and the 1.x placeholders - none, and bundled for the public key - count as not set, so an untouched 1.x environment file logs nothing for them (LicenseService.entitlements).

Removing the settings changes nothing but the warning. They are deprecated with no removal date.

What GET /api/v1/license reports

The route, its 200, its two body shapes and their field names are unchanged, and it still needs no credentials. Every installation serves the same two bodies (LicenseResource):

Caller Body
Anonymous {"edition":"community"}
Signed in, any role {"edition":"community","entitlements":["advanced-fulfillment","cartonization","documents","forecasting","monitors","simulation","slotting","three-pl"]}

edition is always community, the one edition there is. entitlements is the complete set of the eight 1.x capability keys, frozen: a client that still asks "is this capability entitled?" hears yes for every key it knows, and a capability added later needs no key. The anonymous body names the edition alone, exactly as narrow as it was.

The endpoint discloses and never authorizes. Nothing in Karyo reads it to decide whether a caller may proceed: roles, goods-owner scope and principal kind are enforced where they always were. Neither of Karyo's own front ends requests it: the desktop console shows every engine page through its ordinary path and decides what to list from the caller's roles alone, and the floor app reads the same roles. The endpoint exists for other clients that were written against it.

What an upgrade from 1.x changes

The 1.x gate was per capability, so an installation that ran with a licence still gains every capability its token did not name; one without a licence gains all of them.

  • Capabilities the 1.x licence did not name (all of them on an installation without a licence) gain their screens and routes: requests that refused now answer. The event monitors are enabled per Facility by default and begin sweeping every karyo.monitors.interval (5 minutes), raising in-app alerts; every new alert also publishes alert.fired to the outbox, which an existing webhook subscription of that Facility delivers if its event types match * or an alert* prefix - so such a subscription starts receiving alert.fired after upgrade with no email or Slack channel configured. Email and Slack delivery stay off until a channel is enabled. An order strategy saved with a CARTONIZATION packout knob starts cartonizing at the default of one line per box, where before it packed one unit per container. Wave auto-release, order streaming and cross-docking each still wait for their own runtime switch, all off by default (engine capabilities).
  • Capabilities the licence covered keep working unchanged. An expired licence no longer matters, and a restart after expiry no longer locks anything. Cartonization still answers its knob in any spelling, so a covered installation's CARTONIZATION strategies keep cartonizing.
  • A packout name that is neither CARTONIZATION in any case nor ONE_TO_ONE, on an installation whose 1.x licence named cartonization - which cartonized it through the priority scan - now falls through to the built-in ONE_TO_ONE and packs one unit per container. Without that key 1.x already packed such a name one unit per container, so nothing changes. The default ONE_TO_ONE is unaffected.
  • Access control does not change. A request that a role or goods-owner check refused before is refused the same way now; the only refusal that disappeared is the licence one.

The signing tooling

LicenseVerifier and VendorKey remain in libs/karyo-license, with the vendor public key in its one home, libs/karyo-license/src/main/resources/com/karyo/license/vendor-public-key.txt. They serve the token tooling in that module's tests; the running application reads neither.

Where the code's licence is stated

NOTICE states one Apache-2.0 grant for the whole distribution and names all ten capabilities (NOTICE); the root build's per-module licence packaging packages the root Apache-2.0 LICENSE into every module jar (building). The application image carries the same three files and a literal Apache-2.0 licence label, with no per-module markers (container images). The old per-module free/commercial split is superseded history (ADR 0020, ADR 0029).