Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Kafka: Added possibility for SASL Authorization with KafkaCluster (#3953
) * Implemented SASL Kafka Auth * Added new SASL Properties to ProducerConfig * Added 2 headers --------- Co-authored-by: Yannick Laubscher <yannick.laubscher@swissteach.ch>
- Loading branch information
1 parent
598d456
commit 86de5d3
Showing
5 changed files
with
63 additions
and
10 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
src/activities/Elsa.Activities.Kafka/Configuration/KafkaOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Elsa.Activities.Kafka.Configuration | ||
{ | ||
public class KafkaOptions | ||
{ | ||
/// <summary> | ||
/// Username for BasicAuth Connection | ||
/// </summary> | ||
public string? SaslUsername { get; set; } | ||
|
||
/// <summary> | ||
/// Password for BasicAuth Connection | ||
/// </summary> | ||
public string? SaslPassword { get; set; } | ||
|
||
/// <summary> | ||
/// Mechanism to be used for SASL authentication | ||
/// </summary> | ||
public Confluent.Kafka.SaslMechanism SaslMechanism { get; set; } | ||
|
||
/// <summary> | ||
/// Security protocol to be used for communication with brokers | ||
/// </summary> | ||
public Confluent.Kafka.SecurityProtocol SecurityProtocol { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters