Terms are grouped by where they come from. Each section is searchable on its own, so searching for a term finds its definition.
#Project terms
#KIMS v2
The new KIMS Hospitals website and CMS, built to run on KIMS's own infrastructure (EKS, RDS, Keycloak, Jenkins, S3, CloudFront). The repository is kims-v2. It replaces an earlier platform (the "POC") that ran on other AWS services; nothing from that platform is deployed.
#ClinicSpots
The agency that built KIMS v2 and whose engineer does the on-site deployment. ClinicSpots staff who edit content need KIMS Keycloak accounts like anyone else.
#Production and UAT
Production is the live environment: deployed from the main branch, Jenkins folder kims-production, namespace kims, indexed by search engines. UAT (user acceptance testing) is an optional second, separate copy: branch uat, folder kims-uat, namespace kims-uat, kept out of search engines. See Environments.
#The one image
The single Docker image kims/kims-v2 that holds the CMS, the worker, the cron tasks, the migrations and the data bundle loader. A container's job is chosen by MODE. See architecture.
#MODE
The environment variable (or first argument) that tells the image what to run: cms, worker, cron <task>, migrate or data-bundle <command>. Read by deploy/entrypoint.sh.
#CMS
The content management system: the Next.js server application where KIMS's staff edit pages, doctors, specialties, media and so on. Runs as the kims-cms Deployment on port 3000.
#Worker
The kims-worker Deployment. It takes jobs from the jobs table and runs them: publishing, resizing images, translation, the reviews sync, starting site builds, alerts. Without a running worker, Publish only queues and nothing happens.
#Cron task
A Kubernetes CronJob running the image with MODE=cron <task>. It only adds a job to the queue (deduplicated) and exits; the worker does the work. Tasks: scheduled-publish.tick, translation.tick, site-build.reap, alerts, reviews.sync.
#Jobs table
The jobs table in PostgreSQL that is the background work queue. The CMS and cron runs add rows; worker pods claim them with a lock that a heartbeat extends. A job whose pod dies is taken over when its lock lapses.
#Migrations
Plain SQL files in db/migrations/, numbered (0001_foundation.sql to 0501_site_builds_jenkins_number.sql at hand-over). Applied in order by MODE=migrate; which ones ran is recorded in schema_migrations. A file is never edited after it has been applied.
#Migrate hook (kims-migrate)
The Kubernetes Job the Helm chart runs before every install and upgrade (a Helm pre-install,pre-upgrade hook). It applies pending migrations. If it fails, Helm stops and the old pods keep running.
#Publish version
A numbered, complete snapshot of the published content (publish_versions and published_files). Each publish creates version N+1. The handover content arrives as version 1. A site build is always of one publish version (PUBLISH_VERSION).
#Publish
The Admin action on the CMS Publishing screen that turns approved changes into a new publish version and starts a site build. Before the first publish in a new environment the Emergency image must be fixed.
#Site build
The process that turns one publish version into the static website and deploys it: scripts/site-build/run.mjs, run by the Jenkins job kims-site-build. Its stages: Export content, Media manifest, Reviews feed, Build locales, Quality gates, Bundle media, Sync website bucket, Invalidate CloudFront, Redirects. Each stage is recorded in the site_builds table, which the CMS Builds screen shows.
#Builds screen
The CMS screen that follows site builds from the site_builds table: queued, each stage, live or failed, with a link to the Jenkins run.
#Quality gates
Checks the site build runs before deploying anything (scripts/gates/run.mjs): the page count must not drop far below the last build (the page floor), every hospital logo the last build had must still render (the logo guard or chrome baseline), robots.txt must match KIMS_ENV, Lighthouse scores, and others. Any failure stops the build with nothing deployed.
#Lighthouse gate
The quality gate that runs Google Lighthouse on a few built pages with headless Chrome or Chromium. The Jenkins agent must have Chrome installed or the build fails. Locally, KIMS_LIGHTHOUSE=skip records it as skipped; never on Jenkins.
#Data bundle
The content and the media library, carried from one environment to another as files: tables/*.ndjson, assets/<key> and MANIFEST.json with a checksum for every file. Made by scripts/handover/data-bundle.mjs export, checked with check, loaded with load. The hand-over bundle holds 13,247 rows and 11,307 media files, about 530 MB. It does not carry people, jobs, build history or stored secrets.
#Handover zip
content-latest.zip (called KIMS-v2-handover-2026-11-24.zip until 2026-11-28). It unpacks into KIMS-v2-handover-2026-11-24/ with the data bundle, the code as a git bundle (kims-v2.bundle) and the original Word runbook.
#Git bundle
A single file holding a Git repository's history (git bundle create). You can clone from it with no network: git clone -b main kims-v2.bundle kims-v2. The handover's bundle holds main at commit 535cdc7.
#Load pod
deploy/handover/load-bundle-pod.yaml: a one-off pod running the image with MODE=data-bundle, using the chart's service account and database Secret, into which the data bundle is copied and loaded. Deleted afterwards.
#Bootstrap admin (KIMS_BOOTSTRAP_ADMINS)
Comma-separated emails that become CMS Admins on the first start, while the cms_users table is empty. Without it nobody can open the People screen on day one. Ignored once anyone is in the table, so it can stay set.
#People screen
The CMS screen where Admins add people by their KIMS email and give them CMS roles (editor, reviewer, Admin and so on). A person needs both a row here and cms-access in Keycloak.
#cms-access
The Keycloak client role on the CMS's client that lets a person sign in to the CMS at all. Configurable with KEYCLOAK_ACCESS_ROLE; the default is cms-access.
#SECRETS_KEY
32 random bytes, base64, in the Secret kims-app. It encrypts the Google translation key and reviews sign-in stored in the secrets table (AES-256-GCM). Never change it for the life of an environment: if it changes, the stored Google secrets become unreadable and must be entered again.
#SESSION_SECRET
At least 32 characters, in the Secret kims-app. Signs the CMS session cookie and encrypts the Keycloak refresh tokens stored in sessions. Changing it signs everybody out, nothing worse.
#KIMS_ENV and KIMS_ENVIRONMENT
The environment's name: production, uat, or local. KIMS_ENV is read by the site build (from the kims-site-env credential): the gates check robots.txt against it and only production can be indexed. KIMS_ENVIRONMENT is read by the CMS and worker (from the Helm values) for alerts and logs. Both are checked against the branch.
#SITE_NOINDEX
true keeps search engines away from the built site. UAT must have it; production must not (or the live site never appears in search).
#Emergency image
emergency_CoE.png, the hero image of the page en/centres-of-excellence/emergency-critical-care, which never reached the old platform's storage. Until it is uploaded in the Media library and chosen on that page (or another hero chosen), every publish is refused, because the publish check looks at the whole site.
#kims-build
The Jenkins agent label the KIMS v2 jobs run on. The agent needs Node.js 24, Docker with buildx, Helm 3, kubectl, git, Chrome or Chromium and plenty of disk.
#kims-site-env
A Secret file Jenkins credential in each environment's folder holding the site build's settings as NAME=value lines: KIMS_ENV, S3_REGION, the two buckets, SITE_URL, CLOUDFRONT_DISTRIBUTION_ID, and optionally SITE_NOINDEX, GTM_ID, KIMS_REDIRECTS_KVS_ARN. Copied from deploy/jenkins/site-env-production.example or site-env-uat.example. Carriage returns are dropped, so a file saved on Windows works.
#kims-helm-values
A Secret file Jenkins credential in each environment's folder holding that environment's Helm values file. It holds no secrets itself, but stays out of Git.
#windows-fixes
A branch of kims-v2 with seven commits that make the local rehearsal work on Windows (and one site build media-check fix). Not merged into main. Nothing KIMS runs needs it.
#deploy.mjs
The engineer's helper script in kims-deploy-info/scripts/, which runs most local and KIMS steps as one command each. See The deploy.mjs helper.
#AWS terms
#Region
An AWS geographic area. KIMS v2 goes in the EKS cluster's region: ap-south-2 (Hyderabad) recommended, or ap-south-1 (Mumbai). CloudFront certificates are always in us-east-1.
#IAM role
An AWS identity with permissions that a service or a pod can take on for a while, instead of using long-lived access keys. KIMS v2 uses two: the pods' role (assets bucket) and the Jenkins agent's role (website bucket, CloudFront, ECR).
#IRSA (IAM Roles for Service Accounts)
How a Kubernetes pod on EKS gets an IAM role: the service account carries the annotation eks.amazonaws.com/role-arn, and the role's trust policy trusts that service account through the cluster's OIDC provider. The chart's service account is kims; its role goes in serviceAccount.roleArn.
#OIDC provider (EKS)
The cluster's OpenID Connect identity provider, registered in IAM, that lets IRSA work. Each EKS cluster has one URL; it must be added in IAM, Identity providers once.
#EKS access entry
The EKS way to let an IAM role use the Kubernetes API (instead of the older aws-auth ConfigMap). The Jenkins agent's role can get one, scoped to the namespace, so the platform job can deploy without a kubeconfig credential.
#ECR
Amazon Elastic Container Registry, where the image is pushed (<ACCOUNT_ID>.dkr.ecr.<REGION>.amazonaws.com/kims/kims-v2). Login passwords expire after 12 hours, so the agent uses the ECR credential helper.
#RDS
Amazon Relational Database Service. KIMS v2 uses RDS for PostgreSQL 18 (17 if 18 is not offered in the region yet), private, in the cluster's VPC.
#PITR (point-in-time recovery)
RDS's ability to restore a database to any second within its backup retention period (14 days recommended). Turned on by setting a backup retention above zero. A restore creates a new instance.
#Multi-AZ
An RDS option keeping a standby copy in another Availability Zone with automatic failover. Recommended for production.
#Security group
An AWS firewall attached to a resource. The database's (kims-db) allows 5432 only from the cluster's security group and the Jenkins agent.
#S3 gateway endpoint
A free VPC endpoint that lets pods in private subnets reach S3 without going through the NAT gateway.
#NAT gateway
What lets resources in private subnets reach the internet (Google APIs, npm) without being reachable from it. Its public IPs are the "egress IPs" Google API keys can be restricted to.
#Presigned URL
A time-limited URL the CMS signs so the browser can upload a file straight into the assets bucket (HTTP PUT). Needs a CORS rule on the bucket allowing PUT from the CMS's origin.
#CORS
Cross-Origin Resource Sharing: the bucket setting that lets a page on https://<CMS_HOST> send requests to the bucket's address. Without it every media upload fails in the browser.
#CloudFront
AWS's content delivery network. It serves the static website from edge locations worldwide, with the TLS certificate and caching.
#OAC (Origin Access Control)
How CloudFront reads a private S3 bucket: CloudFront signs its requests, and the bucket policy allows only that distribution. Behind OAC, S3 answers 403 (not 404) for a missing file, which is why the distribution maps 403 and 404 to /404.html.
#CloudFront Function (viewer-request)
A small JavaScript function CloudFront runs on every request before its cache. KIMS v2's (deploy/cloudfront/viewer-request.js) appends index.html to directory URLs. Runtime cloudfront-js-2.0, which rejects modern syntax such as optional chaining.
#KeyValueStore (KVS)
A CloudFront key-value store a function can read. KIMS v2 can keep redirects in one (viewer-request-redirects.js), filled by the site build from the CMS Redirects screen when KIMS_REDIRECTS_KVS_ARN is set. The store must be associated with the function before that code is published.
#Invalidation
Telling CloudFront to drop cached copies so the next request fetches the new file. The site build invalidates after every deploy.
#ACM
AWS Certificate Manager: free public TLS certificates, validated by DNS (a CNAME record).
#AWS Load Balancer Controller
The Kubernetes controller that turns an Ingress with class alb into an AWS Application Load Balancer. With the chart's ClusterIP Service it needs alb.ingress.kubernetes.io/target-type: ip.
#STS
AWS Security Token Service. Pods using IRSA call it to exchange their service account token for temporary credentials, so pods must reach it.
#CloudShell
A browser shell in the AWS console with the AWS CLI already set up. Useful when your laptop cannot run something.
#Kubernetes and Helm terms
#Namespace
A named partition of a cluster. KIMS v2 uses kims (production) and kims-uat (UAT).
#Deployment, Pod, Service, Ingress
A Deployment keeps a number of identical pods (running containers) alive. A Service gives them one stable internal address (the CMS's is ClusterIP, port 80 to the pods' 3000). An Ingress exposes a Service outside the cluster on a host name, through an ingress controller (ALB, nginx).
#Job and CronJob
A Job runs a pod to completion once (the migrate Job). A CronJob creates a Job on a schedule (the five cron tasks).
#Secret
A Kubernetes object holding sensitive values that pods read as environment variables. KIMS v2 expects four: kims-database (url), kims-keycloak (client-secret), kims-app (session-secret, secrets-key), kims-jenkins (token).
#Service account
The identity a pod runs as inside Kubernetes. The chart creates kims; IRSA maps it to an IAM role.
#PodDisruptionBudget (PDB)
A rule that keeps a minimum number of pods running during voluntary disruptions such as node upgrades. The chart sets one for the CMS and the worker.
#Readiness and liveness probes
Kubernetes's health checks. The CMS's liveness is GET /api/health (no I/O); readiness is GET /api/health?check=ready, which answers {"status":"ready","database":"ok"} only when it can reach PostgreSQL.
#kubeconfig
The file kubectl reads to know which clusters exist and how to authenticate (~/.kube/config, or %USERPROFILE%\.kube\config on Windows). aws eks update-kubeconfig writes an entry for an EKS cluster.
#Context
One cluster-user-namespace entry in a kubeconfig. kubectl --context <name> picks one; kind-kims-v2 is the local rehearsal's.
#Helm chart, release, values, revision
A chart is a packaged set of Kubernetes templates (deploy/helm/kims). Installing it creates a release (named kims). Values files fill in the templates. Each upgrade makes a new revision; helm rollback kims <REVISION> returns to an earlier one.
#Helm hook
A template Helm runs at a specific point, such as before an upgrade. The migrate Job is a pre-install,pre-upgrade hook.
#kind
"Kubernetes in Docker": a local Kubernetes cluster whose nodes are Docker containers. Used only for the local rehearsal (deploy/kind/), never at KIMS.
#Pod Security restricted
The strictest Kubernetes Pod Security Standard (non-root, no privilege escalation, seccomp, dropped capabilities). The chart's pods run as a non-root user (uid 1000) with a read-only root filesystem. If KIMS's namespace enforces restricted, any one-off pod you start (for example a psql pod) must set a matching security context; Database tools has one.
#Keycloak and sign-in terms
#Realm
A Keycloak tenant: its users, groups and clients. KIMS v2 uses KIMS's existing realm.
#Client (confidential)
An application registered in a realm. The CMS is a confidential client: it has a secret, held in the Secret kims-keycloak. One client per environment.
#Issuer URL
https://<keycloak-host>/realms/<realm>, the realm's identity. KEYCLOAK_ISSUER must match what Keycloak reports character for character, or every sign-in is refused.
#Standard flow and PKCE
The OpenID Connect authorization code flow (browser redirect to Keycloak and back). PKCE (method S256) adds a one-time proof so an intercepted code is useless.
#Redirect URI
Where Keycloak sends the browser after sign-in: https://<CMS_HOST>/api/auth/callback/keycloak, allowed by https://<CMS_HOST>/* on the client.
#Back-channel logout
Keycloak calling the CMS server directly (https://<CMS_HOST>/api/auth/backchannel-logout) when a session ends in Keycloak, so the CMS session ends at once. Needs "Backchannel logout session required" on, and a network path from Keycloak to the CMS. Without it, sign-out reaches the CMS only at its next token refresh, within 5 minutes.
#Client scope roles
The Keycloak client scope that puts client roles (such as cms-access) into the token. Without it the CMS sees no role and refuses everyone.
#Verified email
A Keycloak user attribute. The CMS refuses a sign-in whose account email is not verified. Check this when users come from Active Directory or LDAP.
#Jenkins terms
#Folder
A Jenkins item that groups jobs and holds its own credentials. KIMS v2 uses kims-production and kims-uat, each with both jobs and the same credential IDs.
#Folder credentials
Credentials stored in a folder's own store (the folder, Credentials), visible only to jobs in that folder. KIMS v2's credentials must be per folder, never one global set shared by UAT and production.
#Pipeline from SCM
A Jenkins job whose script (Jenkinsfile) is read from Git. Both KIMS v2 jobs are this kind.
#buildWithParameters
The Jenkins API endpoint (POST <job URL>/buildWithParameters) the worker calls to start a site build. Answers HTTP 400 until the job knows its parameters, which is why they must be added by hand when the job is created.
#API token
A per-user Jenkins token used instead of a password for API calls (HTTP basic auth, no CSRF crumb needed). The CMS's is in the Secret kims-jenkins.
#Agent and label
A machine that runs Jenkins builds, picked by its label (kims-build).
#Build and workstation terms
#buildx
Docker's build front end (BuildKit), needed for multi-architecture images (--platform linux/amd64,linux/arm64).
#amd64 and arm64
The two CPU architectures. Intel and AMD machines are amd64 (x86_64); Apple silicon Macs and AWS Graviton instances are arm64 (aarch64). The image is built for both.
#LTS
Long Term Support: the Node.js release lines meant for production. KIMS v2 needs Node 24 (engines in package.json), even though Node 26 is also LTS now.
#EBADENGINE
The npm warning that the running Node version is outside the project's engines range (for example Node 26 against >=24 <25). Harmless for local work; use Node 24 for anything that matters.
#Native module
A compiled .node file some npm packages ship (Next.js's compiler, Rollup, sharp). Windows Application Control can block them.
#App Control for Business, Smart App Control
Windows features that block programs and DLLs that are not trusted. On the engineer's Windows laptop they blocked kind.exe, helm.exe and Node's native modules until IT allowed them. See Windows notes.
#Line endings (LF, CRLF)
Linux and macOS end text lines with LF; Windows tools often write CRLF. A shell script with CRLF fails on Linux (/bin/sh^M: bad interpreter). The repo's .gitattributes forces LF for shell scripts. See Git.
#Sources
kims-v2/docs/ON-SITE-DEPLOYMENT.md,kims-v2/docs/CONFIG.md(branchmain)kims-v2/deploy/entrypoint.sh,kims-v2/deploy/helm/kims/,kims-v2/deploy/jenkins/README.md,README-site.md,Jenkinsfile.sitekims-v2/deploy/cloudfront/viewer-request.js,viewer-request-redirects.jskims-v2/scripts/handover/data-bundle.mjs,kims-v2/scripts/site-build/run.mjskims-v2/apps/worker/src/schedule.ts,kims-v2/db/migrations/- https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html
- https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html
- https://helm.sh/docs/topics/charts_hooks/
- https://kubernetes.io/docs/concepts/security/pod-security-standards/
- https://www.keycloak.org/docs/latest/server_admin/
- https://learn.microsoft.com/en-us/windows/security/application-security/application-control/app-control-for-business/appcontrol