Case study 21 / 25CI/CD DevOps
Single-source runtime configuration for air-gapped installations
A setting on an offline server now changes with an edit and a restart instead of a rebuild, with 25 baked-in values down to 0.
My roleDesigned it and led a team of up to 3: set its standards, mentored it, agreed the roadmap with operations and the client, presented to leadership.
Stack
- Next.js
- TypeScript
- Node.js
- PowerShell
- Windows batch
- nginx
- CesiumJS
01 · How it works
- TodaytoChanged in this work
- Data flow
What it does
The monitoring platform runs on-premises: each customer has an isolated server with no internet access, running the API, the web client, the 3D map service and two databases.
Read more
I made one set of files the single source of every setting, each value defined once and read at startup. A build guard now prevents values, and data, from being baked into the code or the package again.
7 connections· select a part to trace it
- Per-install config files to Key table: read once at startup
- Key table to API: values; names missing keys
- Per-install config files to Runtime config script: browser values at startup
- Runtime config script to Web client: loads before the app
- Key table to Build guard: lists the allowed keys
- Build guard to Release package: fails on any baked value
- Release package to Per-install config files: ships a template, no values
02Results
- R01Lower is better
Values baked into the build
Before 25, after 0, eliminated. Lower is better.BeforeAfter - R02Lower is better
Port numbers hard-coded in deployment scripts
Before 58, after 1, 58× lower. Lower is better.BeforeAfter - R03Lower is better
Install and maintenance tools failing
Before 4, after 0, eliminated. Lower is better.BeforeAfter
What it achieved
- Changing a setting on a customer's offline server: a rebuild for 25 baked-in values → edit the file and restart, for every value
- Hidden configuration: 27 code defaults, 21 unread and 41 missing template keys → 0
- Deploying to a server: the whole folder with development values → a clean copy, settings backed up first
Read more
- Field data in packages: 3.2 MB of real readings → none, enforced on the finished package
- Network isolation: 6 calls to a hosted map service with no token set → 0
03Decisions and trade-offs
- Constraint
With the token empty, the map library fell back to its own default and called a hosted service.
DecisionTreat an empty token as off: no hosted map at all.
What it costA server without a token gets no hosted map layer.
- Constraint
Deployments copied development settings over the server's own.
DecisionDeploy a clean copy and back up the settings first, never restoring them silently.
What it costRestoring a backup is a deliberate step, since it could bring back an outdated configuration.
- Constraint
Templates and code disagreed about which keys existed.
DecisionWarn, rather than block, when a missing key has a safe default.
What it costA server can start on a default until someone adds the key.
The challenge
Every installation is offline and customer-owned, so every setting must be correct on the server itself. An audit of where each value originated showed the configuration files were not authoritative: browser values were baked in at build time, the API ran silently on defaults written in code, some of them real customer values, and templates and code disagreed about which keys existed.
Read more
Deployments copied development settings over the server's own, every package shipped real field readings, and even with the map token removed, the application still called a hosted map service.
What I learned
An empty setting is not the same as off, and a configuration file is only authoritative if nothing else can override it. On an offline, customer-owned server, every value must be right on the machine itself.
Read more
Guard what ships, not only the source: the build's file tracer copied every JSON file the code might read, test data included, so the check runs on the finished package.
Stack
- Next.js
- TypeScript
- Node.js
- PowerShell
- Windows batch
- nginx
- CesiumJS
Skills
- Configuration management
- Build and release engineering
- On-premises deployment
- Security hygiene
- Code auditing

