llama-stack-mirror/tests/unit/server
Sébastien Han ee1f06417d
feat: Add Kubernetes authentication
This commit adds a new authentication system to the Llama Stack server
with support for Kubernetes and custom authentication providers. Key
changes include:

- Implemented KubernetesAuthProvider for validating Kubernetes service
  account tokens
- Implemented CustomAuthProvider for validating tokens against external
  endpoints - this is the same code that was already present.
- Added test for Kubernetes
- Updated server configuration to support authentication settings
- Added documentation for authentication configuration and usage

The authentication system supports:
- Bearer token validation
- Kubernetes service account token validation
- Custom authentication endpoints

Signed-off-by: Sébastien Han <seb@redhat.com>
2025-04-28 15:05:52 +02:00
..
test_access_control.py feat(server): add attribute based access control for resources (#1703) 2025-03-19 21:28:52 -07:00
test_auth.py feat: Add Kubernetes authentication 2025-04-28 15:05:52 +02:00
test_replace_env_vars.py refactor: tests/unittests -> tests/unit; tests/api -> tests/integration 2025-03-04 09:57:00 -08:00
test_resolver.py test: first unit test for resolver (#1475) 2025-03-07 10:20:51 -08:00
test_sse.py fix: Additional streaming error handling (#2007) 2025-04-24 17:01:45 -07:00