feat: 透传 AI 入站令牌(默认不启用)

This commit is contained in:
admin
2026-10-09 15:51:57 +08:00
parent 34f2380d8d
commit 9160dd1af7
4 changed files with 30 additions and 0 deletions
+8
View File
@@ -54,6 +54,14 @@ spec:
secretKeyRef:
name: lpt-secrets
key: llm-api-key
# 安全-03:入站令牌。optional 表示 secret 里没有这个 key 时 Pod 仍能启动
# (此时 /ai/* 与 /admin 不校验令牌),加上 key 即可收紧。
- name: LPT_AI_TOKEN
valueFrom:
secretKeyRef:
name: lpt-secrets
key: lpt-ai-token
optional: true
resources:
requests:
cpu: 100m
+7
View File
@@ -48,6 +48,13 @@ spec:
configMapKeyRef:
name: lpt-config
key: LPT_AI-SERVICE_URL
# 安全-03:与 lpt-ai 共用的入站令牌;secret 里没有该 key 时不影响启动
- name: LPT_AI-SERVICE_TOKEN
valueFrom:
secretKeyRef:
name: lpt-secrets
key: lpt-ai-token
optional: true
resources:
requests:
cpu: 250m
+8
View File
@@ -54,6 +54,14 @@ spec:
secretKeyRef:
name: lpt-secrets
key: llm-api-key
# 安全-03:入站令牌。optional 表示 secret 里没有这个 key 时 Pod 仍能启动
# (此时 /ai/* 与 /admin 不校验令牌),加上 key 即可收紧。
- name: LPT_AI_TOKEN
valueFrom:
secretKeyRef:
name: lpt-secrets
key: lpt-ai-token
optional: true
resources:
requests:
cpu: 100m
+7
View File
@@ -48,6 +48,13 @@ spec:
configMapKeyRef:
name: lpt-config
key: LPT_AI-SERVICE_URL
# 安全-03:与 lpt-ai 共用的入站令牌;secret 里没有该 key 时不影响启动
- name: LPT_AI-SERVICE_TOKEN
valueFrom:
secretKeyRef:
name: lpt-secrets
key: lpt-ai-token
optional: true
resources:
requests:
cpu: 250m