From d89132171dfc0e8dde1a4aab32077067a6280e62 Mon Sep 17 00:00:00 2001 From: Phil Hunt Date: Mon, 24 Jun 2024 14:39:25 -0700 Subject: [PATCH] Amended hexaOPA to pick up config version. Signed-off-by: Phil Hunt --- cmd/hexaOpa/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/hexaOpa/main.go b/cmd/hexaOpa/main.go index 5c44502..ade7c35 100644 --- a/cmd/hexaOpa/main.go +++ b/cmd/hexaOpa/main.go @@ -6,6 +6,7 @@ import ( "os" "github.com/hexa-org/policy-mapper/pkg/keysupport" + "github.com/hexa-org/policy-opa/cmd/hexaAuthZen/config" "github.com/hexa-org/policy-opa/server/conditionEvaluator" "github.com/hexa-org/policy-opa/server/hexaFilter" "github.com/open-policy-agent/opa/ast" @@ -18,7 +19,7 @@ import ( func main() { // Configure JSON logger which is the normal OPA log format. logger := slog.New(slog.NewJSONHandler(os.Stdout, nil)) - logger.Info("Hexa OPA Server starting...", "version", "0.65.2") + logger.Info("Hexa OPA Server starting...", "version", config.HexaAuthZenVersion) logger.Info("registering plugin " + hexaFilter.PluginName) rego.RegisterBuiltin2(