Skip to content

Commit

Permalink
feat(security): Add secret store config for delayed start (#3948)
Browse files Browse the repository at this point in the history
Signed-off-by: Bryon Nevis <[email protected]>
  • Loading branch information
bnevis-i authored Apr 19, 2022
1 parent b6a3d65 commit 6b188fc
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 3 deletions.
8 changes: 8 additions & 0 deletions cmd/core-data/res/configuration.toml
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,11 @@ RootCaCertPath = ""
ServerName = ""
[SecretStore.Authentication]
AuthType = "X-Vault-Token"
[SecretStore.RuntimeTokenProvider]
Enabled = false
Protocol = "https"
Host = "localhost"
Port = 59841
TrustDomain = "edgexfoundry.org"
EndpointSocket = "/tmp/edgex/secrets/spiffe/public/api.sock"
RequiredSecrets = "redisdb"
9 changes: 8 additions & 1 deletion cmd/core-metadata/res/configuration.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,11 @@ RootCaCertPath = ""
ServerName = ""
[SecretStore.Authentication]
AuthType = "X-Vault-Token"

[SecretStore.RuntimeTokenProvider]
Enabled = false
Protocol = "https"
Host = "localhost"
Port = 59841
TrustDomain = "edgexfoundry.org"
EndpointSocket = "/tmp/edgex/secrets/spiffe/public/api.sock"
RequiredSecrets = "redisdb"
8 changes: 8 additions & 0 deletions cmd/security-proxy-setup/res/configuration.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ RootCaCertPath = ""
ServerName = ""
[SecretStore.Authentication]
AuthType = "X-Vault-Token"
[SecretStore.RuntimeTokenProvider]
Enabled = false
Protocol = "https"
Host = "localhost"
Port = 59841
TrustDomain = "edgexfoundry.org"
EndpointSocket = "/tmp/edgex/secrets/spiffe/public/api.sock"
RequiredSecrets = "redisdb"

[Routes]
[Routes.core-data]
Expand Down
8 changes: 8 additions & 0 deletions cmd/security-spiffe-token-provider/res/configuration.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ RootCaCertPath = ""
ServerName = ""
[SecretStore.Authentication]
AuthType = "X-Vault-Token"
[SecretStore.RuntimeTokenProvider]
Enabled = false # This is the implementation of RuntimeTokenProvider; must always be false!
Protocol = ""
Host = ""
Port = 0
TrustDomain = ""
EndpointSocket = ""
RequiredSecrets = ""

[SPIFFE]
EndpointSocket = "/tmp/edgex/secrets/spiffe/public/api.sock"
Expand Down
9 changes: 8 additions & 1 deletion cmd/support-notifications/res/configuration.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,11 @@ SecretsFile = ""
DisableScrubSecretsFile = false
[SecretStore.Authentication]
AuthType = "X-Vault-Token"

[SecretStore.RuntimeTokenProvider]
Enabled = false
Protocol = "https"
Host = "localhost"
Port = 59841
TrustDomain = "edgexfoundry.org"
EndpointSocket = "/tmp/edgex/secrets/spiffe/public/api.sock"
RequiredSecrets = "redisdb"
9 changes: 8 additions & 1 deletion cmd/support-scheduler/res/configuration.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,11 @@ RootCaCertPath = ""
ServerName = ""
[SecretStore.Authentication]
AuthType = "X-Vault-Token"

[SecretStore.RuntimeTokenProvider]
Enabled = false
Protocol = "https"
Host = "localhost"
Port = 59841
TrustDomain = "edgexfoundry.org"
EndpointSocket = "/tmp/edgex/secrets/spiffe/public/api.sock"
RequiredSecrets = "redisdb"
8 changes: 8 additions & 0 deletions cmd/sys-mgmt-agent/res/configuration.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,11 @@ RootCaCertPath = ""
ServerName = ""
[SecretStore.Authentication]
AuthType = "X-Vault-Token"
[SecretStore.RuntimeTokenProvider]
Enabled = false
Protocol = "https"
Host = "localhost"
Port = 59841
TrustDomain = "edgexfoundry.org"
EndpointSocket = "/tmp/edgex/secrets/spiffe/public/api.sock"
RequiredSecrets = "redisdb"

0 comments on commit 6b188fc

Please sign in to comment.