Skip to content

Commit

Permalink
kafka: SASL mechanism must have a dash between before numbers
Browse files Browse the repository at this point in the history
it seems SCREAMING-KEBAB-CASE does not put a dash before numbers
  • Loading branch information
mdibaiee committed Dec 27, 2024
1 parent 8fad862 commit ee78928
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions materialize-kafka/src/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ pub enum Credentials {
#[serde(rename_all = "SCREAMING-KEBAB-CASE")]
pub enum SaslMechanism {
Plain,
#[serde(rename = "SCRAM-SHA-256")]
ScramSha256,
#[serde(rename = "SCRAM-SHA-512")]
ScramSha512,
}

Expand Down
2 changes: 2 additions & 0 deletions source-kafka/src/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ pub enum Credentials {
#[serde(rename_all = "SCREAMING-KEBAB-CASE")]
pub enum SaslMechanism {
Plain,
#[serde(rename = "SCRAM-SHA-256")]
ScramSha256,
#[serde(rename = "SCRAM-SHA-512")]
ScramSha512,
}

Expand Down

0 comments on commit ee78928

Please sign in to comment.