Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
options:
- ""
env:
DEPENDENCIES_CHART_VERSION: "v1.9.12"
DEPENDENCIES_CHART_VERSION: "1.9.15"
TRAEFIK_CHART_VERSION: "39.0.0"
jobs:
approve:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/deploy-opencrvs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ on:
core-image-tag:
description: "Tag of the core image"
required: true
default: "v1.9.12"
default: "1.9.15"
countryconfig-image-tag:
description: "Tag of the countryconfig image"
required: true
default: "v1.9.12"
default: "1.9.15"
data-seed-enabled:
description: "Data seeding during deployment"
required: false
Expand All @@ -36,7 +36,7 @@ on:

env:
# Assuming chart version matches core image tag
OPENCRVS_CHART_VERSION: "v1.9.13"
OPENCRVS_CHART_VERSION: "1.9.15"
jobs:
approve:
environment: ${{ inputs.environment }}
Expand Down Expand Up @@ -145,8 +145,8 @@ jobs:
--atomic \
--wait \
--wait-for-jobs \
--set platform.tag="$CORE_IMAGE_TAG" \
--set countryconfig.image.tag="$COUNTRYCONFIG_IMAGE_TAG" \
--set-string platform.tag="$CORE_IMAGE_TAG" \
--set-string countryconfig.image.tag="$COUNTRYCONFIG_IMAGE_TAG" \
--set countryconfig.image.name="$COUNTRYCONFIG_IMAGE_NAME" \
--set data_seed.env.ACTIVATE_USERS="${{ vars.ACTIVATE_USERS || 'false' }}" \
--set data_seed.enabled="${{ inputs.data-seed-enabled }}" \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/init-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
with:
ref: ${{ steps.get_base_branch.outputs.base_branch }}
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.INFRASTRUCTURE_WORKFLOW_TOKEN }}

- name: Check if release branch already exists
id: check_branch
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Changelog

## 1.9.15 Release Candidate

## 1.9.14 Release Candidate

### Fixes

- Improved internet connectivity checks by replacing ICMP ping with HTTPS endpoint validation and detailed diagnostics for restricted environments.
2 changes: 2 additions & 0 deletions infrastructure/server-setup/tasks/k8s/ufw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
- { port: 7946, proto: "udp" } # Used by some CNIs (e.g., Flannel, Weave)
- { port: 8472, proto: "udp" } # VXLAN (Flannel/Calico; verify if needed)
- { port: 4789, proto: "udp" } # VXLAN (Calico; verify if needed)
- { port: 179, proto: "tcp" } # BGP (Calico)
- { port: 179, proto: "udp" } # BGP (Calico)
# Expose traefik on node port
# Rules are required for internet facing load balancer (if exists)
- { port: 30080, proto: "tcp" } # NodePort HTTP
Expand Down
8 changes: 4 additions & 4 deletions scripts/bootstrap/node-runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ if [[ ! -f "runner.tar.gz" ]]; then
fi

echo "[+] Download URL: $RUNNER_LATEST_URL into folder $(pwd)"
if ! curl -fL "$RUNNER_LATEST_URL" -o runner.tar.gz; then
if ! sudo -u $RUNAS_USER curl -fL "$RUNNER_LATEST_URL" -o runner.tar.gz; then
echo "❌ Failed to download runner archive."
exit 1
fi
Expand All @@ -111,9 +111,9 @@ else
fi

echo "[+] Extracting runner..."
tar xzf runner.tar.gz
sudo -u $RUNAS_USER tar xzf runner.tar.gz
echo "[+] Setting permissions... `pwd`"
chown -R $RUNAS_USER:$RUNAS_GROUP .
sudo chown -R $RUNAS_USER:$RUNAS_GROUP .
# --- GET REGISTRATION TOKEN ---
echo "[+] Requesting registration token..."
REG_TOKEN=$(curl -s -X POST \
Expand All @@ -133,7 +133,7 @@ sudo -u $RUNAS_USER ./config.sh \
# --- SETUP SYSTEMD SERVICE ---
echo "[+] Installing systemd service..."

sudo ./svc.sh install
sudo ./svc.sh install provision

# Fix service to run as specific user/group
SERVICE_FILE_PATH=$(ls /etc/systemd/system/actions.runner.*.service 2>/dev/null | head -n1)
Expand Down
69 changes: 66 additions & 3 deletions scripts/bootstrap/opencrvs-bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,75 @@ check_ubuntu_version() {
echo "Ubuntu version OK."
}

curl_check_url() {
local url="$1"
local http_code

http_code="$(curl \
--silent \
--location \
--head \
--retry 3 \
--retry-delay 2 \
--retry-all-errors \
--max-time 10 \
--output /dev/null \
--write-out "%{http_code}" \
"$url" || true)"

# 000 means curl could not connect / DNS failed / TLS failed / timed out.
if [ "$http_code" = "000" ]; then
return 1
fi

return 0
}

check_internet() {
echo "Testing internet connectivity (ping google.com)..."
if ! ping -c 2 google.com >/dev/null 2>&1; then
abort "Internet connectivity failed (cannot reach google.com)"
local urls=(
"https://raw.githubusercontent.com/"
"https://get.helm.sh"
"https://pkgs.k8s.io"
"https://archive.ubuntu.com"
"https://changelogs.ubuntu.com"
"https://hub.docker.com"
"https://auth.docker.io"
"https://registry-1.docker.io"
"https://download.docker.com"
"https://sentry.io"
"https://fonts.gstatic.com"
"https://storage.googleapis.com"
"https://fonts.googleapis.com"
"https://github.com"
"https://acme-v02.api.letsencrypt.org"
"https://registry.npmjs.org"
"https://registry.yarnpkg.com"
"https://eu.ui-avatars.com"
)

local failed=0

echo "Testing outbound HTTPS connectivity..."
echo

printf "%-40s %-10s\n" "URL" "STATUS"
printf "%-40s %-10s\n" "----------------------------------------" "----------"

for url in "${urls[@]}"; do
if curl_check_url "$url"; then
printf "%-45s %-10s\n" "$url" "OK"
else
printf "%-45s %-10s\n" "$url" "FAILED"
failed=1
fi
done

echo

if [ "$failed" -ne 0 ]; then
abort "Internet connectivity check failed. Some required endpoints are unreachable."
fi

echo "Internet connectivity OK."
}

Expand Down