(backend) add a service generating cached RS256 JWT tokens

We want to generate jwt token using the RS256 algotrithm. This token
will be used for internal call with the yhub service.
This commit is contained in:
Manuel Raynaud
2026-09-01 15:15:34 +02:00
committed by Anthony LC
parent 51b739c9a7
commit 7c4a260a15
7 changed files with 374 additions and 3 deletions
+2
View File
@@ -81,6 +81,8 @@ These are the environment variables you can set for the `impress-backend` contai
| FRONTEND_JS_URL | To add a external js file to the app | |
| FRONTEND_HOMEPAGE_FEATURE_ENABLED | Frontend feature flag to display the homepage | false |
| FRONTEND_THEME | Frontend theme to use | |
| JWT_PRIVATE_KEY | PEM encoded RSA private key used to sign the JWT tokens (RS256). Can be read from a file with JWT_PRIVATE_KEY_FILE | |
| JWT_TOKEN_LIFETIME | Lifetime in seconds of the generated JWT tokens. Also used as the cache timeout of these tokens | 3600 |
| LANGUAGE_CODE | Default language | en-us |
| LANGFUSE_SECRET_KEY | The Langfuse secret key used by the sdk | None |
| LANGFUSE_PUBLIC_KEY | The Langfuse public key used by the sdk | None |