Skip to Content

Licensing Module

Licensing is installed from the vizor chart. It registers with IAM as licensing, offers its roles to both IAM instances, and publishes the reporting entities that it manages on hub.entity.

The installation of Licensing itself, including the database restore, the content deployment and the system settings, is described in the Licensing chart documentation. This page lists the values that connect it to the RSH platform.

Prerequisites

The cluster provides these before the chart is installed. They are not chart values.

  • A Windows node and a Linux node. Parts of Licensing run only on Windows.
  • With the virus scanner enabled (the default, global.antivirus.clamav.enabled), outbound HTTPS (TCP 443) to database.clamav.net and its CDN mirrors. Without that access the ClamAV pod does not start.

Boundaries and install order

Licensing serves both boundaries and registers with both IAM instances, so install it after <INTERNAL_RELEASE> and <EXTERNAL_RELEASE>.

deployment.internalNamespace and deployment.externalNamespace name the two sides. The values on this page install Licensing as one release, which runs both sides in <INTERNAL_NAMESPACE>, so both values are <INTERNAL_NAMESPACE>, and <LICENSING_PORTAL_HOST> is published to the portal users. deployment.type can split Licensing into two releases, so that the external side runs in <EXTERNAL_NAMESPACE>:

SideNamespaceValues
Internal<INTERNAL_NAMESPACE>deployment.type: Internal, deployment.externalNamespace: <EXTERNAL_NAMESPACE>
External<EXTERNAL_NAMESPACE>deployment.type: External, deployment.internalNamespace: <INTERNAL_NAMESPACE>, deployment.platformApi.enabled: false, and deployment.clusterDomainName (default cluster.local)

The Licensing chart documentation describes which of the other values each side needs.

  • config.vasInt.license belongs to the internal side and keeps the chart default. That default enables the health, JWKS, Platform and RConnect endpoints, which Licensing uses.
  • config.vasExt.license belongs to the external side. The portal templates, including the Secret that holds it, render when deployment.type is External, All or empty.
  • iam.externalApiClientId belongs to the internal side, and an empty value becomes vizor-<moduleName>-client.

Registration endpoints

The chart registers getCommunicationDimensions, getRoles, getEntities and getEntityGroups by default, on each boundary.

  • IAM keeps one global entities context, and Datacollection provides it through MDM, so the ConfigMap leaves out getEntities and getEntityGroups.
  • It keeps getCommunicationDimensions. A registration without that purpose removes Licensing from RConnect when RConnect is installed.

Apply this ConfigMap, licensing-registration-endpoints.yaml, before installing Licensing:

apiVersion: v1 kind: ConfigMap metadata: name: licensing-registration-endpoints data: vizorRegistrationEndpoints: | [ {"purpose": "getRoles", "uri": "/v2/users/roles/internal", "boundary": "internal", "permissions": [{"roles": {"internal": ["super_admin"]}}]}, {"purpose": "getRoles", "uri": "/v2/users/roles/external", "boundary": "external", "permissions": [{"roles": {"external": ["super_admin"]}}]}, {"purpose": "getCommunicationDimensions", "uri": "/v2/rconnect/communicationDimensions", "boundary": "internal", "permissions": [{"roles": {"internal": ["super_admin"]}}]}, {"purpose": "getCommunicationDimensions", "uri": "/v2/rconnect/communicationDimensions", "boundary": "external", "permissions": [{"roles": {"external": ["super_admin"]}}]} ]

iam.registrationEndpointsConfigMapName names the ConfigMap. Without it, Licensing registers its entity endpoints as well and takes over the global entities context whenever it registers after Datacollection; see Global entities.

Values

Set the values below so that Licensing registers with both IAM instances, reaches NATS, and uses the database, mail server and Git content of the installation. Other keys stay at the chart default. Print the chart’s own values with helm show values <LICENSING_CHART> --version <LICENSING_VERSION>. Environment Parameters defines each placeholder.

The file has these blocks:

  • moduleName, releaseTag and image name the module and the images that are pulled.
  • deployment names the namespaces of the internal and the external side.
  • database restores the product bundle at the first installation, names the database login Secret and publishes the database manager.
  • web points at the Git repository of the content and at the mail server.
  • supervision, portal, vasInt and vasExt set the hosts of the supervision application, the portal and the two APIs.
  • iam turns on the registration with IAM, sets the application ID and the Keycloak clients, and names the registration ConfigMap.
  • global.storage and platform-api connect Licensing to the shared file storage and, through its Platform API instance, to NATS.

<LICENSING_RELEASE>-values.yaml:

moduleName: licensing releaseTag: "<LICENSING_RELEASE_TAG>" image: registry: <IMAGE_REGISTRY> repository: vizor deployment: internalNamespace: <INTERNAL_NAMESPACE> externalNamespace: <INTERNAL_NAMESPACE> database: init: defaultRestore: "vizor_licensingVsab_resources.zip" credentials: credentialsSecretName: <LICENSING_DB_SECRET> backup: {enabled: true, ingress: {hostname: <LICENSING_DB_MANAGER_HOST>}} web: gitResources: {url: <LICENSING_RESOURCES_REPOSITORY>, credentialsSecretName: <LICENSING_GIT_SECRET>} mail: {hostName: <SMTP_HOST>, fromAddress: <SMTP_FROM>, credentialsSecretName: <LICENSING_MAIL_SECRET>} supervision: {alias: "", ingress: {hostname: <LICENSING_SUPERVISION_HOST>}} portal: {alias: "", ingress: {hostname: <LICENSING_PORTAL_HOST>}} vasInt: {alias: "", enable: true, ingress: {hostname: <LICENSING_INTERNAL_API_HOST>}} vasExt: {alias: "", enable: true, ingress: {hostname: <LICENSING_EXTERNAL_API_HOST>}} iam: enabled: true applicationId: licensing internalApiClientId: vizor-licensing-client externalApiClientId: vizor-licensing-portal-client registrationEndpointsConfigMapName: licensing-registration-endpoints global: storage: url: <STORAGE_URL> bucket: <BUCKET> platform-api: global: imageRegistry: <IMAGE_REGISTRY> api: name: licensing image: repository: platform-api storage: url: <STORAGE_URL> bucket: <BUCKET> messaging: url: <NATS_URL> subscriptions: "hub.integration,hub.integration.licensing" subscriptionsUrl: "http://licensing-adapter/messaging/receive"

These points apply to the values above:

  • database.init.defaultRestore is required at the first installation. vizor_licensingVsab_resources.zip is the product bundle.
  • Create the mail Secret <LICENSING_MAIL_SECRET> in <INTERNAL_NAMESPACE> before helm upgrade. The chart reads it at render time and leaves out the mail login if the Secret is missing.
  • Set iam.internalApiClientId and iam.externalApiClientId explicitly. Their chart default is built from moduleName and does not render as a valid client ID.
  • Set alias: "" on supervision, portal, vasInt and vasExt.
  • rconnect.enabled stays false. When it is enabled, the chart’s schema requires rconnect.namespace, rconnect.internalBaseUrl and rconnect.externalBaseUrl.
  • global.customCerts.certs takes a list of certificates, each with a name and its base64-encoded data, when the ingress certificates are signed by a CA that is not publicly trusted.
  • The external license, the TDE material and the storage logins are values only; see Values without a Secret option. config.vasInt.license keeps the chart default. Environment Parameters defines the placeholders.

IAM settings of the API services

Set these keys so that the Licensing APIs accept tokens from both IAM instances.

  • The issuers and realms that vasInt accepts tokens from are set inside the XML of config.vasInt.api.
  • vasExt has its own config.vasExt.api, which keeps the chart default, including its signing key, until it is overridden the same way.
  • A value for either key replaces the whole XML, so start from the chart default, as printed by helm show values <LICENSING_CHART> --version <LICENSING_VERSION>.

Add these keys inside <apiSettings>:

<add key="System.Platform.ApplicationId" value="licensing"/> <add key="System.Platform.Iam.Internal.Issuer" value="<INTERNAL_ISSUER>"/> <add key="System.Platform.Iam.External.Issuer" value="<EXTERNAL_ISSUER>"/> <add key="System.Platform.Iam.Internal.Realm" value="<INTERNAL_REALM>"/> <add key="System.Platform.Iam.External.Realm" value="<EXTERNAL_REALM>"/> <add key="System.Platform.Iam.Internal.Audience" value=""/> <add key="System.Platform.Iam.External.Audience" value=""/>
Warning

Token signing key

The same XML holds System.Auth.Jwt.SymmetricKey. Override both config.vasInt.api and config.vasExt.api with a signing key generated for the installation, <LICENSING_JWT_SIGNING_KEY>, and keep it secret. Without an override, config.vasExt.api keeps the chart’s default key. A values file that contains either XML needs the same protection as a Secret. Do not copy the chart’s default key into the values.

Installation

Apply the registration ConfigMap, then install the release:

kubectl -n <INTERNAL_NAMESPACE> apply -f licensing-registration-endpoints.yaml helm upgrade -i <LICENSING_RELEASE> <LICENSING_CHART> \ --version <LICENSING_VERSION> \ -n <INTERNAL_NAMESPACE> \ -f <LICENSING_RELEASE>-values.yaml \ --wait --timeout 20m --force-conflicts

--force-conflicts applies to Helm versions that apply resources server-side. It lets the upgrade take over fields that were changed outside Helm.

Registration

The chart registers Licensing with both IAM instances when the release is installed.

After the installation, check in both IAM instances:

ItemValue
Application IDlicensing (iam.applicationId)
Keycloak clientsvizor-licensing-client (internal) and vizor-licensing-portal-client (external)
Platform API instancelicensing, subscribed to hub.integration and hub.integration.licensing. The chart sets this name.

Licensing names its services after moduleName, not after the release.

  • The messages of its Platform API go to licensing-adapter.
  • IAM reads its roles from licensing-supervision-vas:8080.
  • One Licensing installation therefore runs per namespace.

With iam.enabled: true, Licensing registers licensing with both IAM instances when it is installed, with the endpoints of licensing-registration-endpoints.

  • IAM reads the internal roles from /v2/users/roles/internal and the external roles from /v2/users/roles/external, at http://licensing-supervision-vas.<INTERNAL_NAMESPACE>.svc.cluster.local:8080.
  • That address resolves from <EXTERNAL_NAMESPACE> as well; see Traffic between the two namespaces.
  • The role IDs come from the Licensing database content, so they differ between installations. Permissions refer to them as <LICENSING_ROLE_ID>.

Hosts and certificates

Publish each host to the portal users or keep it on the internal network, as listed below. Environment Parameters names the other hosts.

  • <LICENSING_PORTAL_HOST> is published to the portal users.
  • The supervision application (<LICENSING_SUPERVISION_HOST>) and the database manager (<LICENSING_DB_MANAGER_HOST>) are reached from the internal network only.

Initialization

The chart does not deploy the client content or import the system settings. Both are manual steps after a new installation and are optional at an upgrade.

  • Upload the content through the Database Manager UI, a sidecar in the database pod that database.backup.enabled turns on, then import the installation-specific system settings.
  • Settings that come from values, such as mail, storage and the portal URLs, are written to the database when the adapter starts, and a change made only through the import is overwritten at the next restart.
  • Then grant users their Licensing roles through IAM permissions; see Users, Permissions and Seed Content.