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
|
||
|---|---|---|
| .. | ||
| 20240806182921_create_providers_and_models.sql | ||
| 20240806213401_create_usages.sql | ||
| 20240809130000_change_rate_limit_columns_to_bigint.sql | ||
| 20240809160000_add_pricing_columns_to_models.sql | ||
| 20240812184444_add_is_staff_to_usages.sql | ||
| 20240812225346_create_lifetime_usages.sql | ||
| 20240813002237_add_revoked_access_tokens_table.sql | ||