mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-11 08:38:24 +00:00
* refactor(rust): move SecretValue into litellm-secret-value * docs(rust): add rust-redaction skill * refactor(redis-client): carry credentials as SecretValue --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
32 lines
895 B
Rust
32 lines
895 B
Rust
use std::{
|
|
sync::{
|
|
Arc,
|
|
atomic::{AtomicUsize, Ordering},
|
|
},
|
|
time::Duration,
|
|
};
|
|
|
|
use base64::{Engine, engine::general_purpose::STANDARD};
|
|
use litellm_core_utils::settings::Lookup;
|
|
use litellm_http::{HttpClientPool, HttpSettings, Resolution, media::PublicDnsResolver};
|
|
use litellm_secret_value::SecretValue;
|
|
use litellm_secrets_cyberark::{CyberArkSecretManager, DeleteOutcome, Error};
|
|
use litellm_secrets_types::{BaseSecretManager, CyberarkOperationContext};
|
|
|
|
use rstest::{fixture, rstest};
|
|
use serde::Deserialize;
|
|
use wiremock::{
|
|
Match, Mock, MockServer, Request, ResponseTemplate,
|
|
matchers::{body_string, header, method, path},
|
|
};
|
|
|
|
#[path = "secret_manager/support.rs"]
|
|
mod support;
|
|
use support::*;
|
|
|
|
#[path = "secret_manager/configuration.rs"]
|
|
mod configuration;
|
|
#[path = "secret_manager/reads.rs"]
|
|
mod reads;
|
|
#[path = "secret_manager/writes.rs"]
|
|
mod writes;
|