llama-stack-mirror/docs/source
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
..
advanced_apis docs: Reorganize documentation on the webpage (#2651) 2025-07-15 14:19:35 -07:00
apis feat: Bring Your Own API (BYOA) (#2228) 2025-07-24 13:41:14 -07:00
building_applications docs: Document use cases for Responses and Agents APIs (#2756) 2025-07-24 12:20:04 -04:00
concepts docs: update list of apis (#2697) 2025-07-24 09:50:14 -07:00
contributing chore: create OpenAIMixin for inference providers with an OpenAI-compat API that need to implement openai_* methods (#2835) 2025-07-23 06:49:40 -04:00
deploying chore: update k8s template (#2786) 2025-07-16 15:07:26 -07:00
distributions feat(auth): API access control (#2822) 2025-07-24 15:30:48 -07:00
getting_started chore: Adding demo script and importing it into the docs (#2848) 2025-07-21 22:53:32 -04:00
providers feat(registry): make the Stack query providers for model listing (#2862) 2025-07-24 10:39:53 -07:00
references docs: update outdated llama stack client documentation (#2758) 2025-07-15 11:49:59 -07:00
conf.py docs: Reorganize documentation on the webpage (#2651) 2025-07-15 14:19:35 -07:00
index.md docs: Reorganize documentation on the webpage (#2651) 2025-07-15 14:19:35 -07:00