Skip to content

Commit

Permalink
dekaf: decrypt endpoint config when validating
Browse files Browse the repository at this point in the history
  • Loading branch information
jshearer committed Jan 6, 2025
1 parent 75cddd3 commit b91302b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion crates/dekaf/src/connector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,13 @@ pub async fn unary_materialize(
.context("validating dekaf config")?;

let _parsed_inner_config = serde_json::from_value::<DekafConfig>(
parsed_outer_config.config.to_value(),
unseal::decrypt_sops(&parsed_outer_config.config)
.await
.context(format!(
"decrypting dekaf endpoint config for variant {}",
parsed_outer_config.variant
))?
.to_value(),
)
.context(format!(
"validating dekaf endpoint config for variant {}",
Expand Down

0 comments on commit b91302b

Please sign in to comment.