llama-stack-mirror/llama_stack/apis
ehhuang 21bae296f2
feat(auth): API access control (#2822)
# What does this PR do?
- Added ability to specify `required_scope` when declaring an API. This
is part of the `@webmethod` decorator.
- If auth is enabled, a user can access an API only if
`user.attributes['scope']` includes the `required_scope`
- We add `required_scope='telemetry.read'` to the telemetry read APIs.

## Test Plan
CI with added tests

1. Enable server.auth with github token
2. Observe `client.telemetry.query_traces()` returns 403
2025-07-24 15:30:48 -07:00
..
agents feat: Add webmethod for deleting openai responses (#2160) 2025-06-30 11:28:02 +02:00
batch_inference chore: remove nested imports (#2515) 2025-06-26 08:01:05 +05:30
benchmarks chore: remove nested imports (#2515) 2025-06-26 08:01:05 +05:30
common chore(api): add mypy coverage to apis (#2648) 2025-07-09 12:55:16 +02:00
datasetio chore: remove nested imports (#2515) 2025-06-26 08:01:05 +05:30
datasets fix: finish conversion to StrEnum (#2514) 2025-06-26 08:01:26 +05:30
eval chore: remove nested imports (#2515) 2025-06-26 08:01:05 +05:30
files fix: finish conversion to StrEnum (#2514) 2025-06-26 08:01:26 +05:30
inference feat(registry): make the Stack query providers for model listing (#2862) 2025-07-24 10:39:53 -07:00
inspect chore: remove nested imports (#2515) 2025-06-26 08:01:05 +05:30
models chore: internal change, make Model.provider_model_id non-optional (#2690) 2025-07-17 08:26:57 -07:00
post_training fix: DPOAlignmentConfig schema to use correct DPO parameters (#2804) 2025-07-18 11:56:00 -07:00
providers chore: remove nested imports (#2515) 2025-06-26 08:01:05 +05:30
safety chore: remove nested imports (#2515) 2025-06-26 08:01:05 +05:30
scoring chore: remove nested imports (#2515) 2025-06-26 08:01:05 +05:30
scoring_functions chore: remove nested imports (#2515) 2025-06-26 08:01:05 +05:30
shields chore: remove nested imports (#2515) 2025-06-26 08:01:05 +05:30
synthetic_data_generation chore: remove nested imports (#2515) 2025-06-26 08:01:05 +05:30
telemetry feat(auth): API access control (#2822) 2025-07-24 15:30:48 -07:00
tools fix: search mode validation for rag query (#2857) 2025-07-23 11:25:12 -07:00
vector_dbs fix(vectordb): VectorDBInput has no provider_id (#2830) 2025-07-21 14:03:40 +02:00
vector_io chore: Making name optional in openai_create_vector_store (#2858) 2025-07-22 13:31:31 -04:00
__init__.py API Updates (#73) 2024-09-17 19:51:35 -07:00
datatypes.py feat: Bring Your Own API (BYOA) (#2228) 2025-07-24 13:41:14 -07:00
resource.py feat: drop python 3.10 support (#2469) 2025-06-19 12:07:14 +05:30
version.py llama-stack version alpha -> v1 2025-01-15 05:58:09 -08:00