Whitepaper

Kalium: a private app store for your distributed devices

Kalium is a private app store for the appliances you have out in the field. You stock it with your own software, content packs and licenses. You decide what each site gets and for how long. Each appliance collects what it is due, keeps itself up to date, and tells you what it has installed.

If you have used the app store on a phone, you already know most of how it works:

On a phone With Kalium
The app store The Kalium server, run for you alone, with a web console for your team
Apps, and purchases inside them Packages: an application release, a content pack, a license, or a block of site settings
Your phone The appliance at each site
The manufacturer registering each phone before it leaves the factory Each appliance is registered with the store, once, before it is shipped
"Purchased" list The packages assigned to that appliance, each with an end date
Checking for updates The appliance checks in by itself, about every 15 minutes
Apps keep working in airplane mode Sites keep working when the internet is down

It differs from a public app store in four ways, all deliberate:

  • It is private. Only your appliances can see it, and each one sees only its own list.
  • The franchisor is in charge. What a site receives, and which version it runs, is decided centrally, in the way a company manages the phones it issues to staff.
  • Nothing can be passed on. Everything an appliance downloads is locked to that one appliance.
  • It is built into your own application. How people at a site see and use the store is designed as part of your application, while Kalium underneath stays the same.

This page uses a franchise network as the example: a franchisor, a number of franchise sites, one appliance at each site, and several screens or tablets at each site that connect to that appliance through a web browser.

The big picture

flowchart TB
    publisher["Publisher<br/>builds and signs software<br/>and content packages"]
    admin["Franchisor<br/>web console"]
    server["Kalium server<br/>your private store"]

    subgraph siteA["Franchise A"]
        applianceA["Appliance"]
        devicesA["Screens and tablets<br/>web browsers"]
    end

    subgraph siteB["Franchise B"]
        applianceB["Appliance"]
        devicesB["Screens and tablets<br/>web browsers"]
    end

    publisher -- "stocks the store<br/>with new releases" --> server
    admin -- "decides who gets what,<br/>and until when" --> server
    applianceA -- "checks in, downloads,<br/>reports back" --> server
    applianceB -- "checks in, downloads,<br/>reports back" --> server
    devicesA --- applianceA
    devicesB --- applianceB
  • The publisher stocks the store. Every release of the software and every content pack arrives as a signed package.
  • The franchisor runs the store through a web console: which site is entitled to which packages, at which version, and until what date.
  • The appliance at each site runs the application and holds its own library of packages, kept in step with the store.
  • The client devices at each site are plain web browsers pointed at the appliance. They hold no software and no content of their own, and they need only the site's local network.

How a site stays up to date

The store never pushes anything to a site. As a phone does, each appliance asks the store what it should have, compares the answer with what it already holds, and downloads the difference.

sequenceDiagram
    participant A as Appliance
    participant S as Kalium server
    loop Every 15 minutes
        A->>S: Here is who I am. What should I have?
        S-->>A: Your current list: each package, its version and expiry
        A->>A: Compare the list with my library
        opt Something is new or changed
            A->>S: Download only what differs
            S-->>A: Packages locked to this appliance
            A->>A: Verify, unlock and add to my library
        end
        A->>S: Report what I now have
    end
  • The store holds the list. For each appliance it keeps the current set of packages that appliance is entitled to. When the franchisor assigns, updates, renews or removes something, that list changes.
  • The appliance does the comparing. At each check-in it downloads only what differs from its library. When nothing has changed, the check-in takes a moment and transfers nothing.
  • The appliance reports back. It tells the store what it now holds, which is how the console can show that a site has received exactly what it was assigned.

Because the appliance asks and the store only answers, a site that has been switched off or disconnected catches up at its next check-in, however much has changed in between.

What it does for you

The right content at the right site

The franchisor assigns packages to a single appliance or to a group of appliances, each assignment with its own end date. A franchise that has taken the premium content pack receives it; the one next door does not. A license can also carry terms such as a tier or a number of seats, so the same application can behave differently at each site without a separate build.

Keeps working when the internet does not

Apps on a phone still open in airplane mode, and a site works the same way. Once a package has been delivered, the software, content and license are all held on the appliance, and the appliance serves the screens and tablets over the site's own local network. If the connection drops, for an hour or a week, the site carries on exactly as before. Nothing is streamed from the cloud, and no license is checked online while the site is in use.

The connection is needed only to receive something new: a content pack, a software update, changed settings or a renewed license. An appliance that has been offline catches up by itself when the connection returns, and a download that was cut off resumes where it stopped. Meanwhile the console shows the franchisor that the appliance is offline and since when.

The one thing to plan for is renewal. A license that reaches its end date while the site is offline stops working until the appliance can reconnect and collect the renewed one, so renew ahead of the date.

Updates on your schedule, with a way back

A phone updates its apps whenever a new version appears. Kalium does not: a site stays on its version until the franchisor moves it. A release can be tried at one site before the rest, and a site can be held at, or moved back to, an earlier version.

On the appliance, an update is prepared in the background and installed at a moment the application allows, so it never interrupts a session in progress. The appliance then checks that the new version is healthy. If it is not, or if the power fails halfway, the appliance returns to the version it was running before.

flowchart LR
    prepare["Download and verify<br/>in the background"]
    wait["Wait for a<br/>safe moment"]
    install["Install"]
    check{"Healthy?"}
    keep["Keep the new version"]
    rollback["Return to the<br/>previous version"]

    prepare --> wait --> install --> check
    check -- "yes" --> keep
    check -- "no, or interrupted" --> rollback

Licenses that end when they should

Every assignment has an end date, or none. The appliance enforces the date itself, even without a connection. Renewing is a change of date in the store; the appliance picks up the new terms at its next check-in.

One view of the whole estate

The console shows, for every appliance:

  • whether it is online, and when it last checked in
  • which version of each package it is assigned and which it has actually installed, confirmed against the exact file it was sent
  • any package it refused, with the reason
  • warnings for unusual activity, such as failed identity checks or an appliance appearing from an unexpected network address

Members of your team can be given view-only or editing access, and every change is recorded with the name of the person who made it.

Appliances registered before they ship

A phone is registered by its manufacturer before it leaves the factory, and the store recognizes that exact phone from then on. Kalium appliances are handled the same way. Each one is registered with the store while it is still on the supplier's bench, before it is packed.

The appliance introduces itself to the store and waits. It displays a six-word fingerprint, and the same six words appear in the console. A technician with the appliance in front of them confirms that the two match and approves it. From then on the store deals only with that exact appliance: the identity it registered is tied to its security chip and its encrypted disk, and it cannot be copied to another machine.

Registering at the supplier, not on site, closes the gap in between. An appliance that is swapped or altered on its way to a site does not match the one that was registered, so the store gives it nothing. Nobody at a site can add an appliance of their own, and a registered appliance can be revoked at any time in the console.

Settings managed centrally

Site settings travel the same way as content: the franchisor edits them in the store and assigns them to one appliance or many. They arrive encrypted and signed like any other package, and the console shows which sites have taken the change.

Nothing to maintain on the client devices

Because the screens and tablets are web browsers that load everything from the appliance, updating the appliance updates every device at the site in one step. A replaced tablet needs no installation, and no licensed content is stored on it.

Optional web store integration

By default, the franchisor makes every assignment, and Kalium does not include a shop of its own. That is deliberate: every business has its own payment processor, prices, currencies, tax rules and local regulations, so the selling is left to a web shop of your choosing, and Kalium is designed to integrate with it. Kalium never handles prices or card details. Its part is to tell the shop what one appliance has and what it can buy or extend, and then to deliver what was paid for.

In practice, the appliance would show a purchase link or QR code, so the person standing at it can pass the link to whoever holds the budget. The link leads to your shop, already opened for that one appliance, where a package can be bought or extended, as a one-off term or as a subscription that renews. Your payment provider takes the payment on its own checkout page. Once it is complete, the new package or the later end date reaches the appliance at its next check-in, with nothing for the franchisor to do. The franchisor can still send a purchase link itself, for example with a renewal reminder, and can still assign packages directly for customers who pay by invoice.

Works with the rest of your software

Kalium is not limited to one application. Its updater installs software delivered in the standard package format for Linux systems, so anything supplied that way can be distributed, licensed, configured and updated through the same store. Other GameshowPro products, including Suede, TriggerGate and Soundling, are delivered in that format, and so sit alongside your own application on the appliance, each on the version the franchisor chose.

How the content is protected

A purchase from a phone's app store is tied to an account. A Kalium package is tied to one physical appliance, and no single lock does the job. Each layer below stops a different way of getting at the content, and someone would have to defeat several of them at once. The aim is to make copying cost far more than it is worth.

Layer What it stops How
1. Encrypted disk Removing the disk and reading it in another computer The whole disk is encrypted, and its key is sealed inside the appliance's security chip (a TPM). The disk unlocks only in its own appliance, and only while that appliance's secure startup settings are unchanged
2. Sealed appliance Reading the content from the appliance while it runs Site staff have no login, password or console. The supplier alone holds a recovery key for servicing. The only part of the appliance that people and the network can reach is the application, which runs with restricted rights
3. Packages locked to one appliance Copying a package, intercepting a download, or moving content to another appliance Every package is encrypted for one appliance. Unlocking needs two keys together: one that never leaves that appliance's security chip, and one on its encrypted disk. Anywhere else the package is unreadable
4. Publisher's signature Altering a package, or making a counterfeit one Every package is signed by the publisher, and the appliance refuses anything whose signature does not match. The signing key is kept apart from the Kalium server, so even a compromised server cannot create a package an appliance would accept
5. Tamper-resistant clock Winding the clock back to extend a license The end date is checked against a clock inside the security chip that only moves forward
6. Registered appliances only A copied or imitation appliance collecting packages, or one swapped or altered in transit Each appliance is registered by a person at the supplier before it ships. It then proves its identity with both its chip and its disk at every check-in, and can be revoked. Unusual activity raises a warning in the console
7. Approved software only Installing other software on the appliance to get around the layers above The updater installs only software that the publisher signed and that is on the appliance's approved list. The operating system's ordinary update channels are switched off

The journey of one package, from the publisher to a site:

flowchart LR
    publish["Publisher signs<br/>a package"]
    assign["Franchisor assigns it<br/>to a site, with an end date"]
    lock["Store locks a copy<br/>to that one appliance"]
    deliver["Appliance downloads it"]
    unlock["Appliance checks the signature<br/>and unlocks it with its own chip"]
    report["Appliance reports<br/>what it installed"]

    publish --> assign --> lock --> deliver --> unlock --> report

Inside the appliance

The appliance is built so that the part people interact with has the least authority.

flowchart TB
    server["Kalium server"]
    devices["Screens and tablets<br/>web browsers"]

    subgraph appliance["Appliance"]
        app["Application<br/>serves the client devices,<br/>syncs with the store"]
        library[("Package library<br/>software, content,<br/>licenses, settings")]
        agent["Security agent<br/>proves identity,<br/>unlocks packages"]
        chip[("Security chip and<br/>encrypted disk")]
        updater["Updater<br/>the only part that installs"]
        list[("Approved list<br/>what may be installed")]
    end

    devices --> app
    app -- "compares its library with<br/>the store's list, downloads<br/>the differences" --> server
    app -- "serves from" --> library
    app -- "requests" --> agent
    agent --- chip
    agent -- "unlocked packages" --> library
    agent -- "requests" --> updater
    updater --- list
  • The application is the only part connected to the network. It keeps the package library in sync with the store and serves the client devices from it. It can ask for a package to be unlocked or an update to be installed, but it cannot do either itself.
  • The security agent holds the appliance's identity. It has no network connection of its own.
  • The updater installs only what is both signed by the publisher and named on an approved list that the application cannot change.

The appliance only makes outbound connections to the store, so a site needs ordinary internet access and no special firewall arrangements.

Why this approach

Benefit How Kalium delivers it
Familiar model It works like the app store everyone already uses, so there is little to explain to sites
Protects revenue Content and licenses work only on the appliance they were issued to, and only until the agreed date
Consistent estate Every site runs a version the franchisor chose, and the console confirms it
Low risk updates Staged rollout, health checks, and automatic return to the previous version
Low site effort Site staff install nothing; client devices are browsers
No dependence on the internet Everything is served from the appliance over the local network; an outage delays new deliveries but does not stop the site
Accountability Role-based access and a complete record of who changed what
Not tied to one product The store carries any packaged application, content or settings, including other GameshowPro products alongside your own
Fits your way of selling Kalium delivers what was bought and leaves payment, pricing and local rules to a shop of your choosing

Good to know

  • Revocation stops new deliveries. Packages an appliance already holds keep working until their own end date, because they are designed to work offline. Shorter license terms with regular renewal give tighter control.
  • Replacement hardware is a new appliance. A replaced appliance, or one whose security chip or disk has been replaced, has a new identity. It is registered again at the supplier and has its packages assigned again. This is the same property that prevents copying.
  • Kalium manages the appliance, not each client device. Which screens and tablets may connect to an appliance is the application's decision.
  • A web shop is a project, not a standard feature. Without one, the franchisor assigns and renews everything from the console.

Back to product