mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-05 07:37:50 +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>
36 lines
881 B
Rust
36 lines
881 B
Rust
use std::{
|
|
sync::{
|
|
Arc,
|
|
atomic::{AtomicUsize, Ordering},
|
|
},
|
|
time::Duration,
|
|
};
|
|
|
|
use aws_sdk_secretsmanager::{
|
|
Client,
|
|
config::{BehaviorVersion, Credentials, Region, retry::RetryConfig},
|
|
};
|
|
use litellm_secret_value::SecretValue;
|
|
use litellm_secrets_aws::{AwsSecretsManagerV2, Error, RotationResponse};
|
|
use litellm_secrets_types::{
|
|
AwsOperationContext, BaseSecretManager, KeyManagementSettings, Secret, SecretDeleter,
|
|
SecretWriteContext, SecretWriter,
|
|
};
|
|
|
|
use rstest::{fixture, rstest};
|
|
use serde_json::json;
|
|
use wiremock::{
|
|
Mock, MockServer, ResponseTemplate,
|
|
matchers::{body_partial_json, header},
|
|
};
|
|
|
|
#[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;
|