Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/langsmith/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ maintainers:
email: ankush@langchain.dev
description: Helm chart to deploy the langsmith application and all services it depends on.
type: application
version: 0.16.0-rc.17
version: 0.16.0-rc.19
appVersion: "0.16.22rc1"
5 changes: 5 additions & 0 deletions charts/langsmith/templates/agent-gateway/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{{- define "agentGatewayEnvVars" -}}
- name: PORT
value: {{ .Values.agentGateway.containerPort | quote }}
# The gateway resolves frontend bearer tokens against the auth service. It
# reads AUTH_ENDPOINT (not LANGSMITH_AUTH_ENDPOINT) and panics at startup if
# it is unset for any authType other than "none".
- name: AUTH_ENDPOINT
value: "http://{{ include "langsmith.fullname" . }}-{{ .Values.platformBackend.name }}.{{ .Values.namespace | default .Release.Namespace }}.svc.{{ .Values.clusterDomain }}:{{ .Values.platformBackend.service.port }}"
{{- if .Values.presidioAnalyzer.enabled }}
- name: PRESIDIO_ANALYZER_URL
value: "http://{{ include "langsmith.fullname" . }}-{{ .Values.presidioAnalyzer.name }}.{{ .Values.namespace | default .Release.Namespace }}.svc.{{ .Values.clusterDomain }}:{{ .Values.presidioAnalyzer.service.port }}"
Expand Down
47 changes: 47 additions & 0 deletions charts/langsmith/tests/agent_gateway_auth_endpoint_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
suite: Agent gateway auth endpoint
templates:
- agent-gateway/deployment.yaml
# Loaded so the Deployment's `langsmith.checksumAnnotations` includes resolve.
- config-map.yaml
- frontend/config-map.yaml
- secrets.yaml
- redis/secrets.yaml
- postgres/secrets.yaml
- clickhouse/secrets.yaml
tests:
- it: sets AUTH_ENDPOINT to the platform-backend service
template: agent-gateway/deployment.yaml
set:
agentGateway.enabled: true
asserts:
- contains:
path: spec.template.spec.containers[0].env
content:
name: AUTH_ENDPOINT
value: "http://RELEASE-NAME-langsmith-platform-backend.NAMESPACE.svc.cluster.local:1986"

- it: sets AUTH_ENDPOINT under oauth authType
template: agent-gateway/deployment.yaml
set:
agentGateway.enabled: true
config.authType: oauth
asserts:
- contains:
path: spec.template.spec.containers[0].env
content:
name: AUTH_ENDPOINT
value: "http://RELEASE-NAME-langsmith-platform-backend.NAMESPACE.svc.cluster.local:1986"

- it: honours a custom platform-backend name, port and clusterDomain
template: agent-gateway/deployment.yaml
set:
agentGateway.enabled: true
clusterDomain: cluster.example
platformBackend.name: pb
platformBackend.service.port: 9999
asserts:
- contains:
path: spec.template.spec.containers[0].env
content:
name: AUTH_ENDPOINT
value: "http://RELEASE-NAME-langsmith-pb.NAMESPACE.svc.cluster.example:9999"
Loading