From 3fbdebc7cf9fb3f524623fc7e8dbe7217d55deeb Mon Sep 17 00:00:00 2001 From: doufenghu Date: Thu, 19 Sep 2024 16:53:58 +0800 Subject: [Feature][KMS] Support KMS configurations for developing ecnrypt functions. --- .../main/java/com/geedgenetworks/example/GrootStreamExample.java | 4 ++-- .../end-to-end-example/src/main/resources/grootstream.yaml | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'groot-examples') 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: + token: + key_path: + properties: hos.path: http://192.168.44.12:9098/hos hos.bucket.name.traffic_file: traffic_file_bucket -- cgit v1.2.3