summaryrefslogtreecommitdiff
path: root/groot-examples
diff options
context:
space:
mode:
authordoufenghu <[email protected]>2024-09-19 16:53:58 +0800
committerdoufenghu <[email protected]>2024-09-19 16:53:58 +0800
commit3fbdebc7cf9fb3f524623fc7e8dbe7217d55deeb (patch)
tree4946f96c8a5bf894e3e55fee3f2706284bff506e /groot-examples
parentb2213266389975a4fa504022917b80f357c34f24 (diff)
[Feature][KMS] Support KMS configurations for developing ecnrypt functions.
Diffstat (limited to 'groot-examples')
-rw-r--r--groot-examples/end-to-end-example/src/main/java/com/geedgenetworks/example/GrootStreamExample.java4
-rw-r--r--groot-examples/end-to-end-example/src/main/resources/grootstream.yaml9
2 files changed, 11 insertions, 2 deletions
diff --git a/groot-examples/end-to-end-example/src/main/java/com/geedgenetworks/example/GrootStreamExample.java b/groot-examples/end-to-end-example/src/main/java/com/geedgenetworks/example/GrootStreamExample.java
index a79919b..9b58289 100644
--- a/groot-examples/end-to-end-example/src/main/java/com/geedgenetworks/example/GrootStreamExample.java
+++ b/groot-examples/end-to-end-example/src/main/java/com/geedgenetworks/example/GrootStreamExample.java
@@ -14,13 +14,13 @@ import java.util.List;
public class GrootStreamExample {
public static void main(String[] args) throws FileNotFoundException, URISyntaxException {
- String configPath = args.length > 0 ? args[0] : "/examples/inline_to_kafka.yaml";
+ String configPath = args.length > 0 ? args[0] : "/examples/inline_to_print.yaml";
String configFile = getTestConfigFile(configPath);
ExecuteCommandArgs executeCommandArgs = new ExecuteCommandArgs();
executeCommandArgs.setConfigFile(configFile);
executeCommandArgs.setCheckConfig(false);
executeCommandArgs.setEncrypt(false);
- executeCommandArgs.setDecrypt(true);
+ executeCommandArgs.setDecrypt(false);
executeCommandArgs.setVersion(false);
executeCommandArgs.setVariables(List.of("hos.bucket.name.traffic_file=user_define_traffic_file_bucket",
"scheduler.knowledge_base.update.interval.minutes=1"));
diff --git a/groot-examples/end-to-end-example/src/main/resources/grootstream.yaml b/groot-examples/end-to-end-example/src/main/resources/grootstream.yaml
index 67e1dd6..cc670b7 100644
--- a/groot-examples/end-to-end-example/src/main/resources/grootstream.yaml
+++ b/groot-examples/end-to-end-example/src/main/resources/grootstream.yaml
@@ -10,6 +10,15 @@ grootstream:
fs_path: ./config/dat
files:
- ip_builtin.mmdb
+ kms:
+ local:
+ type: local
+ vault:
+ type: vault
+ url: <vault-url>
+ token: <vault-token>
+ key_path: <vault-key-path>
+
properties:
hos.path: http://192.168.44.12:9098/hos
hos.bucket.name.traffic_file: traffic_file_bucket