zed/crates/collab/migrations_llm
Marshall Bowers b4c22cc861
collab: Add ability to revoke LLM service access tokens (#16143)
This PR adds the ability to revoke access tokens for the LLM service.

There is a new `revoked_access_tokens` table that contains the
identifiers (`jti`) of revoked access tokens.

To revoke an access token, insert a record into this table:

```sql
insert into revoked_access_tokens (jti) values ('1e887b9e-37f5-49e8-8feb-3274e5a86b67');
```

We now attach the `jti` as `authn.jti` to the tracing spans so that we
can associate an access token with a given request to the LLM service.

Release Notes:

- N/A
2024-08-12 21:47:05 -04:00
..
20240806182921_create_providers_and_models.sql Apply rate limits in LLM service (#15997) 2024-08-08 15:46:33 -07:00
20240806213401_create_usages.sql Apply rate limits in LLM service (#15997) 2024-08-08 15:46:33 -07:00
20240809130000_change_rate_limit_columns_to_bigint.sql Larger rate limit integers (#16047) 2024-08-09 14:07:49 -07:00
20240809160000_add_pricing_columns_to_models.sql Capture telemetry data on per-user monthly LLM spending (#16050) 2024-08-09 16:38:37 -07:00
20240812184444_add_is_staff_to_usages.sql collab: Use a separate Anthropic API key for Zed staff (#16128) 2024-08-12 15:20:34 -04:00
20240812225346_create_lifetime_usages.sql Track lifetime spending for each user and model (#16137) 2024-08-12 20:15:26 -04:00
20240813002237_add_revoked_access_tokens_table.sql collab: Add ability to revoke LLM service access tokens (#16143) 2024-08-12 21:47:05 -04:00