ZIm/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 Fix .env.toml paths (#15645) 2024-08-01 15:43:29 -04:00
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 remoting: Allow Add/Remove remote folder (#14532) 2024-07-16 12:01:59 -06:00
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 Introduce a separate backend service for LLM calls (#15831) 2024-08-05 20:26:21 -04:00
completion.rs Supermaven (#10788) 2024-05-03 12:50:42 -07:00
db.rs collab: Setup database for LLM service (#15882) 2024-08-06 17:18:08 -04:00
env.rs Fix .env.toml paths (#15645) 2024-08-01 15:43:29 -04:00
errors.rs Remove more unused code related to GitHub auth and errors 2022-04-21 08:57:49 -06:00
executor.rs Remove 2 suffix for collab, rope, settings, menu 2024-01-03 12:29:16 -08:00
lib.rs collab: Use a separate Anthropic API key for Zed staff (#16128) 2024-08-12 15:20:34 -04:00
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 collab: Remove unused parameter to run_database_migrations (#15883) 2024-08-06 17:31:52 -04:00
rate_limiter.rs Show rate limit notices (#15515) 2024-07-31 12:05:19 -07:00
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 Add the ability to edit remote directories over SSH (#14530) 2024-07-19 10:27:26 -07:00