Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 952031b

Browse files
authored
Merge pull request #1622 from pdettori/fix/pin-kubernetes-client-lt36
fix(deps): pin kubernetes<36 to fix RBAC regression
2 parents 775f972 + c4b1c02 commit 952031b

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

kagenti/backend/pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ dependencies = [
1111
"uvicorn[standard]>=0.30.0",
1212
"pydantic>=2.9.0",
1313
"pydantic-settings>=2.5.0",
14-
"kubernetes>=31.0.0",
14+
# kubernetes 36.x has a breaking bug: load_incluster_config() stores the
15+
# bearer token under key 'authorization' but auth_settings() looks for
16+
# 'BearerToken', so the Authorization header is never sent (all calls → 403).
17+
# See: https://github.com/kubernetes-client/python/issues/2582
18+
"kubernetes>=31.0.0,!=36.*",
1519
"httpx>=0.27.0",
1620
"python-jose[cryptography]>=3.3.0",
1721
"python-multipart>=0.0.9",

kagenti/backend/uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)