Reach llm-serving with a Keycloak service identity instead of a person's key
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- go, helm, kubernetes
- Lĩnh vực
- authentication, backend-api-design
Hướng nghiên cứu
Start by reading the chart configuration for ai.apiKeySecret and the mem0-pack token-proxy setup described in the issue. Compare native client-credentials support with a token-proxy sidecar, then define the chart values and implementation path without coupling the work to attribution in #90. Done means Tapas can use a Keycloak service identity while the existing static-key configuration still works.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
On the powershift demo cluster, Tapas calls llm-serving with my personal key-manager key. config.ai only takes a static key from ai.apiKeySecret, and the coding agents use it through /api/ai/openai/v1. The only way to get a key that llm-serving accepts was to mint one under my own account and load it into javo/javo-ai. That's fine for a demo. It's the wrong shape for anything that runs longer than one.
Here's what tying the key to a person does:
- Every model call any Tapas user makes is metered as mine, so OpenMeter shows one heavy user instead of a team.
- Which models Tapas can reach depends on my group membership. If I leave
/llm, or someone tidies up my groups, Tapas loses model access, and nothing on the Tapas side explains why. - The key lasts until someone revokes it. Rotating it means a person mints a new one and reloads the Secret by hand.
llm-serving lists team-level shared API keys as a non-goal, so we shouldn't solve this by asking that pack for a service key.
mem0-pack already does this the right way. Its server pod runs a token-proxy sidecar that gets client-credentials tokens from Keycloak for a dedicated client (mem0-model-client). That client's service account sits in /llm, and the proxy calls llm-serving's internal endpoint with short-lived tokens. No person's key is involved, the model access belongs to a client the platform owns, and rotating the credential is a Keycloak operation.
We should give Tapas the same option. In the chart that would look something like this:
ai:
auth:
type: clientCredentials
tokenURL: https://keycloak.<domain>/realms/nebari/protocol/openid-connect/token
existingSecret: tapas-model-client # keys: client-id, client-secret
scope: "" # optional
baseURL: https://llm-internal.<domain>/v1
The static apiKeySecret path stays as it is for clusters that don't have Keycloak in front of llm-serving.
A service identity fixes ownership and lifetime. It doesn't fix attribution: every call would then be metered as the Tapas client instead of as me, which is more honest but still doesn't say which user made the call. That part is #90, with nebari-dev/llm-serving-pack#313 on the metering side and nebari-dev/llm-serving-pack#243 for the key-owner lookup. We should design this issue so it doesn't block those.
Open question: should Tapas fetch and refresh the token itself, or should the chart run a token-proxy sidecar the way mem0-pack does? The sidecar reuses code that already works and keeps the gateway unchanged. Native support puts the auth in one place and removes a container from the pod.
- Ngôn ngữ chính
- Go
- Star
- 5
- Fork
- 0
- Merge trung bình
- 21 giờ 13 phút
- Pull request đã merge (30 ngày)
- 53
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nebari-dev/tapas
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
nebari-dev/tapas#124 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
nebari-dev/tapas#121 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
nebari-dev/tapas#32 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Suggest saving a memory when a chat message holds something worth rememberingCó thể đã có người làm @jbouder đã nhận hôm nay. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
nebari-dev/tapas#137 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 54/100
nebari-dev/tapas#136 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của nebari-dev/tapas
Issue tương tự
-
--auto-tier: hashing, dedup, resume validation and DVC/git reads still update atime on LinuxĐang mởarea: pipeline priority: low type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
prime-radiant-inc/evener#8335 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
-
ui: OnTextKey on SearchField never sees keys (it does not reach the inner input)Có thể đã có người làm @szluyu99 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100