Skip to content

Commit

Permalink
Merge pull request #199 from lenny-intel/secure-bus
Browse files Browse the repository at this point in the history
feat: Add secure MessagBus capability
  • Loading branch information
cloudxxx8 authored May 11, 2021
2 parents f4aebf8 + ff158f9 commit 9699086
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions cmd/res/configuration.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ ConnectRetries = 10
Labels = []
EnableAsyncReadings = true
AsyncBufferSize = 16
UseMessageBus = false

[Registry]
Host = 'localhost'
Expand All @@ -32,11 +33,12 @@ Type = 'consul'
Port = 48081

[MessageQueue]
Enabled = false
Protocol = 'tcp'
Protocol = 'redis'
Host = 'localhost'
Port = 1883
Type = 'mqtt'
Port = 6379
Type = 'redis'
AuthMode = 'usernamepassword' # required for redis messagebus (secure or insecure).
SecretName = "redisdb"
PublishTopicPrefix = 'edgex/events' # /<device-profile-name>/<device-name>/<source-name> will be added to this Publish Topic prefix
[MessageQueue.Optional]
# Default MQTT Specific options that need to be here to enable environment variable overrides of them
Expand All @@ -49,8 +51,6 @@ PublishTopicPrefix = 'edgex/events' # /<device-profile-name>/<device-name>/<sour
AutoReconnect = "true"
ConnectTimeout = "5" # Seconds
SkipCertVerify = "false" # Only used if Cert/Key file or Cert/Key PEMblock are specified
ClientAuth = "none" # Valid values are: `none`, `usernamepassword` or `clientcert`
Secretpath = "messagebus" # Path in secret store used if ClientAuth not `none`

# Only used when EDGEX_SECURITY_SECRET_STORE=true which is now required for secure Consul
[SecretStore]
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module github.com/edgexfoundry/device-virtual-go

require (
github.com/edgexfoundry/device-sdk-go/v2 v2.0.0-dev.51
github.com/edgexfoundry/go-mod-core-contracts/v2 v2.0.0-dev.77
github.com/edgexfoundry/device-sdk-go/v2 v2.0.0-dev.54
github.com/edgexfoundry/go-mod-core-contracts/v2 v2.0.0-dev.83
github.com/edsrzf/mmap-go v1.0.0 // indirect
github.com/golang/snappy v0.0.1 // indirect
github.com/remyoudompheng/bigfft v0.0.0-20190321074620-2f0d2b0e0001 // indirect
Expand Down

0 comments on commit 9699086

Please sign in to comment.