Skip to content

Commit b4bc12f

Browse files
authored
fix(mcp): add Ingress route for OAuth callback to reach web server (onyx-dot-app#10074)
1 parent 9af9148 commit b4bc12f

2 files changed

Lines changed: 31 additions & 1 deletion

File tree

deployment/helm/charts/onyx/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ home: https://www.onyx.app/
55
sources:
66
- "https://github.com/onyx-dot-app/onyx"
77
type: application
8-
version: 0.4.43
8+
version: 0.4.44
99
appVersion: latest
1010
annotations:
1111
category: Productivity
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{{- if and .Values.ingress.enabled .Values.mcpServer.enabled -}}
2+
apiVersion: networking.k8s.io/v1
3+
kind: Ingress
4+
metadata:
5+
name: {{ include "onyx.fullname" . }}-ingress-mcp-oauth-callback
6+
annotations:
7+
{{- if not .Values.ingress.className }}
8+
kubernetes.io/ingress.class: nginx
9+
{{- end }}
10+
cert-manager.io/cluster-issuer: {{ include "onyx.fullname" . }}-letsencrypt
11+
spec:
12+
{{- if .Values.ingress.className }}
13+
ingressClassName: {{ .Values.ingress.className }}
14+
{{- end }}
15+
rules:
16+
- host: {{ .Values.ingress.api.host }}
17+
http:
18+
paths:
19+
- path: /mcp/oauth/callback
20+
pathType: Exact
21+
backend:
22+
service:
23+
name: {{ include "onyx.fullname" . }}-webserver
24+
port:
25+
number: {{ .Values.webserver.service.servicePort }}
26+
tls:
27+
- hosts:
28+
- {{ .Values.ingress.api.host }}
29+
secretName: {{ include "onyx.fullname" . }}-ingress-mcp-oauth-callback-tls
30+
{{- end }}

0 commit comments

Comments
 (0)