diff --git a/README.md b/README.md index b3e388c..1fc12f5 100644 --- a/README.md +++ b/README.md @@ -226,7 +226,7 @@ Next to attaching the configuration file, it is also possible to override the co | `AGENT_TURN_USERNAME` | TURN username used for WebRTC. | "username1" | | `AGENT_TURN_PASSWORD` | TURN password used for WebRTC. | "password1" | | `AGENT_CLOUD` | Store recordings in Kerberos Hub (s3), Kerberos Vault (kstorage) or Dropbox (dropbox). | "s3" | -| `AGENT_HUB_ENCRYPTED` | Turning on or off encrypted traffic from your Kerberos Agent to Kerberos Hub. | "true" | +| `AGENT_HUB_ENCRYPTION` | Turning on/off encryption of traffic from your Kerberos Agent to Kerberos Hub. | "true" | | `AGENT_HUB_URI` | The Kerberos Hub API, defaults to our Kerberos Hub SAAS. | "https://api.hub.domain.com" | | `AGENT_HUB_KEY` | The access key linked to your account in Kerberos Hub. | "" | | `AGENT_HUB_PRIVATE_KEY` | The secret access key linked to your account in Kerberos Hub. | "" | diff --git a/machinery/data/config/config.json b/machinery/data/config/config.json index bbdd418..3b17959 100644 --- a/machinery/data/config/config.json +++ b/machinery/data/config/config.json @@ -107,7 +107,7 @@ "turn_username": "username1", "turn_password": "password1", "heartbeaturi": "", - "hub_encrypted": "true", + "hub_encryption": "true", "hub_uri": "https://api.cloud.kerberos.io", "hub_key": "", "hub_private_key": "", diff --git a/machinery/src/cloud/Cloud.go b/machinery/src/cloud/Cloud.go index 90bf157..7772443 100644 --- a/machinery/src/cloud/Cloud.go +++ b/machinery/src/cloud/Cloud.go @@ -450,9 +450,9 @@ loop: }`, config.Key, system.Version, system.CPUId, username, key, name, isEnterprise, system.Hostname, system.Architecture, system.TotalMemory, system.UsedMemory, system.FreeMemory, system.ProcessUsedMemory, macs, ips, "0", "0", "0", uptimeString, boottimeString, config.HubSite, onvifEnabled, onvifZoom, onvifPanTilt, onvifPresets, onvifPresetsList, onvifEventsList, cameraConnected, hasBackChannel) // Get the private key to encrypt the data using symmetric encryption: AES. - HubEncrypted := config.HubEncrypted + HubEncryption := config.HubEncryption privateKey := config.HubPrivateKey - if HubEncrypted == "true" && privateKey != "" { + if HubEncryption == "true" && privateKey != "" { // Encrypt the data using AES. encrypted, err := encryption.AesEncrypt([]byte(object), privateKey) if err != nil { diff --git a/machinery/src/config/main.go b/machinery/src/config/main.go index 1c5a6e7..56278fd 100644 --- a/machinery/src/config/main.go +++ b/machinery/src/config/main.go @@ -406,8 +406,8 @@ func OverrideWithEnvironmentVariables(configuration *models.Configuration) { break /* When connected and storing in Kerberos Hub (SAAS) */ - case "AGENT_HUB_ENCRYPTED": - configuration.Config.HubEncrypted = value + case "AGENT_HUB_ENCRYPTION": + configuration.Config.HubEncryption = value break case "AGENT_HUB_URI": configuration.Config.HubURI = value diff --git a/machinery/src/models/Config.go b/machinery/src/models/Config.go index 1a26d82..80394aa 100644 --- a/machinery/src/models/Config.go +++ b/machinery/src/models/Config.go @@ -37,7 +37,7 @@ type Config struct { TURNUsername string `json:"turn_username" bson:"turn_username"` TURNPassword string `json:"turn_password" bson:"turn_password"` HeartbeatURI string `json:"heartbeaturi" bson:"heartbeaturi"` /*obsolete*/ - HubEncrypted string `json:"hub_encrypted" bson:"hub_encrypted"` + HubEncryption string `json:"hub_encryption" bson:"hub_encryption"` HubURI string `json:"hub_uri" bson:"hub_uri"` HubKey string `json:"hub_key" bson:"hub_key"` HubPrivateKey string `json:"hub_private_key" bson:"hub_private_key"` diff --git a/ui/src/App.jsx b/ui/src/App.jsx index cff15f4..bfd8c7a 100644 --- a/ui/src/App.jsx +++ b/ui/src/App.jsx @@ -100,7 +100,7 @@ class App extends React.Component { )}
- +