allow generating jwt key at startup

This commit is contained in:
Robin Appelman 2026-11-04 15:08:02 +01:00
commit 44ed58f9d8
Signed by: robin
SSH key fingerprint: SHA256:kifqgrqnut7q1YUIrI0AdMNC23qiKAS/T9uGFmIYvbE
6 changed files with 369 additions and 67 deletions

View file

@ -70,6 +70,10 @@ pub enum JwtError {
Load(#[from] SecretError),
#[error("Error loading JWT secret: {0}")]
DecodeKey(#[from] jsonwebtoken::errors::Error),
#[error("Error generating RSA key")]
GenerateKey(#[from] rsa::Error),
#[error("Error encoding generated RSA key")]
EncodeKey(#[from] rsa::pkcs8::Error),
}
#[derive(Debug, Error)]