Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add mtls for keymanager api requests #5048

Merged
merged 6 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: run formatter
  • Loading branch information
hyperswitch-bot[bot] committed Jun 19, 2024
commit 2b516f87d809193fe4a0ee3a991faa4687d2a5c2
2 changes: 1 addition & 1 deletion crates/router/src/configs/defaults.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8406,7 +8406,7 @@ impl Default for super::settings::KeyManagerConfig {
url: String::from("localhost:5000"),
#[cfg(feature = "keymanager_mtls")]
ca: String::default().into(),
#[cfg(feature = "keymanager_mtls")]
#[cfg(feature = "keymanager_mtls")]
cert: String::default().into(),
}
}
Expand Down
10 changes: 4 additions & 6 deletions crates/router/src/encryption.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
use once_cell::sync::OnceCell;

#[cfg(feature = "keymanager_mtls")]
use masking::PeekInterface;

use http::{HeaderMap, HeaderName, HeaderValue};
use std::str::FromStr;

use error_stack::ResultExt;
use http::{HeaderMap, HeaderName, HeaderValue};
#[cfg(feature = "keymanager_mtls")]
use masking::PeekInterface;
use once_cell::sync::OnceCell;

use crate::{errors, headers, types::domain::EncryptionCreateRequest, SessionState};

Expand Down
Loading