From 17bb71bfb3a24f13fbb249d3a1f80243744f9409 Mon Sep 17 00:00:00 2001 From: Xstar97TheNoob <9399967+xstar97@users.noreply.github.com> Date: Tue, 5 Sep 2023 20:39:27 -0400 Subject: [PATCH] fix(anonaddy) fix secret encoding for anonaddy (#12260) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** change encoding to b64enc for secret keys ⚒️ Fixes # **⚙️ Type of change** - [ ] ⚙️ Feature/App addition - [X] 🪛 Bugfix - [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] 🔃 Refactor of current code **🧪 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 corresponding changes to the documentation - [ ] ⚠️ My changes generate no new warnings - [ ] 🧪 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 **➕ App addition** If this PR is an app addition please make sure you have done the following. - [ ] 🪞 I have opened a PR on [truecharts/containers](https://github.com/truecharts/containers) adding the container to TrueCharts mirror repo. - [ ] 🖼️ 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: Xstar97TheNoob <9399967+xstar97@users.noreply.github.com> Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> --- charts/stable/anonaddy/Chart.yaml | 2 +- charts/stable/anonaddy/templates/_secrets.tpl | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/charts/stable/anonaddy/Chart.yaml b/charts/stable/anonaddy/Chart.yaml index b3591ac9040..2ed5616ad07 100644 --- a/charts/stable/anonaddy/Chart.yaml +++ b/charts/stable/anonaddy/Chart.yaml @@ -26,7 +26,7 @@ name: anonaddy sources: - https://github.com/truecharts/charts/tree/master/charts/stable/anonaddy - https://github.com/anonaddy/docker -version: 15.0.1 +version: 15.0.2 annotations: truecharts.org/catagories: | - email diff --git a/charts/stable/anonaddy/templates/_secrets.tpl b/charts/stable/anonaddy/templates/_secrets.tpl index 177368e5f93..6c7999cfae0 100644 --- a/charts/stable/anonaddy/templates/_secrets.tpl +++ b/charts/stable/anonaddy/templates/_secrets.tpl @@ -11,6 +11,9 @@ {{- end }} enabled: true data: - APP_KEY: {{ $appKey }} + # Anonaddy requires APP_KEY to be in base 64 format presented in the container, so this b64enc here is intentional + # https://github.com/anonaddy/docker/blob/master/README.md#app + APP_KEY: {{ $appKey | b64enc }} + # Anonaddy requires ANONADDY_SECRET to be a long string ANONADDY_SECRET: {{ $secretKey }} {{- end -}}