From ffe9bdab9b317c0ee02c8c662cf1d511f90444d6 Mon Sep 17 00:00:00 2001 From: Mykhailo Koziaryk Date: Tue, 24 Nov 2026 14:57:21 +0200 Subject: [PATCH 1/2] fix(e2e-targets): keep karpenter from evicting test targets mid-scan Karpenter consolidation ("Evicted pod: Underutilized") moves single-replica e2e targets in the distributor namespace to another node while a test is running. The target is down until the new pod is ready and its in-pod data is reset, so scans miss findings or run until timeout and whole test batches have to be rerun (IR-835). Add the karpenter.sh/do-not-disrupt pod annotation to the targets of the most affected SET tests: brokencrystals, dvwa, juiceshop, altoroj and beebox (bwapp). simple-service 0.5.2 gets two values: podAnnotations and ingress.sslRedirect (default "False", unchanged for other charts). juiceshop, altoroj and beebox move to it and set sslRedirect "True". altoroj and beebox were on vendored simple-service 0.3.0/0.0.1 whose ingress-nginx annotations F5 ignores, so they redirected http to https by F5 default; juiceshop lost that redirect with 0.5.1. "True" keeps the crawler on https, as for dvwa in #110. Drop the vendored dependency archives and locks, as juiceshop already does. IR-835 --- charts/altoroj/Chart.lock | 6 ------ charts/altoroj/Chart.yaml | 4 ++-- charts/altoroj/charts/simple-service-0.3.0.tgz | Bin 1571 -> 0 bytes charts/altoroj/values.yaml | 5 +++++ charts/beebox/Chart.lock | 6 ------ charts/beebox/Chart.yaml | 4 ++-- charts/beebox/charts/simple-service-0.0.1.tgz | Bin 1172 -> 0 bytes charts/beebox/values.yaml | 5 +++++ charts/brokencrystals/Chart.yaml | 2 +- charts/brokencrystals/templates/deployment.yaml | 2 ++ charts/dvwa/Chart.yaml | 2 +- charts/dvwa/templates/deployment.yaml | 3 +++ charts/juice-shop/Chart.yaml | 4 ++-- charts/juice-shop/values.yaml | 5 +++++ simple-service/Chart.yaml | 2 +- simple-service/templates/deployment.yaml | 4 ++++ simple-service/templates/ingress.yaml | 2 +- simple-service/values.yaml | 4 ++++ 18 files changed, 38 insertions(+), 22 deletions(-) delete mode 100644 charts/altoroj/Chart.lock delete mode 100644 charts/altoroj/charts/simple-service-0.3.0.tgz delete mode 100644 charts/beebox/Chart.lock delete mode 100644 charts/beebox/charts/simple-service-0.0.1.tgz diff --git a/charts/altoroj/Chart.lock b/charts/altoroj/Chart.lock deleted file mode 100644 index 81c78cc..0000000 --- a/charts/altoroj/Chart.lock +++ /dev/null @@ -1,6 +0,0 @@ -dependencies: -- name: simple-service - repository: file://../../simple-service - version: 0.3.0 -digest: sha256:fb853a8f69d59ed9b7dd8d7270b4918a2f27e5bd39d8056b7f155be258590704 -generated: "2026-01-15T21:40:44.550871+03:00" diff --git a/charts/altoroj/Chart.yaml b/charts/altoroj/Chart.yaml index 7282e4d..7d8ef7e 100644 --- a/charts/altoroj/Chart.yaml +++ b/charts/altoroj/Chart.yaml @@ -9,8 +9,8 @@ description: | type: application keywords: - altoroj -version: 0.0.5 +version: 0.0.6 dependencies: - name: simple-service - version: 0.3.0 + version: 0.5.2 repository: "file://../../simple-service" diff --git a/charts/altoroj/charts/simple-service-0.3.0.tgz b/charts/altoroj/charts/simple-service-0.3.0.tgz deleted file mode 100644 index 44899edaee9e85e72d533a3e3b6863168f71ed2b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1571 zcmV+;2Hg1{iwG0|00000|0w_~VMtOiV@ORlOnEsqVl!4SWK%V1T2nbTPgYhoO;>Dc zVQyr3R8em|NM&qo0PI;?Z`-&M&a-~SK*&Q6P$`m~OCcZ+MVbQyr%8h(EpV_{ENE(C z6Q)R(q?~x&{PzWQu_f7#)2%nfqMnz853kkT+`mMK zVqZ`jCPf01o=23LH={5PBQHfmHB+|edJpA$f$F`$1G6Kbxv?^1f06-55F|q&A_XP2 z^;|1~_9OG`RAB-{Db6Tyz}{rBW1M{~sRryZ+xlI@$UE zYX}oVjm9J%07Y#R@Ka{2W`o>H{lIuiiB5gbYj~^EWf>V_0{(~%M;7VGAU#MW9itA? z$pi5{DEvQxcaaBxVv@k@$pg@6WUeU|3%cgl9F4770954(97S2x%rKLB>UyF}R`hX} zv4wg)9!I^yOXhh)E(e4s#X1U!MSbzXBp`CmJpe1mDCRB7b7N62Mp=e3cL&gS_vbf3 z+-C2{u+sh6SGHB@_`k(WabnRNP$}-&a4V5ulm8z_UH?Ds$2JAXd;FP`(vEGh5ZTPkeqIsRA|G~Qv$wgxJge>eual3U4XY54Qt8}@^V9#^}pMO zpL+jm{Xa#;nfUH*U4JB)Vz{~8hmf!B-yL@9GH4+J0Pk6^2j0DzML z@+yxLrPhHFA*3z5d`=j+Bq{39STc6GIixZ>Ai0$Z_*UoWdqyF3$_6=7D|Iu?8cE7t4BFOS zhgzi@S0Hy%NQ1I=hYIG}?W_oF7raVVZt=&ru)jcEk+qsjHel*EQx69&j}?IJ^Qm6Z zK)WKqRREN;+01Qkf89bAlXmIRfo@it%>cP^4<{+|l64(*60L>GEF&&n{pOd(1e7!X zE%-H{|9eB5=;5+I1wnDhr~7a2KK<|f>OcOn0!vT#-`t#EpTEC5zxm_h!z!KXQcm~Z zoPGR!dv|`bN~tO}+*%ix=bt{`ty1E07;u~*Kb@c+NQ3@r&uLEVmQ(Zdab;C6n%7me zEb6DazADAlYaNTq7tz>#2demRP*I-7n=6^mGEi~I&p@nnfOTNiQNJ8+;W}%qE3f4{ z>?>~+zCnujBGHqhqyF)Z|GkDZxt~D$AoZAuVK{zgLM9hP@S=PTe~$$&lfc#FZk!KL z3$$3QT|Yp|i7^R?Arp^L6o^$a7WS?xyXo_+Ge3+6{);npr0HI`HY7V{0obpVcP&Ym#lPTAYL;c4XSL)paFs z(2DM^@2>b+;#%W9du$C32pywHyIHl0nceP}ao=iLsqON70Fh?{_e$0fbT@5FUk=vB z|ElK|;(yfdMN9EN+Qt7@5m*10A^x`db*}S8aGQ1i>eBp~^4UG~d0;4iQ26IvVkbM< V$xeO=`6~bb|NmH<{8a!X0057~{d52T diff --git a/charts/altoroj/values.yaml b/charts/altoroj/values.yaml index d2288ea..2a17852 100644 --- a/charts/altoroj/values.yaml +++ b/charts/altoroj/values.yaml @@ -1,4 +1,9 @@ simple-service: + ingress: + sslRedirect: "True" + podAnnotations: + # Keep Karpenter consolidation from evicting the target mid-test (IR-835) + karpenter.sh/do-not-disrupt: "true" application: image: "brightsec/altoroj:3.5-dev" port: 8080 diff --git a/charts/beebox/Chart.lock b/charts/beebox/Chart.lock deleted file mode 100644 index de25dda..0000000 --- a/charts/beebox/Chart.lock +++ /dev/null @@ -1,6 +0,0 @@ -dependencies: -- name: simple-service - repository: file://../../simple-service - version: 0.0.1 -digest: sha256:cc5b753b300f605ca017b0e32b87aff020e5d5e7314cffb558aef587885d0a81 -generated: "2024-04-12T13:42:47.668254433+02:00" diff --git a/charts/beebox/Chart.yaml b/charts/beebox/Chart.yaml index 58682e5..3f4837f 100644 --- a/charts/beebox/Chart.yaml +++ b/charts/beebox/Chart.yaml @@ -5,8 +5,8 @@ type: application keywords: - beebox - bwapp -version: 0.0.7 +version: 0.0.8 dependencies: - name: simple-service - version: 0.0.1 + version: 0.5.2 repository: "file://../../simple-service" diff --git a/charts/beebox/charts/simple-service-0.0.1.tgz b/charts/beebox/charts/simple-service-0.0.1.tgz deleted file mode 100644 index a236b7f08a6ef04b67461db79fce44f283deaa31..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1172 zcmV;F1Z(>riwG0|00000|0w_~VMtOiV@ORlOnEsqVl!4SWK%V1T2nbTPgYhoO;>Dc zVQyr3R8em|NM&qo0PI-Jj@vd6-m{)!VB}cIl>8S6=%GkapgTw{qwnvdFD9 z=0LR;oKYV*T6M>K?oIh0$pQXXR8(j$OaSNbKS+m%_#ccWH~e2ixSSibHje-p8ka+_ z;MN&Ft(-FVTojC&q8CMbX!W+dq;t%nx8U=IL$GMmPLlLpu3Cjh0*%IlKzr{teYpiH;W3QIEJf zmv1(Zyhnl5V)EAK`t7#qvzoGC(CH7_?KWzoY&O7WkbJ5W%^s~JC|7l`%_asz1V|+TML0a&y4%)Ro9yRRj zyGn=;$PBt8-$_?O#PbC+F;_o87CFiP&Bfpn1>iaU9}fqI_1|bPzVZJxWS{#bx_f1o zT+Wl_OPg@@B@z5ypN0$8gGb1HSxwPMbQs2N4de85a=vQX4cxpZ02WMwDFq?wM`tZO*JtrlQDGB_4_YYhJRL&gZUe!+ZNK5UMICt+@KY7mkGYqoI-a4YSq^}y1a_8k^zfXU ze>44sbNb6pXzCWWoBO;fhkhsPdELkG`1sD?j6ZZbr<5&G7KeGVVa7xC*Co(qSY_N} ze*jsPQ-2mtWO?uQk6%?z@_(bb0{@di_UQgUN(VRozlQkwzoz&P&FlQZi@+u8{^OYHN2gT Date: Tue, 24 Nov 2026 15:26:42 +0200 Subject: [PATCH 2/2] fix(e2e-targets): drop ssl-redirect change from do-not-disrupt fix The previous commit assumed F5 NGINX redirects http to https by default for these targets. The cluster config sets ssl-redirect "False" globally (cluster-vulnerable-apps common/f5-nginx-ingress), so juiceshop, altoroj and beebox serve plain http today and sslRedirect "True" would have changed their behavior. Keep this change limited to the karpenter.sh/do-not-disrupt annotation; http to https redirects for the targets that need them go in a separate change. IR-835 --- charts/altoroj/values.yaml | 2 -- charts/beebox/values.yaml | 2 -- charts/juice-shop/values.yaml | 2 -- simple-service/templates/ingress.yaml | 2 +- simple-service/values.yaml | 2 -- 5 files changed, 1 insertion(+), 9 deletions(-) diff --git a/charts/altoroj/values.yaml b/charts/altoroj/values.yaml index 2a17852..270c6a7 100644 --- a/charts/altoroj/values.yaml +++ b/charts/altoroj/values.yaml @@ -1,6 +1,4 @@ simple-service: - ingress: - sslRedirect: "True" podAnnotations: # Keep Karpenter consolidation from evicting the target mid-test (IR-835) karpenter.sh/do-not-disrupt: "true" diff --git a/charts/beebox/values.yaml b/charts/beebox/values.yaml index 509fc29..c7e868a 100644 --- a/charts/beebox/values.yaml +++ b/charts/beebox/values.yaml @@ -1,6 +1,4 @@ simple-service: - ingress: - sslRedirect: "True" podAnnotations: # Keep Karpenter consolidation from evicting the target mid-test (IR-835) karpenter.sh/do-not-disrupt: "true" diff --git a/charts/juice-shop/values.yaml b/charts/juice-shop/values.yaml index eba4e18..7dd41e2 100644 --- a/charts/juice-shop/values.yaml +++ b/charts/juice-shop/values.yaml @@ -1,6 +1,4 @@ simple-service: - ingress: - sslRedirect: "True" podAnnotations: # Keep Karpenter consolidation from evicting the target mid-test (IR-835) karpenter.sh/do-not-disrupt: "true" diff --git a/simple-service/templates/ingress.yaml b/simple-service/templates/ingress.yaml index 431a644..8e976e2 100644 --- a/simple-service/templates/ingress.yaml +++ b/simple-service/templates/ingress.yaml @@ -5,7 +5,7 @@ metadata: namespace: {{.Release.Namespace}} annotations: kubernetes.io/ingress.class: nginx - nginx.org/ssl-redirect: {{ .Values.ingress.sslRedirect | default "False" | quote }} + nginx.org/ssl-redirect: "False" # F5 NGINX Ingress Controller only proxies WebSocket upgrades for listed services nginx.org/websocket-services: "{{ .Release.Name }}" {{ if eq .Values.ingress.cert "" }} diff --git a/simple-service/values.yaml b/simple-service/values.yaml index 5e6bda3..3678ce6 100644 --- a/simple-service/values.yaml +++ b/simple-service/values.yaml @@ -1,7 +1,5 @@ ingress: cert: "distributorwildcard" - # Value of nginx.org/ssl-redirect. F5 NGINX defaults to "True"; "False" keeps plain http reachable. - sslRedirect: "False" # Extra pod annotations, e.g. karpenter.sh/do-not-disrupt for e2e targets. podAnnotations: {}