zed/crates/collab/src
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
..
api collab: Restrict usage of the LLM service to accounts older than 30 days (#16133) 2024-08-12 17:27:21 -04:00
bin
db collab: Restrict usage of the LLM service to accounts older than 30 days (#16133) 2024-08-12 17:27:21 -04:00
llm collab: Add ability to revoke LLM service access tokens (#16143) 2024-08-12 21:47:05 -04:00
rpc
tests collab: Restrict usage of the LLM service to accounts older than 30 days (#16133) 2024-08-12 17:27:21 -04:00
api.rs collab: Restrict usage of the LLM service to accounts older than 30 days (#16133) 2024-08-12 17:27:21 -04:00
auth.rs
completion.rs
db.rs
env.rs
errors.rs
executor.rs
lib.rs
llm.rs collab: Add ability to revoke LLM service access tokens (#16143) 2024-08-12 21:47:05 -04:00
main.rs collab: Add ability to revoke LLM service access tokens (#16143) 2024-08-12 21:47:05 -04:00
migrations.rs
rate_limiter.rs
rpc.rs Add feature-flagged access to LLM service (#16136) 2024-08-12 18:13:40 -04:00
seed.rs collab: Restrict usage of the LLM service to accounts older than 30 days (#16133) 2024-08-12 17:27:21 -04:00
tests.rs