**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>
418 lines
16 KiB
YAML
418 lines
16 KiB
YAML
# Include{groups}
|
|
portals:
|
|
open:
|
|
# Include{portalLink}
|
|
path: "$kubernetes-resource_configmap_tcportal-open_path"
|
|
questions:
|
|
# Include{global}
|
|
# Include{workload}
|
|
# Include{workloadDeployment}
|
|
|
|
# Include{replicas1}
|
|
# Include{podSpec}
|
|
# Include{containerMain}
|
|
# Include{containerBasic}
|
|
# Include{containerAdvanced}
|
|
|
|
# Include{containerConfig}
|
|
# Include{podOptions}
|
|
- variable: expertIngressClass
|
|
label: Expert Mode
|
|
group: App Configuration
|
|
description: |
|
|
Expert Mode contains settings like: </br>
|
|
- IngressClass </br>
|
|
schema:
|
|
type: boolean
|
|
default: false
|
|
show_subquestions_if: true
|
|
subquestions:
|
|
- variable: ingressClass
|
|
label: "ingressClass"
|
|
schema:
|
|
additional_attrs: true
|
|
type: dict
|
|
attrs:
|
|
- variable: enabled
|
|
label: "Enable"
|
|
description: "When enabled, ingressClass will match the entered name of this app"
|
|
schema:
|
|
type: boolean
|
|
default: false
|
|
- variable: isDefaultClass
|
|
label: "isDefaultClass"
|
|
schema:
|
|
type: boolean
|
|
show_if: [["enabled", "=", true]]
|
|
default: false
|
|
- variable: logs
|
|
label: "Logs"
|
|
group: "App Configuration"
|
|
schema:
|
|
additional_attrs: true
|
|
type: dict
|
|
attrs:
|
|
- variable: general
|
|
label: "General Logs"
|
|
schema:
|
|
additional_attrs: true
|
|
type: dict
|
|
attrs:
|
|
- variable: level
|
|
label: "Log Level"
|
|
schema:
|
|
type: string
|
|
default: "ERROR"
|
|
enum:
|
|
- value: "INFO"
|
|
description: "Info"
|
|
- value: "WARN"
|
|
description: "Warnings"
|
|
- value: "ERROR"
|
|
description: "Errors"
|
|
- value: "FATAL"
|
|
description: "Fatal Errors"
|
|
- value: "PANIC"
|
|
description: "Panics"
|
|
- value: "DEBUG"
|
|
description: "Debug"
|
|
- variable: format
|
|
label: "General Log format"
|
|
schema:
|
|
type: string
|
|
default: "common"
|
|
enum:
|
|
- value: "common"
|
|
description: "Common Log Format"
|
|
- value: "json"
|
|
description: "JSON"
|
|
- variable: access
|
|
label: "Access Logs"
|
|
schema:
|
|
additional_attrs: true
|
|
type: dict
|
|
attrs:
|
|
- variable: enabled
|
|
label: "Enable"
|
|
schema:
|
|
type: boolean
|
|
default: false
|
|
show_subquestions_if: true
|
|
subquestions:
|
|
- variable: enabledFilters
|
|
label: "Enable Filters"
|
|
schema:
|
|
type: boolean
|
|
default: false
|
|
show_subquestions_if: true
|
|
subquestions:
|
|
- variable: filters
|
|
label: "Filters"
|
|
schema:
|
|
additional_attrs: true
|
|
type: dict
|
|
attrs:
|
|
- variable: statuscodes
|
|
label: "Status codes"
|
|
schema:
|
|
type: string
|
|
default: "200,300-302"
|
|
- variable: retryattempts
|
|
label: "retryattempts"
|
|
schema:
|
|
type: boolean
|
|
default: true
|
|
- variable: minduration
|
|
label: "minduration"
|
|
schema:
|
|
type: string
|
|
default: "10ms"
|
|
- variable: fields
|
|
label: "Fields"
|
|
schema:
|
|
additional_attrs: true
|
|
type: dict
|
|
attrs:
|
|
- variable: general
|
|
label: "General"
|
|
schema:
|
|
additional_attrs: true
|
|
type: dict
|
|
attrs:
|
|
- variable: defaultmode
|
|
label: "Default Mode"
|
|
schema:
|
|
type: string
|
|
default: "keep"
|
|
enum:
|
|
- value: "keep"
|
|
description: "Keep"
|
|
- value: "drop"
|
|
description: "Drop"
|
|
- variable: headers
|
|
label: "Headers"
|
|
schema:
|
|
additional_attrs: true
|
|
type: dict
|
|
attrs:
|
|
- variable: defaultmode
|
|
label: "Default Mode"
|
|
schema:
|
|
type: string
|
|
default: "drop"
|
|
enum:
|
|
- value: "keep"
|
|
description: "Keep"
|
|
- value: "drop"
|
|
description: "Drop"
|
|
- variable: format
|
|
label: "Access Log format"
|
|
schema:
|
|
type: string
|
|
default: "common"
|
|
enum:
|
|
- value: "common"
|
|
description: "Common Log Format"
|
|
- value: "json"
|
|
description: "JSON"
|
|
- variable: middlewares
|
|
label: ""
|
|
group: "Middlewares"
|
|
schema:
|
|
additional_attrs: true
|
|
type: dict
|
|
attrs:
|
|
# Include{basicAuthMiddleware}
|
|
# Include{forwardAuthMiddleware}
|
|
# Include{bufferingMiddleware}
|
|
# Include{customRequestHeadersMiddleware}
|
|
# Include{customResponseHeadersMiddleware}
|
|
# Include{rewriteResponseHeadersMiddleware}
|
|
# Include{customFrameOptionsValueMiddleware}
|
|
# Include{chainMiddleware}
|
|
# Include{redirectSchemeMiddleware}
|
|
# Include{rateLimitMiddleware}
|
|
# Include{redirectRegexMiddleware}
|
|
# Include{stripPrefixRegexMiddleware}
|
|
# Include{ipWhitelistMiddleware}
|
|
# Include{themeParkMiddleware}
|
|
# Include{realIPMiddleware}
|
|
# Include{geoBlockMiddleware}
|
|
# Include{addPrefixMiddleware}
|
|
# Include{modsecurityMiddleware}
|
|
- variable: service
|
|
group: "Networking and Services"
|
|
label: "Configure Service Entrypoint"
|
|
schema:
|
|
additional_attrs: true
|
|
type: dict
|
|
attrs:
|
|
- variable: main
|
|
label: "Main Service"
|
|
description: "The Primary service on which the healthcheck runs, often the webUI"
|
|
schema:
|
|
additional_attrs: true
|
|
type: dict
|
|
attrs:
|
|
# Include{serviceSelectorLoadBalancer}
|
|
# Include{serviceSelectorExtras}
|
|
- variable: main
|
|
label: "Main Entrypoint Configuration"
|
|
schema:
|
|
additional_attrs: true
|
|
type: dict
|
|
attrs:
|
|
- variable: port
|
|
label: "Entrypoints Port"
|
|
schema:
|
|
type: int
|
|
default: 9000
|
|
required: true
|
|
- variable: tcp
|
|
label: "TCP Service"
|
|
description: "The tcp Entrypoint service"
|
|
schema:
|
|
additional_attrs: true
|
|
type: dict
|
|
attrs:
|
|
# Include{serviceSelectorLoadBalancer}
|
|
# Include{serviceSelectorExtras}
|
|
- variable: web
|
|
label: "web Entrypoint Configuration"
|
|
schema:
|
|
additional_attrs: true
|
|
type: dict
|
|
attrs:
|
|
- variable: port
|
|
label: "Entrypoints Port"
|
|
schema:
|
|
type: int
|
|
default: 9080
|
|
required: true
|
|
- variable: advanced
|
|
label: Show Advanced Settings
|
|
schema:
|
|
type: boolean
|
|
default: false
|
|
show_subquestions_if: true
|
|
subquestions:
|
|
- variable: redirectPort
|
|
label: "Redirect to Port"
|
|
schema:
|
|
type: int
|
|
- variable: redirectTo
|
|
label: "Redirect to Entrypoint"
|
|
schema:
|
|
type: string
|
|
default: "websecure"
|
|
# Include{forwardedHeaders}
|
|
# Include{proxyProtocol}
|
|
- variable: websecure
|
|
label: "websecure Entrypoints Configuration"
|
|
schema:
|
|
additional_attrs: true
|
|
type: dict
|
|
attrs:
|
|
- variable: port
|
|
label: "Entrypoints Port"
|
|
schema:
|
|
type: int
|
|
default: 9443
|
|
required: true
|
|
- variable: advanced
|
|
label: Show Advanced Settings
|
|
schema:
|
|
type: boolean
|
|
default: false
|
|
show_subquestions_if: true
|
|
subquestions:
|
|
- variable: redirectPort
|
|
label: "Redirect to Port"
|
|
schema:
|
|
type: int
|
|
- variable: redirectTo
|
|
label: "Redirect to Entrypoint"
|
|
schema:
|
|
type: string
|
|
# Include{forwardedHeaders}
|
|
# Include{proxyProtocol}
|
|
- variable: tls
|
|
label: "websecure Entrypoints Configuration"
|
|
schema:
|
|
additional_attrs: true
|
|
type: dict
|
|
hidden: true
|
|
attrs:
|
|
- variable: enabled
|
|
label: "Enabled"
|
|
schema:
|
|
type: boolean
|
|
default: true
|
|
hidden: true
|
|
- variable: portsList
|
|
label: "Additional TCP Entrypoints"
|
|
schema:
|
|
type: list
|
|
default: []
|
|
items:
|
|
- variable: portsListEntry
|
|
label: "Custom Entrypoints"
|
|
schema:
|
|
additional_attrs: true
|
|
type: dict
|
|
attrs:
|
|
- variable: enabled
|
|
label: "Enable the port"
|
|
schema:
|
|
type: boolean
|
|
default: true
|
|
hidden: true
|
|
- variable: name
|
|
label: "Entrypoints Name"
|
|
schema:
|
|
type: string
|
|
default: ""
|
|
- variable: protocol
|
|
label: "Entrypoints Type"
|
|
schema:
|
|
type: string
|
|
default: "tcp"
|
|
enum:
|
|
- value: http
|
|
description: "HTTP"
|
|
- value: "https"
|
|
description: "HTTPS"
|
|
- value: tcp
|
|
description: "TCP"
|
|
- variable: port
|
|
label: "Port"
|
|
description: "This port exposes the container port on the service"
|
|
schema:
|
|
type: int
|
|
required: true
|
|
- variable: tls
|
|
label: "websecure Entrypoints Configuration"
|
|
schema:
|
|
additional_attrs: true
|
|
type: dict
|
|
attrs:
|
|
- variable: enabled
|
|
label: "Enabled"
|
|
schema:
|
|
type: boolean
|
|
default: true
|
|
- variable: redirectPort
|
|
label: "Redirect to Port"
|
|
schema:
|
|
type: int
|
|
- variable: redirectTo
|
|
label: "Redirect to Entrypoint"
|
|
schema:
|
|
type: string
|
|
# Include{forwardedHeaders}
|
|
# Include{proxyProtocol}
|
|
# Include{ingressRoot}
|
|
- variable: main
|
|
label: "Main Ingress"
|
|
schema:
|
|
additional_attrs: true
|
|
type: dict
|
|
attrs:
|
|
# Include{ingressDefault}
|
|
# Include{ingressTLS}
|
|
# Include{ingressTraefik}
|
|
# Include{ingressAdvanced}
|
|
# Include{ingressList}
|
|
# Include{securityContextRoot}
|
|
- variable: runAsUser
|
|
label: "runAsUser"
|
|
description: "The UserID of the user running the application"
|
|
schema:
|
|
type: int
|
|
default: 568
|
|
- variable: runAsGroup
|
|
label: "runAsGroup"
|
|
description: "The groupID of the user running the application"
|
|
schema:
|
|
type: int
|
|
default: 568
|
|
# Include{securityContextContainer}
|
|
# Include{securityContextAdvanced}
|
|
# Include{securityContextPod}
|
|
- variable: fsGroup
|
|
label: "fsGroup"
|
|
description: "The group that should own ALL storage."
|
|
schema:
|
|
type: int
|
|
default: 568
|
|
|
|
# Include{resources}
|
|
# Include{metrics}
|
|
# Include{prometheusRule}
|
|
# Include{advanced}
|
|
# Include{addons}
|
|
# Include{codeserver}
|
|
# Include{netshoot}
|
|
# Include{vpn}
|
|
# Include{documentation}
|