feat(api): add Kong key-auth for the model API — static API key (ksops-managed model-invoke-apikey) via KongConsumer model-invoker + key-auth plugin on all 5 model routes, OpenAI-SDK compatible (Authorization: Bearer <key>)

This commit is contained in:
Story Crater Bot
2026-08-13 20:28:32 -07:00
parent c52b4acc74
commit a118195b6f
6 changed files with 155 additions and 5 deletions
+5 -5
View File
@@ -66,7 +66,7 @@ metadata:
name: llm-models
namespace: llm-serving
annotations:
konghq.com/plugins: llm-models-list
konghq.com/plugins: llm-models-list,model-key-auth
konghq.com/strip-path: "false"
konghq.com/methods: "GET"
spec:
@@ -110,7 +110,7 @@ metadata:
name: llm-chat-reasoning
namespace: llm-serving
annotations:
konghq.com/plugins: llm-rewrite-reasoning
konghq.com/plugins: llm-rewrite-reasoning,model-key-auth
konghq.com/strip-path: "false"
konghq.com/methods: "POST"
konghq.com/connect-timeout: "10000"
@@ -152,7 +152,7 @@ metadata:
name: llm-chat-ornith
namespace: llm-serving
annotations:
konghq.com/plugins: llm-rewrite-ornith
konghq.com/plugins: llm-rewrite-ornith,model-key-auth
konghq.com/strip-path: "false"
konghq.com/methods: "POST"
konghq.com/connect-timeout: "10000"
@@ -197,7 +197,7 @@ metadata:
name: llm-chat-qwen
namespace: llm-serving
annotations:
konghq.com/plugins: llm-rewrite-qwen
konghq.com/plugins: llm-rewrite-qwen,model-key-auth
konghq.com/strip-path: "false"
konghq.com/methods: "POST"
konghq.com/connect-timeout: "10000"
@@ -267,7 +267,7 @@ metadata:
name: llm-rerank
namespace: llm-serving
annotations:
konghq.com/plugins: llm-rewrite-rerank
konghq.com/plugins: llm-rewrite-rerank,model-key-auth
konghq.com/strip-path: "false"
konghq.com/methods: "POST"
konghq.com/connect-timeout: "10000"