@@ -339,14 +339,15 @@ pub async fn create_certificate(
339339 let now = Utc :: now ( ) ;
340340 let public_signing_key = PublicSigningKey {
341341 kid : cert. kid . clone ( ) ,
342- public_key : public_key_base64. clone ( ) ,
343- client_id,
344- cert_id : cert. id ,
342+ public_key : public_key_base64. clone ( ) . into ( ) ,
343+ client_id : client_id . into ( ) ,
344+ cert_id : cert. id . into ( ) ,
345345 created_at : now,
346346 valid_from : now,
347347 valid_until : None ,
348348 active : true ,
349349 revoked_at : None ,
350+ revocation_reason : None ,
350351 } ;
351352
352353 // org_id maps directly to namespace_id in Ledger
@@ -361,7 +362,7 @@ pub async fn create_certificate(
361362
362363 // Time the Ledger write operation for metrics
363364 let ledger_start = std:: time:: Instant :: now ( ) ;
364- if let Err ( e) = signing_key_store. create_key ( namespace_id, & public_signing_key) . await {
365+ if let Err ( e) = signing_key_store. create_key ( namespace_id. into ( ) , & public_signing_key) . await {
365366 tracing:: error!(
366367 error = %e,
367368 kid = %cert. kid,
@@ -568,7 +569,7 @@ pub async fn revoke_certificate(
568569 // Time the Ledger revoke operation for metrics
569570 let ledger_start = std:: time:: Instant :: now ( ) ;
570571 if let Err ( e) = signing_key_store
571- . revoke_key ( namespace_id, & cert. kid , Some ( "Certificate revoked by user" ) )
572+ . revoke_key ( namespace_id. into ( ) , & cert. kid , Some ( "Certificate revoked by user" ) )
572573 . await
573574 {
574575 tracing:: error!(
@@ -758,14 +759,15 @@ pub async fn rotate_certificate(
758759 // Write public key to Ledger with valid_from in the future
759760 let public_signing_key = PublicSigningKey {
760761 kid : new_cert. kid . clone ( ) ,
761- public_key : public_key_base64. clone ( ) ,
762- client_id,
763- cert_id : new_cert. id ,
762+ public_key : public_key_base64. clone ( ) . into ( ) ,
763+ client_id : client_id . into ( ) ,
764+ cert_id : new_cert. id . into ( ) ,
764765 created_at : now,
765766 valid_from,
766767 valid_until : None ,
767768 active : true ,
768769 revoked_at : None ,
770+ revocation_reason : None ,
769771 } ;
770772
771773 // org_id maps directly to namespace_id in Ledger
@@ -781,7 +783,7 @@ pub async fn rotate_certificate(
781783
782784 // Time the Ledger write operation for metrics
783785 let ledger_start = std:: time:: Instant :: now ( ) ;
784- if let Err ( e) = signing_key_store. create_key ( namespace_id, & public_signing_key) . await {
786+ if let Err ( e) = signing_key_store. create_key ( namespace_id. into ( ) , & public_signing_key) . await {
785787 tracing:: error!(
786788 error = %e,
787789 kid = %new_cert. kid,
0 commit comments