Skip to content

Commit a36cc77

Browse files
authored
fix: user_auth oathkeeper ingress misconfigured (#58)
1 parent d16aa4f commit a36cc77

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

modules/user_auth/files/oathkeeper-values.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ ingress:
7272
hosts: # Filled by user_auth.tf
7373
- paths: ["/"]
7474
tls: # Filled by user_auth.tf
75-
- secretName: oathkeeper-proxy-tls-secret
75+
-
7676

7777
api:
7878
# En-/Disable the api ingress.

modules/user_auth/main.tf

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,17 @@ locals {
9292

9393
oathkeeper_values_override = {
9494
ingress = {
95+
# https://github.com/ory/k8s/blob/master/helm/charts/oathkeeper/templates/ingress-proxy.yaml
9596
proxy = {
96-
hosts = [var.backend_service_domain]
97-
tls = {
98-
"0" = {
99-
host = [var.backend_service_domain]
100-
}
101-
}
97+
hosts = [{
98+
host = var.backend_service_domain
99+
paths = ["/"]
100+
}]
101+
102+
tls = [{
103+
hosts = [var.backend_service_domain]
104+
secretName = "oathkeeper-proxy-tls-secret"
105+
}]
102106

103107
annotations = {
104108
"nginx.ingress.kubernetes.io/cors-allow-origin" : "https://${var.frontend_service_domain}"

0 commit comments

Comments
 (0)