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
sudo apt install -y jq # Ubuntu, Debian
sudo dnf install -y jq # RHEL family, Fedora, Amazon Linuxbrew install jqwinget install -e --id jqlang.jqCheck: 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:
openssl version
openssl rand -base64 32You 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):
openssl s_client -connect <SITE_HOST>:443 -servername <SITE_HOST> </dev/null 2>/dev/null | openssl x509 -noout -subject -issuer -datesRun 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:
curl -s "http://localhost:3000/api/health?check=ready"curl -s "http://localhost:3000/api/health?check=ready"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:
curl -fsSLO https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install -y ./google-chrome-stable_current_amd64.deb# RHEL family
sudo dnf install -y https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpmOn 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.
brew install --cask google-chromewinget install -e --id Google.ChromeCheck that it is where Lighthouse looks:
command -v google-chrome || command -v chromium || command -v chromium-browserls "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"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:
sha256sum content-latest.zipshasum -a 256 content-latest.zipGet-FileHash content-latest.zip -Algorithm SHA256The 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:
sudo snap install code --classicOr the .deb / .rpm from https://code.visualstudio.com/download.
brew install --cask visual-studio-codewinget install -e --id Microsoft.VisualStudioCodeUseful 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
kims-v2/deploy/jenkins/README-site.md(Chrome or Chromium on the agent, Lighthouse fails without it)kims-v2/docs/CONFIG.md(KIMS_LIGHTHOUSE,SECRETS_KEYfromopenssl rand -base64 32)kims-v2/package.json(lighthouse,chrome-launcher)kims-deploy-info/local/00-prerequisites.md(Chrome check, extraction on Windows)- https://jqlang.org/download/
- https://www.openssl.org/
- https://curl.se/windows/microsoft.html
- https://github.com/GoogleChrome/chrome-launcher#launch-options (
CHROME_PATH) - https://www.google.com/chrome/
- https://learn.microsoft.com/en-us/virtualization/community/team-blog/2017/20171219-tar-and-curl-come-to-windows
- https://code.visualstudio.com/download
- https://www.7-zip.org/