From f0ed56a2eabba773af9c4fcafdb71ca600b0cb24 Mon Sep 17 00:00:00 2001 From: lenny Date: Tue, 11 May 2021 10:29:24 -0700 Subject: [PATCH] fix: Added missing InsecureSecrets section Signed-off-by: lenny --- Makefile | 2 +- cmd/res/configuration.toml | 7 +++++++ go.mod | 4 ++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 498aa13..697f160 100644 --- a/Makefile +++ b/Makefile @@ -15,9 +15,9 @@ GIT_SHA=$(shell git rev-parse HEAD) GOFLAGS=-ldflags "-X github.com/edgexfoundry/device-random.Version=$(VERSION)" build: $(MICROSERVICES) - $(GOCGO) build ./... cmd/device-random: + go mod tidy $(GOCGO) build $(GOFLAGS) -o $@ ./cmd test: diff --git a/cmd/res/configuration.toml b/cmd/res/configuration.toml index d6def70..4bcba6e 100644 --- a/cmd/res/configuration.toml +++ b/cmd/res/configuration.toml @@ -1,5 +1,12 @@ [Writable] LogLevel = 'INFO' + # InsecureSecrets are required for when Redis is used for message bus + [Writable.InsecureSecrets] + [Writable.InsecureSecrets.DB] + path = "redisdb" + [Writable.InsecureSecrets.DB.Secrets] + username = "" + password = "" [Service] BootTimeout = 30000 diff --git a/go.mod b/go.mod index 15a8dec..b2f106b 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,8 @@ module github.com/edgexfoundry/device-random require ( - github.com/edgexfoundry/device-sdk-go/v2 v2.0.0-dev.50 - github.com/edgexfoundry/go-mod-core-contracts/v2 v2.0.0-dev.78 + github.com/edgexfoundry/device-sdk-go/v2 v2.0.0-dev.58 + github.com/edgexfoundry/go-mod-core-contracts/v2 v2.0.0-dev.83 github.com/hashicorp/go-sockaddr v1.0.1 // indirect github.com/hashicorp/golang-lru v0.5.1 // indirect )