llm_shield_cloud_azure/
secrets_stub.rs

1//! Stub implementation for Azure Key Vault.
2//!
3//! NOTE: This is a temporary stub due to breaking changes in Azure SDK.
4//! Full implementation requires updating to the latest SDK APIs.
5
6use async_trait::async_trait;
7use llm_shield_cloud::error::{CloudError, Result};
8use llm_shield_cloud::secrets::{CloudSecretManager, SecretMetadata, SecretValue};
9
10/// Stub implementation for Azure Key Vault.
11pub struct AzureKeyVault;
12
13impl AzureKeyVault {
14    /// Creates a new Azure Key Vault client (stub).
15    pub async fn new(_vault_name: impl Into<String>) -> Result<Self> {
16        Ok(Self)
17    }
18}
19
20#[async_trait]
21impl CloudSecretManager for AzureKeyVault {
22    async fn get_secret(&self, _name: &str) -> Result<SecretValue> {
23        Err(CloudError::OperationFailed(
24            "Azure Key Vault not implemented - SDK API breaking changes".to_string(),
25        ))
26    }
27
28    async fn create_secret(&self, _name: &str, _value: &SecretValue) -> Result<()> {
29        Err(CloudError::OperationFailed(
30            "Azure Key Vault not implemented - SDK API breaking changes".to_string(),
31        ))
32    }
33
34    async fn update_secret(&self, _name: &str, _value: &SecretValue) -> Result<()> {
35        Err(CloudError::OperationFailed(
36            "Azure Key Vault not implemented - SDK API breaking changes".to_string(),
37        ))
38    }
39
40    async fn delete_secret(&self, _name: &str) -> Result<()> {
41        Err(CloudError::OperationFailed(
42            "Azure Key Vault not implemented - SDK API breaking changes".to_string(),
43        ))
44    }
45
46    async fn list_secrets(&self) -> Result<Vec<String>> {
47        Err(CloudError::OperationFailed(
48            "Azure Key Vault not implemented - SDK API breaking changes".to_string(),
49        ))
50    }
51
52    async fn get_secret_metadata(&self, _name: &str) -> Result<SecretMetadata> {
53        Err(CloudError::OperationFailed(
54            "Azure Key Vault not implemented - SDK API breaking changes".to_string(),
55        ))
56    }
57}