Running a Kubernetes IDE on an air-gapped machine with a machine-bound license
Some of the most important clusters are the ones nobody can reach from the internet: a defence network, a factory floor, a bank’s isolated zone, a ship. The people who run them still want a proper desktop tool. The problem is that most subscription software proves it is licensed by talking to a server, and a machine with no route out cannot do that.
What people do today
The usual answers each give something up. Perpetual keys that can be copied to any machine work offline, and also work on every machine they get copied to. Self-hosted license servers solve it for a large organisation, but that is infrastructure to run inside the isolated network. Or the tool simply is not used, and the team falls back to kubectl and YAML by hand.
There is a middle design that is old and plain: a license that is a signed document. The server signs a statement saying "this machine may run this product until this date". The app checks the signature locally against a public key it already ships with. No network is needed to verify, and the signature is what makes it impossible to edit.
How the flow works
Both desktop apps, Kubexer for Kubernetes and Kubexer Terminal, use the same flow. You need a paid subscription for the product, either your own or a seat on a team plan. A trial works too, and the lease ends when the trial does.
- On the offline machine, choose Use an offline license on the sign-in screen (or Settings → License → Set up an offline license). The app shows a request code beginning with
KXR1-. It is built from a hash of the machine and the product plus a random value, and it contains no personal data. You can copy it, save it as a file, or scan it as a QR code from a phone. - On any device with internet, sign in to the Kubexer website, open Offline License under your account, paste the code and give the machine a label such as "SOC laptop". The site checks your entitlement and issues a license.
- Download the
.kxlicfile (or copy the text, which starts withKXL1.), carry it across on a USB stick, and in the app either drop the file in or paste the text.
That is all. From then on the app starts without sign-in.
What the app checks before it accepts a license
Installation runs a fixed list of checks, and each failure has its own message rather than a generic "invalid license":
- The text is a well-formed license, signed with a key the app knows. The signature is ECDSA with a P-256 key over the exact payload, so a license edited by even one character is rejected.
- It is for this product. A Terminal license will not install into the Kubernetes IDE.
- It is for this machine. The machine identity comes from the operating system’s own machine ID (the platform UUID on macOS,
MachineGuidon Windows,/etc/machine-idon Linux) mixed with the product name, so a copied license file does not work elsewhere, and the two apps do not share an identifier. - It matches the request code this machine currently has open.
- It has not been returned, has not expired, and the clock is not obviously wrong.
That last check is worth a word. Anything date-based can be defeated by setting the clock back, so the app remembers the latest time it has seen. If the system clock is set earlier than that by more than a day, the app reports a clock problem and asks you to correct the date rather than silently giving you more time.
How long a license lasts
A lease never outlives the access you pay for. It expires at the earlier of your paid-through date and a maximum lease length, then adds a short grace period. With the server’s default settings that maximum is 186 days (about six months) and the grace period is seven days. In the app you see the states as they happen: active, expiring (inside the last 14 days), grace, then expired. During grace the app keeps working and warns you. Your local data is kept in every state.
To renew, create a new request code on the same machine after your subscription has renewed, redeem it on the website and install the new license over the old one. A renewal replaces the active lease; it is not a transfer.
Moving to another machine
Each person gets one active lease per product, and it counts as one of your devices. To move it, use Return license in the offline app. It removes the license, remembers that this lease was returned so it can never be installed again on that machine, and shows a return code beginning with KXT1-. Enter that code on the website and the slot is free for a new request code from another machine.
If the old machine is gone and you cannot get a return code, there is a forced move on the website. It is rate-limited (by default once every 90 days), and a moved lease cannot be extended, so moving is never a way to gain time. On team plans, an owner can switch offline activations off for seats, and a seat whose lease is still outstanding stays occupied until that lease expires or is returned.
What offline mode turns off
With a license installed, the machine stops contacting Kubexer entirely. Sign-in, token refresh, updates, notifications, support tickets, and cloud sync of things like kubeconfigs, cluster alerts or Terminal vaults and snippets are all switched off. Calls to the backend return a plain "not available while this machine uses an offline license" instead of trying the network. In Kubexer Terminal, vault and snippet changes stay local and stay queued. Signing out is replaced by Return, since just dropping the license would leave the slot occupied.
Your plan is whatever the signed lease says, fixed until you renew. Pro features that the lease includes work offline; features that depend on Kubexer’s servers do not.
What had to change in the Kubernetes IDE
A license that works offline is not much use if the app tries to download things the moment you click. For the Kubernetes IDE there were a few of those, and they are now handled:
- Helm and Trivy are bundled. The installer carries helm (3 and 4) and Trivy, fetched and checksum-verified when the app is built. The app prefers the bundled copies and never downloads them in offline mode. The installer is larger as a result.
- Trivy’s vulnerability database. Scanning needs a database, and an isolated machine cannot fetch one. You can point Trivy at an internal mirror (for both the main and Java databases), or use skip-update and offline-scan settings. In offline-license mode these are forced on when no mirror is set, and a missing database produces a clear message instead of a timeout.
- The node shell image. Node shells run from a container image, which was previously hardcoded to a public registry. The image and its pull secret are now configurable in Settings → Node Shell, or with the
KUBEXER_NODE_SHELL_IMAGEenvironment variable, so it can come from your internal registry. - Local clusters. Minikube-style local clusters are hidden and refused in offline mode, since creating one means pulling images from the internet.
Limits to plan for
- You still bring content across the gap. The app no longer needs the internet, but your cluster needs its images, and Trivy needs a vulnerability database you mirror or load yourself. Kubexer does not move those for you.
- The license is bound to the machine identity. If that identity changes, for example after a reinstall that regenerates the machine ID, the license no longer matches and you need a new request code.
- It needs one online step per lease. Someone with a Kubexer account has to redeem the request code on a connected device, at least every lease period.
- There is no remote revocation or self-hosted server. A lease is valid until it expires or is returned. That is the trade for working without a connection.
- Desktop only. Mobile apps cannot activate an offline license.
In short
The offline license is a signed, machine-bound lease with a clear lifetime, installed from a file you carry across. The Kubernetes IDE bundles what it would otherwise download and makes the registry and scanner settings configurable so an isolated team can use it. Kubexer Terminal uses the same license flow. A step-by-step help article for the flow is in the Kubexer knowledge base.