-
Notifications
You must be signed in to change notification settings - Fork 687
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: inject direct response for sidecar acme-challenge
When the sidecar is running in the cluster and no acme challenge route is found then it will inject one. Previously, it would point the injected route at an existing sidecar cluster. When the cluster route names are larger than 60 characters they are shortened and a new name is passed to envoy but the injected route cluster was being populated by the IR.sidecar_cluster_name which wasn't aware of the truncated cluster name. This would cause diagd to produce invalid envoy configuration for the injected acme challenge route. The route will now be injected with an envoy direct_response with a 404 status code. We return a 404 because in the proper acme flow of the sidecar it is already handled in the AuthService and this matches the existing behavior. Signed-off-by: Lance Austin <[email protected]>
- Loading branch information
Lance Austin
committed
Jul 29, 2022
1 parent
7fa0c7b
commit 9bfc82f
Showing
2 changed files
with
9 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters