feat: update verification key

This commit is contained in:
2024-11-22 23:45:30 +08:00
parent 87cba2be57
commit aff9359172

View File

@@ -71,7 +71,7 @@ pub async fn inner_init_request(init_request: InitRequest) -> XResult<(StatusCod
let key = Key { let key = Key {
name: db::DEFAULT_MASTER_KEY_VERIFICATION_KEY.to_string(), name: db::DEFAULT_MASTER_KEY_VERIFICATION_KEY.to_string(),
encrypted_key: jose::serialize_jwe_aes("LOCAL-MINI-KMS:MAGIC-VERIFICATION-KEY".as_bytes(), &clear_master_key)?, encrypted_key: jose::serialize_jwe_aes("LOCAL-MINI-KMS:MAGIC-VERIFICATION-KEY".as_bytes(), &clear_master_key)?,
comment: None, comment: Some("local-mini-kms re-init verification".to_string()),
}; };
db::insert_key(&conn, &key)?; db::insert_key(&conn, &key)?;
} }