License server

Configuration

Every setting the license server's Helm chart takes, and what it does by default.

How to set a value

Keep your settings in a values file, and pass it to every helm upgrade, so the release always has all of them. The defaults below are what you get with nothing set, and the pages on installing, connecting and backing up the license server say which ones each task needs.

Set a value
helm upgrade license-manager \    oci://<registry>/<path>/license-manager \    -n tenon-licensing --version <chart-version> \    -f tenon-licensing-values.yamlhelm -n tenon-licensing get values license-manager

Images

The chart runs three images: the seat service and the dashboard, both published by Tangram at the chart’s own version, and Valkey, the seat store. The activity store and the key-generation job run the seat service’s image, so there’s nothing extra to mirror for them.

global.imageRegistry
The registry host for every image the chart runs, in place of each image’s own. Set this to pull from a mirror. Empty by default, so each image’s registry applies.
global.imagePullSecrets
The names of the pull secrets every pod uses, as a list. The seat service and dashboard images are in a private registry, so one of these is needed unless your mirror is open. Empty by default.
licensed.image.registry, dashboard.image.registry
The registry each image comes from. Both default to the private registry Tangram publishes to.
licensed.image.repository, dashboard.image.repository
The path to each image under that registry. helm show values prints both. Mirror them under the paths they already have, and global.imageRegistry alone is enough.
licensed.image.tag, dashboard.image.tag
The version of each image. Both default to the chart’s version, which is the pair the chart was tested with. Setting them by hand keeps the old images running after an upgrade.
licensed.image.pullPolicy, dashboard.image.pullPolicy
When to pull the image again. IfNotPresent.

Registry credentials

A login to an AWS registry lasts 12 hours, so a pull secret made by hand stops working within the day. For a registry like that, the chart can keep one current: it runs a job on a schedule that fetches a login and writes it into a pull secret you name in global.imagePullSecrets. Leave this off for a registry whose credentials last, and for your own mirror.

ecrPullSecret.enabled
Run the job. false.
ecrPullSecret.secretName
The pull secret the job writes. tangram-ecr-registry. Name the same value in global.imagePullSecrets.
ecrPullSecret.awsAccount
The AWS account the registry belongs to, as a quoted number. Needed unless you set registryHost.
ecrPullSecret.awsRegion
The region the registry is in. us-east-1.
ecrPullSecret.registryHost
The registry’s full host name, when it isn’t the one the chart builds from the account and region. Empty by default.
ecrPullSecret.schedule
How often the job runs, as a cron schedule. 0 */10 * * *, every 10 hours, which leaves two hours in hand.
ecrPullSecret.existingSecret
A Secret of yours holding AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY, instead of the two settings below. Empty by default.
ecrPullSecret.accessKeyId, ecrPullSecret.secretAccessKey
The credentials for the registry, when they aren’t in a Secret of yours. Both empty.
ecrPullSecret.awsCliImage, ecrPullSecret.kubectlImage
The two images the job runs, each with its own registry, repository, tag and pullPolicy. They default to the AWS CLI and kubectl from Docker Hub, pulled only when they aren’t already on the node. Mirror these as well in a cluster that can’t reach Docker Hub.
ecrPullSecret.imagePullSecrets
Pull secrets for those two images, when your mirror of them needs different credentials from the registry the job fetches a login for. Empty by default.

The job writes the pull secret on its first run, not at install. Run it once yourself to have the secret straight away, as Keep an AWS registry’s credentials current shows.

The seat service

The seat service hands out seats, and is the only part of the license server that Tenon talks to. It keeps nothing itself, so more copies of it cost nothing but their requests.

licensed.replicaCount
How many copies run. 2, so one answers while the other restarts.
licensed.leaseTTL
How long a floating seat lasts without being renewed, after which it frees itself. 4h.
licensed.nodeLockTTL
How long a node-locked seat lasts. 2160h, 90 days.
licensed.service.type
The Service the chart creates for it: ClusterIP. Machines outside the cluster reach it through a route you provide, as Connect developers and CI describes.
licensed.service.port
The port it answers on, inside the cluster, without TLS. 8080.
licensed.service.nodePort
The node port, when type is NodePort. Empty, so Kubernetes picks one.
licensed.resources
Its requests and limits: 25 millicores and 32 MiB requested, 128 MiB of memory at most, and no CPU limit.
licensed.podDisruptionBudget.enabled, licensed.podDisruptionBudget.minAvailable
Keep at least one copy running while nodes are drained. true and 1.
licensed.autoscaling.enabled
Scale the copies with CPU use. false, with minReplicas 2, maxReplicas 6 and targetCPUUtilizationPercentage 80 when you turn it on.
licensed.fips
Run its cryptography in FIPS 140-3 mode. false. It takes effect only on an image built for it, so ask Tangram before you turn it on.
licensed.extraEnv
Extra environment variables, as a list of name and value. Empty.
licensed.nodeSelector, licensed.tolerations, licensed.affinity
Where its pods may run. All empty, so Kubernetes places them.

The admin token

One token reads everyone’s activity and shows holders’ names, and the activity store requires it on every request. The chart generates it on the first install, keeps it across upgrades, and leaves it behind on an uninstall. Back up and restore activity covers reading and replacing it.

adminToken.existingSecret
A Secret of yours holding the token under the key token, instead of the one the chart generates. Empty by default.

Activity

The activity store keeps the record of what each seat was used for, in its own database, and the seat service answers reads by asking it. Writes never wait for it: when it’s down, the seat service holds new records in the seat store and the activity store drains them when it returns.

activity.enabled
Keep activity at all. true. With false, no activity store runs, the license server accepts what machines report and discards it, so no command ever fails, and reads answer 404.
activity.retentionDays
How many days of history to keep. 365. Also how long a seat holder can still read their own history after their seat has gone.
activity.lateAcceptDays
How long after a seat ends the license server still accepts activity the machine queued while offline. 7.
activity.maxActionsPerLeasePerHour
How much one seat may report in a clock hour, past which the rest is refused. 1000.
activity.bufferMaxLen
How many records the seat service holds for a stopped activity store before it drops the oldest. 500000.
activity.logToStdout
Write every record to the seat service’s log as well, for your own logging system to collect. true.
activity.persistence.size, activity.persistence.storageClass, activity.persistence.accessMode
The volume the database lives on: 10Gi, your cluster’s default StorageClass, and ReadWriteOnce.
activity.backup.enabled, activity.backup.interval, activity.backup.keep
The snapshots it takes of the database: true, every 24h, keeping the newest 14.
activity.backup.existingClaim
A volume of yours for the snapshots, such as one on other storage. Empty, so the chart creates one, sized by activity.backup.size (10Gi) on activity.backup.storageClass.
activity.activityd.resources
The activity store’s requests and limits: 25 millicores and 64 MiB requested, 256 MiB of memory at most.
activity.activityd.extraEnv, activity.activityd.nodeSelector, activity.activityd.tolerations, activity.activityd.affinity
Extra environment variables, and where its pod may run. All empty.

The dashboard

The dashboard shows which seats are in use and what they’ve been used for. It’s optional: nothing in Tenon needs it, and you can reach it with a port-forward rather than publish it.

dashboard.enabled
Run the dashboard. true.
dashboard.replicaCount
How many copies run. 1.
dashboard.service.type, dashboard.service.port
ClusterIP on 8080.
dashboard.ingress.enabled
Create an Ingress for it. false. The chart installs no Ingress controller and issues no certificate: both are yours.
dashboard.ingress.className
Which Ingress controller takes it, such as nginx. Empty, so your cluster’s default does.
dashboard.ingress.annotations
Annotations for the Ingress, such as the one that has cert-manager fill in its certificate. Empty.
dashboard.ingress.hosts
The host names and paths routed to it, as a list of host and paths.
dashboard.ingress.tls
The certificates the route uses, as a list of secretName and hosts. Empty, which leaves the route on plain HTTP.
dashboard.auth.enabled
Ask for a sign-in before anything changes: releasing seats, and restarting the license server. true. Looking needs no sign-in either way, and holders’ names appear only to a signed-in admin.
dashboard.auth.adminUser
The admin’s name. admin.
dashboard.auth.existingSecret
A Secret of yours holding admin-user and admin-password, instead of the password the chart generates. Empty by default.
dashboard.resources
Its requests and limits: 25 millicores and 32 MiB requested, 128 MiB of memory at most.
dashboard.nodeSelector, dashboard.tolerations, dashboard.affinity
Where its pods may run. All empty.

Published, the dashboard terminates no TLS and asks for nothing to look. Put the certificate, and whatever access control your network needs, on the route in.

The seat store

Seat state lives in Valkey, which the chart installs as a single copy with a volume, so seats survive its restart. A seat that’s lost costs a machine one checkout, so this needs no backup.

valkey.enabled
Install the bundled seat store. true. With false, give valkey.externalAddr instead.
valkey.externalAddr
The host and port of a Redis-compatible store of your own, such as a managed one. Empty.
valkey.existingPasswordSecret, valkey.existingPasswordSecretKey
A Secret holding the store’s password, which turns on authentication. Empty, and password.
valkey.image.registry, valkey.image.repository, valkey.image.tag, valkey.image.pullPolicy
The image: valkey/valkey:8-alpine from docker.io, pulled when it isn’t on the node. The tag moves as Valkey releases, so a mirror should hold the build you’ve tested.
valkey.persistence.enabled, valkey.persistence.size, valkey.persistence.storageClass, valkey.persistence.accessMode
Its volume: true, 1Gi, your cluster’s default StorageClass, and ReadWriteOnce.
valkey.fsGroup
The group its volume is owned by, which has to match the user in its image. 999.
valkey.resources
Its requests and limits: 50 millicores and 64 MiB requested, 256 MiB of memory at most.

Keys and your license

The chart generates the license server’s signing key inside your cluster, before anything starts, and publishes its public half for you to send to Tangram. Applying what Tangram sends back starts the license server, as Install the license server describes.

keygen.enabled
Generate the key. true. It never replaces a key that’s already there, so an upgrade, or a reinstall over a restored key, keeps it.
keygen.delegateSecret
The Secret the private half goes into. licensed-delegate. It never leaves the cluster.
keygen.delegatePubConfigMap
The ConfigMap the public half goes into, for you to send to Tangram. licensed-delegate-pub.
keygen.backoffLimit
How many times the job retries. 3.
trust.secretName
The Secret holding your license, delegation.json, and your trust root, root-pub.pem. licensed-trust. You apply it yourself, after Tangram signs your key.
trust.waitForTrust
Hold the seat service in ContainerCreating until that Secret is there. true, which is why a first install must not use --wait. With false, the seat service restarts in a loop instead.
trust.delegation, trust.rootPublicKey
Your license and trust root inline, which has the chart create the Secret for you. Both empty. This puts both files into the release’s own history, so it suits a reinstall where you already have them, rather than a first install, where the license doesn’t exist yet.

Network policies

The chart installs network policies that deny everything they don’t allow: machines reach the seat service, the seat service reaches the activity store and the seat store, and nothing else gets in. Whoever routes traffic into the cluster has to be allowed through.

networkPolicy.enabled
Install the policies. true. With false, or under a service mesh that enforces its own, write the same rules where your cluster enforces them.
networkPolicy.clientNamespaces
The namespaces whose pods may reach the seat service, as a list of names. Empty, which admits only its own namespace, so add your Ingress controller’s.
networkPolicy.clientCIDRs
Address ranges that may reach the seat service, as a list, for traffic the cluster sees arriving from outside, such as through a load balancer. Empty.
networkPolicy.dashboardFromNamespaces
The namespaces that may reach the dashboard, as a list of names. Empty, so publishing the dashboard means naming your Ingress controller’s namespace here, or every request comes back a 502.

Names, labels and permissions

The chart names its resources after the release and its own name, license-manager, and runs everything as a user other than root, which suits a cluster that enforces Kubernetes’s restricted Pod Security Standard.

nameOverride, fullnameOverride
Change what the chart’s resources are called: the chart’s half of the name, or the whole prefix. Both empty.
commonLabels, commonAnnotations
Labels and annotations added to every resource the chart creates. Both empty.
podSecurityContext.enabled
Set the security context on every pod. true, which runs them as user and group 65532, as a non-root user, with fsGroup 65532 and the RuntimeDefault seccomp profile. Each of those is its own setting under podSecurityContext, and false leaves the context off altogether. On OpenShift, clear runAsUser and fsGroup and let its own constraints assign them.
containerSecurityContext.enabled
Set the security context on every container. true, which drops every Linux capability, refuses privilege escalation, mounts the root filesystem read-only, and runs as user and group 65532 with the RuntimeDefault seccomp profile. Each is its own setting under containerSecurityContext.
serviceAccount.create, serviceAccount.annotations
Create a service account for each part, and annotate them, as for an AWS role. true and empty.
rbac.create
Create the roles those service accounts need, each one narrow: the key-generation job may create its own Secret and ConfigMap, and the dashboard may restart the seat service. true.