forked from opensearch-project/data-prepper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Adds KMS encryption_context for KMS encryption in the Kafka buffer. M…
…oves the kms_key_id into a new kms section along with encryption_context. Resolves opensearch-project#3484 (opensearch-project#3486) Signed-off-by: David Venable <dlv@amazon.com>
- Loading branch information
Showing
4 changed files
with
91 additions
and
11 deletions.
There are no files selected for viewing
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
21 changes: 21 additions & 0 deletions
21
...ugins/src/main/java/org/opensearch/dataprepper/plugins/kafka/configuration/KmsConfig.java
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,21 @@ | ||
package org.opensearch.dataprepper.plugins.kafka.configuration; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import java.util.Map; | ||
|
||
public class KmsConfig { | ||
@JsonProperty("key_id") | ||
private String keyId; | ||
|
||
@JsonProperty("encryption_context") | ||
private Map<String, String> encryptionContext; | ||
|
||
public String getKeyId() { | ||
return keyId; | ||
} | ||
|
||
public Map<String, String> getEncryptionContext() { | ||
return encryptionContext; | ||
} | ||
} |
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