TrueChartsClone/templates/questions/traefik
sdimovv 24d91509d6
feat(traefik): Add traefik-plugin-rewrite-headers (#13961)
**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  # <!--(issue)-->

Adding a simple plugin that allows for editing/rewriting response
headers. It can be used to rewrite any response header. In the chart
values, I have given a (perhaps not very exciting) example with the
`Location` header.

**⚙️ Type of change**

- [X] ⚙️ Feature/App addition
- [ ] 🪛 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
-->

Tested with native helm - deployed Traefik, added an ingress in front of
a simple custom-app that returns an HTTP301 on every request. With this
plugin, I was able to rewrite the Location (or any other) header in the
returned response.

**📃 Notes:**
<!-- Please enter any other relevant information here -->
Plugin:
https://plugins.traefik.io/plugins/628c9eb5108ecc83915d7758/rewrite-header
Corresponding container changes PR:
https://github.com/truecharts/containers/pull/33731

**✔️ Checklist:**

- [X] ⚖️ My code follows the style guidelines of this project
- [X] 👀 I have performed a self-review of my own code
- [X] #️⃣ 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
- [X] 🧪 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.

- [X] 🪞 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: sdimovv <36302090+sdimovv@users.noreply.github.com>
2023-10-27 21:15:37 +03:00
..
addPrefixMiddleware.yaml
basicAuthMiddleware.yaml
bufferingMiddleware.yaml feat(traefik): add some middlewares (#11058) 2023-07-31 11:16:47 +02:00
chainMiddleware.yaml
customFrameOptionsValueMiddleware.yaml feat(traefik): add some middlewares (#11058) 2023-07-31 11:16:47 +02:00
customRequestHeadersMiddleware.yaml fix(traefik): remove required from header value 2023-10-03 23:17:35 +03:00
customResponseHeadersMiddleware.yaml fix(traefik): remove required from header value 2023-10-03 23:17:35 +03:00
forwardAuthMiddleware.yaml
forwardedHeaders.yaml
geoBlockMiddleware.yaml
ipWhitelistMiddleware.yaml
modsecurityMiddleware.yaml feat(traefik): BREAKING CHANGE register traefik and use traefik namespace for middleware instead of tc-system (#11086) 2023-07-31 12:32:04 +02:00
proxyProtocol.yaml
rateLimitMiddleware.yaml
realIPMiddleware.yaml
redirectRegexMiddleware.yaml
redirectSchemeMiddleware.yaml
rewriteResponseHeadersMiddleware.yaml feat(traefik): Add traefik-plugin-rewrite-headers (#13961) 2023-10-27 21:15:37 +03:00
stripPrefixRegexMiddleware.yaml
themeParkMiddleware.yaml