Fixed a bug for updating secrets with the local provider

This commit is contained in:
2025-09-09 17:51:53 -06:00
parent 0514cc2c8d
commit 82e2e33608
2 changed files with 54 additions and 43 deletions
+2 -1
View File
@@ -10,6 +10,7 @@ use std::str::FromStr;
use thiserror::Error;
pub trait SecretProvider {
fn name(&self) -> &'static str;
fn get_secret(&self, config: &Config, key: &str) -> Result<String>;
fn set_secret(&self, config: &Config, key: &str, value: &str) -> Result<()>;
fn update_secret(&self, config: &Config, key: &str, value: &str) -> Result<()>;
@@ -24,7 +25,7 @@ pub enum ParseProviderError {
Unsupported(String),
}
#[derive(Debug, Clone, Copy, Deserialize)]
#[derive(Debug, Clone, Copy, Deserialize, Eq, PartialEq)]
pub enum SupportedProvider {
Local(LocalProvider),
}