From fd79074ff89058e97802728d4e0e7461b5b711f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alfred=20G=C3=B6ppel?= <43101280+alfi0812@users.noreply.github.com> Date: Sat, 17 Jan 2026 19:10:44 +0100 Subject: [PATCH] fix(ctfd): Fix broken updating (#43739) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** ⚒️ Fixes # **⚙️ Type of change** - [ ] ⚙️ Feature/App addition - [ ] 🪛 Bugfix - [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] 🔃 Refactor of current code - [ ] 📜 Documentation Changes **🧪 How Has This Been Tested?** **📃 Notes:** **✔️ Checklist:** - [x] ⚖️ My code follows the style guidelines of this project - [x] 👀 I have performed a self-review of my own code - [ ] #️⃣ I have commented my code, particularly in hard-to-understand areas - [ ] 📄 I have made changes to the documentation - [ ] 🧪 I have added tests to this description that prove my fix is effective or that my feature works - [x] ⬆️ I increased versions for any altered app according to semantic versioning - [x] I made sure the title starts with `feat(chart-name):`, `fix(chart-name):`, `chore(chart-name):`, `docs(chart-name):` or `fix(docs):` **➕ App addition** If this PR is an app addition please make sure you have done the following. - [ ] 🖼️ I have added an icon in the Chart's root directory called `icon.png` --- _Please don't blindly check all the boxes. Read them and only check those that apply. Those checkboxes are there for the reviewer to see what is this all about and the status of this PR with a quick glance._ --------- Signed-off-by: Alfred Göppel <43101280+alfi0812@users.noreply.github.com> --- charts/stable/ctfd/Chart.yaml | 10 +--------- charts/stable/ctfd/values.yaml | 20 +++++--------------- 2 files changed, 6 insertions(+), 24 deletions(-) diff --git a/charts/stable/ctfd/Chart.yaml b/charts/stable/ctfd/Chart.yaml index 0c4871d8b8d..a0aac56f1f6 100644 --- a/charts/stable/ctfd/Chart.yaml +++ b/charts/stable/ctfd/Chart.yaml @@ -20,13 +20,6 @@ dependencies: alias: "" tags: [] import-values: [] - - name: mariadb - version: 17.11.7 - repository: oci://oci.trueforge.org/truecharts - condition: mariadb.enabled - alias: "" - tags: [] - import-values: [] - name: redis version: 17.15.9 repository: oci://oci.trueforge.org/truecharts @@ -52,5 +45,4 @@ sources: - https://github.com/CTFd/CTFd - https://github.com/trueforge-org/truecharts/tree/master/charts/stable/ctfd type: application -version: 9.23.9 - +version: 10.0.0 diff --git a/charts/stable/ctfd/values.yaml b/charts/stable/ctfd/values.yaml index 22e55a61f73..2f6416f8131 100644 --- a/charts/stable/ctfd/values.yaml +++ b/charts/stable/ctfd/values.yaml @@ -26,15 +26,6 @@ workload: secretKeyRef: name: ctfd-secrets key: SECRET_KEY - DATABASE_PORT: 3306 - DATABASE_NAME: "{{ .Values.mariadb.mariadbDatabase }}" - DATABASE_USER: "{{ .Values.mariadb.mariadbUsername }}" - DATABASE_HOST: - secretKeyRef: - expandObjectName: false - name: '{{ printf "%s-%s" .Release.Name "mariadbcreds" }}' - key: plainhost - DATABASE_PASSWORD: "{{ .Values.mariadb.password }}" REDIS_URL: secretKeyRef: expandObjectName: false @@ -54,12 +45,11 @@ workload: # majorleaguecyber OAUTH_CLIENT_ID: "" OAUTH_CLIENT_SECRET: "" - -mariadb: - enabled: true - mariadbUsername: ctfd - mariadbDatabase: ctfd - +securityContext: + container: + readOnlyRootFilesystem: false + runAsGroup: 0 + runAsUser: 0 redis: enabled: true redisUsername: default