Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip tls config when passthrough is enabled #429

Merged
merged 3 commits into from
Dec 2, 2024
Merged

Skip tls config when passthrough is enabled #429

merged 3 commits into from
Dec 2, 2024

Conversation

IbraAoad
Copy link
Contributor

@IbraAoad IbraAoad commented Nov 28, 2024

Issue

Fixes #425

Solution

Skip the generation of tls dynamic config in traffic when passthrough is set

Context

When tls.passthrough: true is set for a route, Traefik forwards the raw TLS traffic directly to the backend service without terminating the TLS connection.
This means Traefik doesn't need to handle certificates, nor does it need additional TLS configuration

Testing Instructions

1- juju deploy traefik-k8s
2- juju deploy wazuh-server-operator
3- juju relate traefik-k8s wazuh-server-operator
4- Fetch traefik's dynamic config and validate no tls entry is created and main entry has tls.passthrough: true

@IbraAoad IbraAoad marked this pull request as ready for review November 28, 2024 14:18
@IbraAoad IbraAoad requested a review from a team as a code owner November 28, 2024 14:18
Copy link
Contributor

@ca-scribner ca-scribner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The solution here fixes #425, but I lack context to know if it is an appropriate solution or too narrow. See the comments in the review for more details. We can discuss there or offline to sort this out

src/charm.py Outdated Show resolved Hide resolved
src/charm.py Show resolved Hide resolved
src/charm.py Show resolved Hide resolved
Copy link
Contributor

@ca-scribner ca-scribner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, with the discussed complexities to be broken into a new issue

@IbraAoad IbraAoad merged commit 19ca18a into main Dec 2, 2024
14 checks passed
@IbraAoad IbraAoad deleted the OPENG-3035 branch December 2, 2024 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Skip tls config when passthrough is enabled
3 participants