-
Notifications
You must be signed in to change notification settings - Fork 484
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Enable common security secret service metrics (#4184)
* feat: Enable common security secret service metrics Signed-off-by: Leonard Goodell <[email protected]>
- Loading branch information
Lenny Goodell
authored
Oct 11, 2022
1 parent
d47f91d
commit 8629e80
Showing
16 changed files
with
183 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
# This is required for backwards compatibility so new version of sevice using older 2.x configuration will not fail bootstrapping | ||
# This will default to false if not provided in old config. Messagebus is now needed by Device System Events and Service Metrics | ||
# TODO: Remove this setting EdgeX 3.0 | ||
RequireMessageBus = true | ||
|
||
[Writable] | ||
LogLevel = "INFO" | ||
ResendLimit = 2 | ||
|
@@ -13,6 +18,14 @@ ResendInterval = "5s" | |
[Writable.InsecureSecrets.SMTP.Secrets] | ||
username = "[email protected]" | ||
password = "" | ||
[Writable.Telemetry] | ||
Interval = "30s" | ||
PublishTopicPrefix = "edgex/telemetry" # /<service-name>/<metric-name> will be added to this Publish Topic prefix | ||
[Writable.Telemetry.Metrics] # All service's metric names must be present in this list. | ||
SecuritySecretsRequested = false | ||
SecuritySecretsStored = false | ||
[Writable.Telemetry.Tags] # Contains the service level tags to be attached to all the service's metrics | ||
# Gateway="my-iot-gateway" # Tag must be added here or via Consul Env Override can only chnage existing value, not added new ones. | ||
|
||
[Service] | ||
HealthCheckInterval = "10s" | ||
|
@@ -57,6 +70,31 @@ Type = "consul" | |
# AuthMode is the SMTP authentication mechanism. Currently, "usernamepassword" is the only AuthMode supported by this service, and the secret keys are "username" and "password". | ||
AuthMode = "usernamepassword" | ||
|
||
[MessageQueue] | ||
Protocol = "redis" | ||
Host = "localhost" | ||
Port = 6379 | ||
Type = "redis" | ||
AuthMode = "usernamepassword" # required for redis messagebus (secure or insecure). | ||
SecretName = "redisdb" | ||
[MessageQueue.Optional] | ||
# Default MQTT Specific options that need to be here to enable evnironment variable overrides of them | ||
ClientId ="support-notifications" | ||
Qos = "0" # Quality of Sevice values are 0 (At most once), 1 (At least once) or 2 (Exactly once) | ||
KeepAlive = "10" # Seconds (must be 2 or greater) | ||
Retained = "false" | ||
AutoReconnect = "true" | ||
ConnectTimeout = "5" # Seconds | ||
SkipCertVerify = "false" | ||
# Additional Default NATS Specific options that need to be here to enable evnironment variable overrides of them | ||
Format = "nats" | ||
RetryOnFailedConnect = "true" | ||
QueueGroup = "" | ||
Durable = "" | ||
AutoProvision = "true" | ||
Deliver = "new" | ||
DefaultPubRetryAttempts = "2" | ||
Subject = "edgex/#" # Required for NATS Jetstram only for stream autoprovsioning | ||
|
||
[SecretStore] | ||
Type = "vault" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.