diff --git a/src/meta/service/src/notification_service.rs b/src/meta/service/src/notification_service.rs index b2b78ba28f19e..5f0abbc8fe0e9 100644 --- a/src/meta/service/src/notification_service.rs +++ b/src/meta/service/src/notification_service.rs @@ -168,6 +168,10 @@ impl NotificationServiceImpl { } fn decrypt_secrets(&self, secrets: Vec) -> MetaResult> { + // Skip getting `secret_store_private_key` if there is no secret + if secrets.is_empty() { + return Ok(vec![]); + } let secret_store_private_key = self .env .opts