KKIMS on-site docs
Google services

Outbound network access for pods and the Jenkins agent

Every host the KIMS v2 pods and the Jenkins agent must reach, why, what fails when one is blocked, and how to test each path from inside the namespace or on the agent.

Closed network paths fail quietly: pods start and look healthy, then one feature times out. Give this list to KIMS's network team on day one, and test each path before the step that needs it.

#From the KIMS v2 pods

The CMS, worker, CronJob and migrate pods all run the same image in the environment's namespace (kims for production, kims-uat for UAT).

#Hosts the pods call

To Port Called by Why Fails as
RDS endpoint 5432 All The database Pods not ready; {"status":"not-ready","database":"unreachable"}; migrate Job fails
Keycloak (the host in KEYCLOAK_ISSUER) 443 CMS Discovery, keys, token, introspection Sign-in fails, "access unavailable"
S3 in the region (s3.<AWS_REGION>.amazonaws.com and <ASSETS_BUCKET>.s3.<AWS_REGION>.amazonaws.com) 443 CMS, worker Media uploads and resizing (assets bucket only) Uploaded images never get their sizes; health check stays fine
STS (sts.<AWS_REGION>.amazonaws.com) 443 CMS, worker IRSA: swapping the service account token for the IAM role's credentials Every S3 call fails with a credentials error
Jenkins (the host in JENKINS_JOB_URL) 443 CMS, worker Starting and following site builds Publish succeeds, no build starts
translation.googleapis.com 443 CMS, worker Machine translation Translation key test fails; jobs time out
oauth2.googleapis.com 443 CMS, worker Google token exchange and refresh (reviews) Connect Google and the reviews sync fail
www.googleapis.com 443 CMS, worker Listed by KIMS v2's runbook for the Google sign-in Reviews sign-in may fail
mybusiness.googleapis.com 443 CMS, worker Reading reviews Reviews sync fails
mybusinessaccountmanagement.googleapis.com 443 CMS Listing Business Profile accounts (Connect Google) Connect Google fails
mybusinessbusinessinformation.googleapis.com 443 CMS Listing locations (Connect Google) Connect Google fails

accounts.google.com (the Google consent page) is opened by the Admin's browser, not by a pod.

A VPC gateway endpoint for S3 keeps S3 traffic off the NAT gateway (cheaper and faster); STS can use an interface endpoint. See aws/networking.

#From Keycloak to the CMS

From To Port Fails as
Keycloak https://<CMS_HOST>/api/auth/backchannel-logout 443 Revoking a person takes up to 5 minutes instead of seconds

#If the namespace uses network policies

Ask KIMS to allow, for pods labelled app.kubernetes.io/name: kims: egress to the RDS subnet on 5432, to DNS (port 53, UDP and TCP, to kube-dns in kube-system), and to 443 anywhere (or to the hosts above through their proxy); and ingress from the ingress controller (or the load balancer's subnets with target-type: ip) to port 3000.

#If KIMS uses an outbound proxy

The chart sets no proxy variables, and Node's built-in fetch (used for Google, Keycloak and Jenkins) ignores HTTPS_PROXY unless NODE_USE_ENV_PROXY=1 is also set, which only recent Node 24 releases support; the AWS SDK has its own proxy settings. None of this has been tried with KIMS v2. Ask KIMS to allow the hosts above through a transparent firewall or NAT, and raise it on arrival if their network only allows an explicit proxy.

#From the Jenkins agent

#Hosts the agent calls

To Port Job Why Fails as
KIMS's Git 443 or 22 Both Checkout Both jobs fail at Checkout
registry.npmjs.org 443 Both npm ci Install stage fails
Docker Hub (registry-1.docker.io, auth.docker.io, production.cloudflare.docker.com) 443 Platform The node:24-slim base image and the docker/dockerfile:1 syntax image Image stage fails pulling the base
The image registry (ECR: <ACCOUNT_ID>.dkr.ecr.<AWS_REGION>.amazonaws.com, api.ecr.<AWS_REGION>.amazonaws.com, and S3 for layers) 443 Platform Pushing the image Image stage fails
The EKS API endpoint 443 Platform helm and kubectl Deploy stage fails
RDS endpoint 5432 Site Reading published content, recording progress in site_builds Site build fails at its first stage
S3 in the region 443 Site Reading the assets bucket, syncing the website bucket Fails at Bundle media or Sync
cloudfront.amazonaws.com 443 Site Invalidation Fails at Invalidate; site shows old pages
The CloudFront KeyValueStore API (<ACCOUNT_ID>.cloudfront-kvs.global.api.aws) 443 Site Redirects, only if KIMS_REDIRECTS_KVS_ARN is set Fails at Redirects
STS 443 Both If the agent's role is assumed through IRSA or a web identity AWS calls fail

The site build's Lighthouse gate runs Chrome against the local build only; it needs no outside access.

#Test a path from inside the namespace

#With the KIMS v2 image (no extra image needed)

The CMS and worker pods have Node 24, whose built-in fetch prints the HTTP status. Any number, even 401, 403 or 404, means the path is open. A hang that ends in fetch failed with ETIMEDOUT, ECONNREFUSED or ENOTFOUND means it is blocked (or the name does not resolve).

bash
for h in translation.googleapis.com oauth2.googleapis.com www.googleapis.com mybusiness.googleapis.com mybusinessaccountmanagement.googleapis.com mybusinessbusinessinformation.googleapis.com; do
  printf '%s ' "$h"
  kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> exec deploy/kims-worker -- node -e "fetch('https://$h/',{signal:AbortSignal.timeout(10000)}).then(r=>console.log(r.status),e=>console.log('BLOCKED',e.cause?.code||e.name))"
done
bash
for h in translation.googleapis.com oauth2.googleapis.com www.googleapis.com mybusiness.googleapis.com mybusinessaccountmanagement.googleapis.com mybusinessbusinessinformation.googleapis.com; do
  printf '%s ' "$h"
  kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> exec deploy/kims-worker -- node -e "fetch('https://$h/',{signal:AbortSignal.timeout(10000)}).then(r=>console.log(r.status),e=>console.log('BLOCKED',e.cause?.code||e.name))"
done
powershell
$hosts = "translation.googleapis.com","oauth2.googleapis.com","www.googleapis.com","mybusiness.googleapis.com","mybusinessaccountmanagement.googleapis.com","mybusinessbusinessinformation.googleapis.com"
foreach ($h in $hosts) {
  $js = "fetch('https://$h/',{signal:AbortSignal.timeout(10000)}).then(r=>console.log(r.status),e=>console.log('BLOCKED',e.cause?.code||e.name))"
  Write-Host -NoNewline "$h "
  kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> exec deploy/kims-worker -- node -e $js
}

Expected: each host followed by a status such as 404, 403 or 200. BLOCKED ETIMEDOUT or BLOCKED TimeoutError means that host is closed. Repeat with deploy/kims-cms in place of deploy/kims-worker: both call Google.

To test Jenkins, S3 or Keycloak the same way, use https://<JENKINS_HOST>/login, https://s3.<AWS_REGION>.amazonaws.com/, https://sts.<AWS_REGION>.amazonaws.com/ and <KEYCLOAK_ISSUER>/.well-known/openid-configuration (that last one should print 200).

#With a throwaway curl pod

KIMS v2's runbook uses this; it needs the nodes to pull curlimages/curl from Docker Hub, and a namespace that does not enforce Pod Security restricted:

bash
kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> run nettest --rm -it --restart=Never --image=curlimages/curl -- curl -sS -o /dev/null -w "%{http_code}\n" https://translation.googleapis.com
bash
kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> run nettest --rm -it --restart=Never --image=curlimages/curl -- curl -sS -o /dev/null -w "%{http_code}\n" https://translation.googleapis.com
powershell
kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> run nettest --rm -it --restart=Never --image=curlimages/curl -- curl -sS -o /dev/null -w "%{http_code}\n" https://translation.googleapis.com

Expected: a status code such as 404, then pod "nettest" deleted. A timeout means blocked.

#Before the first deploy

There are no KIMS v2 pods yet. Use the curl pod above, or ask KIMS to run the same curl from a node or a pod in the same subnets.

#Test from the Jenkins agent

Agents are Linux. As the user Jenkins runs as (or in a pipeline sh step):

bash
for u in https://registry.npmjs.org/ https://registry-1.docker.io/v2/ https://cloudfront.amazonaws.com/ https://s3.<AWS_REGION>.amazonaws.com/ <KIMS_GIT_URL>; do
  printf '%s ' "$u"; curl -sS -o /dev/null -m 10 -w "%{http_code}\n" "$u" || echo BLOCKED
done
nc -vz -w 5 <RDS_ENDPOINT> 5432

Expected: a status for each URL (200, 401, 403 or 404 are all fine), and Connection to <RDS_ENDPOINT> port 5432 succeeded! (the wording differs between nc versions; succeeded or open means reachable).

If KIMS's agent is Windows, see jenkins/agent: the site build's shell steps expect a Linux agent.

#UAT and production

The same lists apply to both. If UAT and production run in different VPCs or clusters, each needs its own rules, and each has its own NAT addresses for the translation key's IP restriction (google/translation-api-key).

#Sources

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