llama-stack-mirror/.github/workflows
Sébastien Han 79851d93aa
feat: Add Kubernetes authentication (#1778)
# What does this PR do?

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

## Test Plan

Setup a Kube cluster using Kind or Minikube.

Run a server with:

```
server:
  port: 8321
  auth:
    provider_type: kubernetes
    config:
      api_server_url: http://url
      ca_cert_path: path/to/cert (optional)
```

Run:

```
curl -s -L -H "Authorization: Bearer $(kubectl create token my-user)" http://127.0.0.1:8321/v1/providers
```

Or replace "my-user" with your service account.

Signed-off-by: Sébastien Han <seb@redhat.com>
2025-04-28 22:24:58 +02:00
..
changelog.yml ci: pin github actions to hashes (#1776) 2025-04-01 17:09:39 +02:00
gha_workflow_llama_stack_tests.yml chore: fix hash for thollander/actions-comment-pull-request (#1900) 2025-04-09 10:10:07 +02:00
install-script-ci.yml feat: Llama Stack Meta Reference installation script (#1383) 2025-04-28 11:25:59 +02:00
integration-auth-tests.yml feat: Add Kubernetes authentication (#1778) 2025-04-28 22:24:58 +02:00
integration-tests.yml chore: Remove distributions/** from integration, external provider, and unit tests (#2018) 2025-04-24 11:39:31 -04:00
pre-commit.yml chore(github-deps): bump actions/setup-python from 5.5.0 to 5.6.0 (#2038) 2025-04-28 11:46:29 +02:00
providers-build.yml chore(github-deps): bump actions/setup-python from 5.5.0 to 5.6.0 (#2038) 2025-04-28 11:46:29 +02:00
semantic-pr.yml ci: pin github actions to hashes (#1776) 2025-04-01 17:09:39 +02:00
stale_bot.yml ci: pin github actions to hashes (#1776) 2025-04-01 17:09:39 +02:00
test-external-providers.yml chore: Remove distributions/** from integration, external provider, and unit tests (#2018) 2025-04-24 11:39:31 -04:00
tests.yml ci: pin github actions to hashes (#1776) 2025-04-01 17:09:39 +02:00
unit-tests.yml chore(github-deps): bump actions/setup-python from 5.5.0 to 5.6.0 (#2038) 2025-04-28 11:46:29 +02:00
update-readthedocs.yml chore(github-deps): bump actions/setup-python from 5.5.0 to 5.6.0 (#2038) 2025-04-28 11:46:29 +02:00