KKIMS on-site docs
Your workstation

Other tools (jq, openssl, curl, Chrome, archives, editor)

Install and check the smaller tools the steps use: jq, openssl, curl, Google Chrome or Chromium for the Lighthouse gate, tar and 7-Zip for the handover zip, and a JSON and YAML aware editor.

The smaller tools the pages use. None needs a particular version.

Tool Used for Needed
jq Reading JSON output from aws and kubectl Handy, optional
openssl Generating SESSION_SECRET and SECRETS_KEY, inspecting certificates Yes, wherever the Kubernetes Secrets are created
curl Network checks, health checks, downloads Yes (built into all three systems)
Google Chrome or Chromium The Lighthouse quality gate in a local site build For the local site build; always on the Jenkins agent
tar / unzip / 7-Zip Extracting the handover zip Yes
An editor that understands JSON and YAML Values files, policies, pod specs, kims-site-env Yes
sha256sum / shasum / Get-FileHash Checking a file you were sent Built in

#jq

bash
sudo apt install -y jq      # Ubuntu, Debian
sudo dnf install -y jq      # RHEL family, Fedora, Amazon Linux
bash
brew install jq
powershell
winget install -e --id jqlang.jq

Check: jq --version prints jq-1.7.1 or later. Example: aws sts get-caller-identity | jq -r .Arn. In PowerShell you can do the same without jq: (aws sts get-caller-identity | ConvertFrom-Json).Arn.

#openssl

Already installed on almost every distribution. If not: sudo apt install -y openssl or sudo dnf install -y openssl.

Already installed (macOS ships LibreSSL as openssl, which works for everything here). brew install openssl@3 gives OpenSSL 3 if you want it.

Use the one that comes with Git for Windows, in Git Bash. Nothing to install.

If you need it in PowerShell too, either call it by its path, & "C:\Program Files\Git\usr\bin\openssl.exe" version, or install a Windows build: winget install -e --id ShiningLight.OpenSSL.Light.

Check:

text
openssl version
openssl rand -base64 32

You should see a version (OpenSSL 3.x, or LibreSSL 3.x on macOS) and a 44-character random string ending in =. That string is the shape SECRETS_KEY must have; Kubernetes Secrets generates the real one inside the kubectl command so it never appears on screen.

Inspecting a site's certificate (useful when checking ACM and CloudFront):

text
openssl s_client -connect <SITE_HOST>:443 -servername <SITE_HOST> </dev/null 2>/dev/null | openssl x509 -noout -subject -issuer -dates

Run it in bash or Git Bash (PowerShell has no </dev/null). You should see subject=CN=<SITE_HOST>, an Amazon issuer and the validity dates.

#curl

Built into Linux, macOS and Windows 10 1803 and later. In Windows PowerShell type curl.exe, not curl (an alias for Invoke-WebRequest). Which shell to use explains.

Check: curl --version (or curl.exe --version) prints curl 8.x.

The health check you will use most, once the CMS is reachable through a port-forward:

bash
curl -s "http://localhost:3000/api/health?check=ready"
bash
curl -s "http://localhost:3000/api/health?check=ready"
powershell
curl.exe -s "http://localhost:3000/api/health?check=ready"

Expected: {"status":"ready","database":"ok"}.

#Google Chrome or Chromium

The site build's Lighthouse gate launches headless Chrome. Without Chrome the build fails at "Quality gates". On your laptop you can skip the gate with KIMS_LIGHTHOUSE=skip (it is then recorded as skipped); never on the Jenkins agent.

Google Chrome, x86_64 only:

bash
curl -fsSLO https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install -y ./google-chrome-stable_current_amd64.deb
bash
# RHEL family
sudo dnf install -y https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm

On arm64 Linux Google does not ship Chrome: install Chromium (sudo apt install -y chromium on Debian, sudo dnf install -y chromium on Fedora and EPEL; on Ubuntu chromium-browser is a snap) and set CHROME_PATH to it, for example export CHROME_PATH=/usr/bin/chromium.

bash
brew install --cask google-chrome
powershell
winget install -e --id Google.Chrome

Check that it is where Lighthouse looks:

bash
command -v google-chrome || command -v chromium || command -v chromium-browser
bash
ls "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
powershell
Test-Path "C:\Program Files\Google\Chrome\Application\chrome.exe"

You should see a path (Linux, macOS) or True (Windows). If Chrome is somewhere else, set CHROME_PATH to the full path of the executable; chrome-launcher, which Lighthouse uses, reads it first.

#Archives: the handover zip

The handover arrives as content-latest.zip (about 530 MB of data plus the code bundle). Get the code has the exact commands. In short:

unzip (install with sudo apt install -y unzip or sudo dnf install -y unzip).

unzip (built in) or ditto -x -k.

Windows's own C:\Windows\System32\tar.exe, from PowerShell. Not Explorer's "Extract all" (adds a folder level and fails with "path too long") and not Git Bash's tar (cannot read zip files). 7-Zip (winget install -e --id 7zip.7zip) also works.

#Checking a file's hash

When someone sends you a file and its SHA-256:

bash
sha256sum content-latest.zip
bash
shasum -a 256 content-latest.zip
powershell
Get-FileHash content-latest.zip -Algorithm SHA256

The data bundle has its own, stronger check of every file inside it (Check the data bundle), so a zip hash is a convenience, not a requirement.

#A JSON and YAML aware editor

You will edit Helm values (YAML), IAM policies and CORS rules (JSON), pod specs (YAML) and the kims-site-env file (NAME=value). A plain text editor works, but an editor that highlights syntax and flags errors saves time: a missing space in YAML or a trailing comma in JSON fails only later, in Helm or AWS.

Visual Studio Code is free on all three systems:

bash
sudo snap install code --classic

Or the .deb / .rpm from https://code.visualstudio.com/download.

bash
brew install --cask visual-studio-code
powershell
winget install -e --id Microsoft.VisualStudioCode

Useful settings for this project:

  • Install the YAML extension (Red Hat) for errors in values files.
  • Bottom-right status bar: the file's encoding should read UTF-8 and line endings LF for anything that goes to Linux (Helm values, pod specs, kims-site-env). Click either to change it.
  • Never let the editor "format on save" a file you did not write; it can reorder or re-quote YAML.

Any other editor (JetBrains, Sublime Text, Notepad++, vim) is fine with the same care about UTF-8 and LF.

#If it goes wrong

What you see Cause Fix
openssl : The term 'openssl' is not recognized PowerShell has no openssl Use Git Bash, or the full path
Site build fails at Quality gates with No Chrome installations found or CHROME_PATH Chrome missing or not found Install it, or set CHROME_PATH; locally only, KIMS_LIGHTHOUSE=skip
jq: error ... Cannot index string The command printed text, not JSON Add --output json to the aws command
Extraction fails with "path too long" Explorer's "Extract all" Use tar.exe from PowerShell
tar: Error opening archive: Unrecognized archive format in Git Bash Git Bash's tar does not read zip Use C:\Windows\System32\tar.exe from PowerShell
Helm says error converting YAML to JSON: yaml: line N: did not find expected key Indentation or a tab in YAML Fix the indentation (spaces only) in an editor with the YAML extension

#Sources

Built 2026-11-29. Commands are shown for the system picked at the top; every block has all three.