From aa5c63fac255d49bf5e5de06612733ea4381faef Mon Sep 17 00:00:00 2001 From: Mikkel Albrechtsem Date: Wed, 19 Aug 2026 17:49:53 +0200 Subject: [PATCH 1/4] fix: update regex to allow optional suffix in subdomain validation --- src/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/main.js b/src/js/main.js index 1082785..13014ce 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -2,7 +2,7 @@ const POLL_INTERVAL = 5000; // Check subdomain matches const subdomain = window.location.host.split(".")[0]; -const re = new RegExp("^[a-z0-9-]+-[a-f0-9]{16}$"); +const re = new RegExp("^[a-z0-9-]+-[a-f0-9]{16}(-\w*)?$"); const parser = new DOMParser(); function errorHandler(e) { From 06e50658d3617506324f81054db7883f9cb4799e Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 19 Aug 2026 15:52:52 +0000 Subject: [PATCH 2/4] chore(release): 1.0.3-r.1 [skip ci] ## [1.0.3-r.1](https://github.com/ctfpilot/instancing-fallback/compare/v1.0.2...v1.0.3-r.1) (2026-08-19) ### Bug Fixes * update regex to allow optional suffix in subdomain validation ([aa5c63f](https://github.com/ctfpilot/instancing-fallback/commit/aa5c63fac255d49bf5e5de06612733ea4381faef)) --- k8s/k8s.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/k8s/k8s.yml b/k8s/k8s.yml index c2b5d5e..423fe47 100644 --- a/k8s/k8s.yml +++ b/k8s/k8s.yml @@ -5,7 +5,7 @@ metadata: labels: app.kubernetes.io/part-of: ctfpilot app.kubernetes.io/name: instancing-fallback - app.kubernetes.io/version: 1.0.2 + app.kubernetes.io/version: 1.0.3-r.1 app.kubernetes.io/component: challenges ctfpilot.com/component: instancing-fallback @@ -25,7 +25,7 @@ spec: automountServiceAccountToken: false containers: - name: instancing-fallback - image: ghcr.io/ctfpilot/instancing-fallback:1.0.2 + image: ghcr.io/ctfpilot/instancing-fallback:1.0.3-r.1 imagePullPolicy: Always ports: - name: http @@ -51,7 +51,7 @@ metadata: labels: app.kubernetes.io/part-of: ctfpilot app.kubernetes.io/name: instancing-fallback - app.kubernetes.io/version: 1.0.2 + app.kubernetes.io/version: 1.0.3-r.1 app.kubernetes.io/component: challenges ctfpilot.com/component: instancing-fallback spec: From 61c4006bfc08eebcb5b8fe479a3b1f491a255e15 Mon Sep 17 00:00:00 2001 From: Mikkel Albrechtsem Date: Wed, 19 Aug 2026 17:54:57 +0200 Subject: [PATCH 3/4] fix: update regex to allow lowercase letters in optional suffix for subdomain validation --- src/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/main.js b/src/js/main.js index 13014ce..7824d22 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -2,7 +2,7 @@ const POLL_INTERVAL = 5000; // Check subdomain matches const subdomain = window.location.host.split(".")[0]; -const re = new RegExp("^[a-z0-9-]+-[a-f0-9]{16}(-\w*)?$"); +const re = new RegExp("^[a-z0-9-]+-[a-f0-9]{16}(-[a-z0-9-]*)?$"); const parser = new DOMParser(); function errorHandler(e) { From 10ac1af608c96e96403e6bcb4cad8be93ddc1e1b Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 19 Aug 2026 15:56:15 +0000 Subject: [PATCH 4/4] chore(release): 1.0.3-r.2 [skip ci] ## [1.0.3-r.2](https://github.com/ctfpilot/instancing-fallback/compare/v1.0.3-r.1...v1.0.3-r.2) (2026-08-19) ### Bug Fixes * update regex to allow lowercase letters in optional suffix for subdomain validation ([61c4006](https://github.com/ctfpilot/instancing-fallback/commit/61c4006bfc08eebcb5b8fe479a3b1f491a255e15)) --- k8s/k8s.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/k8s/k8s.yml b/k8s/k8s.yml index 423fe47..dbb82e1 100644 --- a/k8s/k8s.yml +++ b/k8s/k8s.yml @@ -5,7 +5,7 @@ metadata: labels: app.kubernetes.io/part-of: ctfpilot app.kubernetes.io/name: instancing-fallback - app.kubernetes.io/version: 1.0.3-r.1 + app.kubernetes.io/version: 1.0.3-r.2 app.kubernetes.io/component: challenges ctfpilot.com/component: instancing-fallback @@ -25,7 +25,7 @@ spec: automountServiceAccountToken: false containers: - name: instancing-fallback - image: ghcr.io/ctfpilot/instancing-fallback:1.0.3-r.1 + image: ghcr.io/ctfpilot/instancing-fallback:1.0.3-r.2 imagePullPolicy: Always ports: - name: http @@ -51,7 +51,7 @@ metadata: labels: app.kubernetes.io/part-of: ctfpilot app.kubernetes.io/name: instancing-fallback - app.kubernetes.io/version: 1.0.3-r.1 + app.kubernetes.io/version: 1.0.3-r.2 app.kubernetes.io/component: challenges ctfpilot.com/component: instancing-fallback spec: