TrueChartsClone/charts/enterprise/traefik/templates/middlewares/tc-headers.yaml

58 lines
1.4 KiB
YAML
Raw Normal View History

---
refactor(traefik): BREAKING CHANGE move traefik to new CRD's and move config to tc-system (#9116) **Description** Traefik couldn't be updated due to CRD namespace chagnes. This PR changes the CRD namespace to `traefik.io` as required, so we can actually update traefik. Besides this, it moves the portalhook from either `default` or `tc-*ingressclassname*` to `tc-system` (our project config storage namespace). In case of ingressclass use, `portalhook` will get a suffix instead the reason behind this is, is the fact non-SCALE users currently cannot use ingressclass at all and neither can platforms without a `default` namespace. This will require all apps to be updated accordingly, as the name and location of the middleware also changes to `tc-system`, including a suffix with the ingressClass name where needed. This move of portalhook, also allows us to fix the "loadbalancer port suffixed to ingress" bug on SCALE portal button. **⚙️ Type of change** - [ ] ⚙️ Feature/App addition - [ ] 🪛 Bugfix - [x] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [x] 🔃 Refactor of current code **🧪 How Has This Been Tested?** <!-- Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration --> **📃 Notes:** To be clear: IngressClass is still not 100% supported. But that doesn't mean we should make it inherently problematic. The "Breaking" portion of this PR, is just the fact all charts/apps have to be updated accordingly or otherwise would not function with ingress anymore. It does not require manual intervention byond updating, hoever. **✔️ Checklist:** - [ ] ⚖️ My code follows the style guidelines of this project - [ ] 👀 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 - [ ] ⬆️ 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._
2023-05-24 07:54:40 +00:00
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
fix(traefik): fix context on middlewares (#9174) **Description** <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. --> ⚒️ Fixes #9170 **⚙️ 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?** <!-- Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration --> **📃 Notes:** <!-- Please enter any other relevant information here --> **✔️ 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 - [x] ⚠️ 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._
2023-05-26 07:32:55 +00:00
name: {{ ternary (printf "%v-%v" $.Release.Name "tc-opencors-headers") "tc-opencors-headers" $.Values.ingressClass.enabled }}
refactor(traefik): BREAKING CHANGE move traefik to new CRD's and move config to tc-system (#9116) **Description** Traefik couldn't be updated due to CRD namespace chagnes. This PR changes the CRD namespace to `traefik.io` as required, so we can actually update traefik. Besides this, it moves the portalhook from either `default` or `tc-*ingressclassname*` to `tc-system` (our project config storage namespace). In case of ingressclass use, `portalhook` will get a suffix instead the reason behind this is, is the fact non-SCALE users currently cannot use ingressclass at all and neither can platforms without a `default` namespace. This will require all apps to be updated accordingly, as the name and location of the middleware also changes to `tc-system`, including a suffix with the ingressClass name where needed. This move of portalhook, also allows us to fix the "loadbalancer port suffixed to ingress" bug on SCALE portal button. **⚙️ Type of change** - [ ] ⚙️ Feature/App addition - [ ] 🪛 Bugfix - [x] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [x] 🔃 Refactor of current code **🧪 How Has This Been Tested?** <!-- Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration --> **📃 Notes:** To be clear: IngressClass is still not 100% supported. But that doesn't mean we should make it inherently problematic. The "Breaking" portion of this PR, is just the fact all charts/apps have to be updated accordingly or otherwise would not function with ingress anymore. It does not require manual intervention byond updating, hoever. **✔️ Checklist:** - [ ] ⚖️ My code follows the style guidelines of this project - [ ] 👀 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 - [ ] ⬆️ 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._
2023-05-24 07:54:40 +00:00
namespace: tc-system
spec:
headers:
accessControlAllowHeaders:
- '*'
accessControlAllowMethods:
- GET
- OPTIONS
- HEAD
- PUT
- POST
accessControlAllowOriginList:
- '*'
accessControlMaxAge: 100
browserXssFilter: true
contentTypeNosniff: true
customRequestHeaders:
X-Forwarded-Proto: https
customResponseHeaders:
server: ""
forceSTSHeader: true
referrerPolicy: same-origin
sslForceHost: true
sslRedirect: true
stsSeconds: 63072000
---
refactor(traefik): BREAKING CHANGE move traefik to new CRD's and move config to tc-system (#9116) **Description** Traefik couldn't be updated due to CRD namespace chagnes. This PR changes the CRD namespace to `traefik.io` as required, so we can actually update traefik. Besides this, it moves the portalhook from either `default` or `tc-*ingressclassname*` to `tc-system` (our project config storage namespace). In case of ingressclass use, `portalhook` will get a suffix instead the reason behind this is, is the fact non-SCALE users currently cannot use ingressclass at all and neither can platforms without a `default` namespace. This will require all apps to be updated accordingly, as the name and location of the middleware also changes to `tc-system`, including a suffix with the ingressClass name where needed. This move of portalhook, also allows us to fix the "loadbalancer port suffixed to ingress" bug on SCALE portal button. **⚙️ Type of change** - [ ] ⚙️ Feature/App addition - [ ] 🪛 Bugfix - [x] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [x] 🔃 Refactor of current code **🧪 How Has This Been Tested?** <!-- Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration --> **📃 Notes:** To be clear: IngressClass is still not 100% supported. But that doesn't mean we should make it inherently problematic. The "Breaking" portion of this PR, is just the fact all charts/apps have to be updated accordingly or otherwise would not function with ingress anymore. It does not require manual intervention byond updating, hoever. **✔️ Checklist:** - [ ] ⚖️ My code follows the style guidelines of this project - [ ] 👀 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 - [ ] ⬆️ 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._
2023-05-24 07:54:40 +00:00
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
fix(traefik): fix context on middlewares (#9174) **Description** <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. --> ⚒️ Fixes #9170 **⚙️ 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?** <!-- Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration --> **📃 Notes:** <!-- Please enter any other relevant information here --> **✔️ 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 - [x] ⚠️ 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._
2023-05-26 07:32:55 +00:00
name: {{ ternary (printf "%v-%v" $.Release.Name "tc-closedcors-headers") "tc-closedcors-headers" $.Values.ingressClass.enabled }}
refactor(traefik): BREAKING CHANGE move traefik to new CRD's and move config to tc-system (#9116) **Description** Traefik couldn't be updated due to CRD namespace chagnes. This PR changes the CRD namespace to `traefik.io` as required, so we can actually update traefik. Besides this, it moves the portalhook from either `default` or `tc-*ingressclassname*` to `tc-system` (our project config storage namespace). In case of ingressclass use, `portalhook` will get a suffix instead the reason behind this is, is the fact non-SCALE users currently cannot use ingressclass at all and neither can platforms without a `default` namespace. This will require all apps to be updated accordingly, as the name and location of the middleware also changes to `tc-system`, including a suffix with the ingressClass name where needed. This move of portalhook, also allows us to fix the "loadbalancer port suffixed to ingress" bug on SCALE portal button. **⚙️ Type of change** - [ ] ⚙️ Feature/App addition - [ ] 🪛 Bugfix - [x] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [x] 🔃 Refactor of current code **🧪 How Has This Been Tested?** <!-- Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration --> **📃 Notes:** To be clear: IngressClass is still not 100% supported. But that doesn't mean we should make it inherently problematic. The "Breaking" portion of this PR, is just the fact all charts/apps have to be updated accordingly or otherwise would not function with ingress anymore. It does not require manual intervention byond updating, hoever. **✔️ Checklist:** - [ ] ⚖️ My code follows the style guidelines of this project - [ ] 👀 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 - [ ] ⬆️ 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._
2023-05-24 07:54:40 +00:00
namespace: tc-system
spec:
headers:
accessControlAllowMethods:
- GET
- OPTIONS
- HEAD
- PUT
accessControlMaxAge: 100
sslRedirect: true
stsSeconds: 63072000
# stsIncludeSubdomains: false
# stsPreload: false
forceSTSHeader: true
contentTypeNosniff: true
browserXssFilter: true
sslForceHost: true
referrerPolicy: same-origin
customRequestHeaders:
X-Forwarded-Proto: "https"
customResponseHeaders:
server: ''