mirror of
https://github.com/kerberos-io/agent.git
synced 2026-09-17 12:22:55 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aac2150a3a | ||
|
|
9b713637b9 | ||
|
|
699660d472 |
4
.github/workflows/docker-nightly.yml
vendored
4
.github/workflows/docker-nightly.yml
vendored
@@ -7,6 +7,8 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-amd64:
|
build-amd64:
|
||||||
|
# If contains the keyword "[release]" in the commit message.
|
||||||
|
if: "contains(github.event.head_commit.message, '[release]')"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@@ -30,6 +32,8 @@ jobs:
|
|||||||
- name: Create new and append to manifest
|
- name: Create new and append to manifest
|
||||||
run: cd agent && docker buildx imagetools create -t kerberos/agent-nightly:$(echo $GITHUB_SHA | cut -c1-7) kerberos/agent-nightly:arch-$(echo ${{matrix.architecture}} | tr / -)-$(echo $GITHUB_SHA | cut -c1-7)
|
run: cd agent && docker buildx imagetools create -t kerberos/agent-nightly:$(echo $GITHUB_SHA | cut -c1-7) kerberos/agent-nightly:arch-$(echo ${{matrix.architecture}} | tr / -)-$(echo $GITHUB_SHA | cut -c1-7)
|
||||||
build-other:
|
build-other:
|
||||||
|
# If contains the keyword "[release]" in the commit message.
|
||||||
|
if: "contains(github.event.head_commit.message, '[release]')"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
|||||||
8
.github/workflows/docker.yml
vendored
8
.github/workflows/docker.yml
vendored
@@ -10,8 +10,8 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-amd64:
|
build-amd64:
|
||||||
# If contains the keyword "#release" in the commit message.
|
# If contains the keyword "[release]" in the commit message.
|
||||||
if: "!contains(github.event.head_commit.message, '#release')"
|
if: "contains(github.event.head_commit.message, '[release]')"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@@ -70,8 +70,8 @@ jobs:
|
|||||||
#- name: Use Snapcraft
|
#- name: Use Snapcraft
|
||||||
# run: tar -xf agent-${{matrix.architecture}}.tar && snapcraft
|
# run: tar -xf agent-${{matrix.architecture}}.tar && snapcraft
|
||||||
build-other:
|
build-other:
|
||||||
# If contains the keyword "#release" in the commit message.
|
# If contains the keyword "[release]" in the commit message.
|
||||||
if: ${{ !contains(github.event.head_commit.message, '#release') }}
|
if: "contains(github.event.head_commit.message, '[release]')"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|||||||
@@ -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_USERNAME` | TURN username used for WebRTC. | "username1" |
|
||||||
| `AGENT_TURN_PASSWORD` | TURN password used for WebRTC. | "password1" |
|
| `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_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_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_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. | "" |
|
| `AGENT_HUB_PRIVATE_KEY` | The secret access key linked to your account in Kerberos Hub. | "" |
|
||||||
|
|||||||
@@ -107,7 +107,7 @@
|
|||||||
"turn_username": "username1",
|
"turn_username": "username1",
|
||||||
"turn_password": "password1",
|
"turn_password": "password1",
|
||||||
"heartbeaturi": "",
|
"heartbeaturi": "",
|
||||||
"hub_encrypted": "true",
|
"hub_encryption": "true",
|
||||||
"hub_uri": "https://api.cloud.kerberos.io",
|
"hub_uri": "https://api.cloud.kerberos.io",
|
||||||
"hub_key": "",
|
"hub_key": "",
|
||||||
"hub_private_key": "",
|
"hub_private_key": "",
|
||||||
|
|||||||
@@ -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)
|
}`, 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.
|
// Get the private key to encrypt the data using symmetric encryption: AES.
|
||||||
HubEncrypted := config.HubEncrypted
|
HubEncryption := config.HubEncryption
|
||||||
privateKey := config.HubPrivateKey
|
privateKey := config.HubPrivateKey
|
||||||
if HubEncrypted == "true" && privateKey != "" {
|
if HubEncryption == "true" && privateKey != "" {
|
||||||
// Encrypt the data using AES.
|
// Encrypt the data using AES.
|
||||||
encrypted, err := encryption.AesEncrypt([]byte(object), privateKey)
|
encrypted, err := encryption.AesEncrypt([]byte(object), privateKey)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@@ -406,8 +406,8 @@ func OverrideWithEnvironmentVariables(configuration *models.Configuration) {
|
|||||||
break
|
break
|
||||||
|
|
||||||
/* When connected and storing in Kerberos Hub (SAAS) */
|
/* When connected and storing in Kerberos Hub (SAAS) */
|
||||||
case "AGENT_HUB_ENCRYPTED":
|
case "AGENT_HUB_ENCRYPTION":
|
||||||
configuration.Config.HubEncrypted = value
|
configuration.Config.HubEncryption = value
|
||||||
break
|
break
|
||||||
case "AGENT_HUB_URI":
|
case "AGENT_HUB_URI":
|
||||||
configuration.Config.HubURI = value
|
configuration.Config.HubURI = value
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ type Config struct {
|
|||||||
TURNUsername string `json:"turn_username" bson:"turn_username"`
|
TURNUsername string `json:"turn_username" bson:"turn_username"`
|
||||||
TURNPassword string `json:"turn_password" bson:"turn_password"`
|
TURNPassword string `json:"turn_password" bson:"turn_password"`
|
||||||
HeartbeatURI string `json:"heartbeaturi" bson:"heartbeaturi"` /*obsolete*/
|
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"`
|
HubURI string `json:"hub_uri" bson:"hub_uri"`
|
||||||
HubKey string `json:"hub_key" bson:"hub_key"`
|
HubKey string `json:"hub_key" bson:"hub_key"`
|
||||||
HubPrivateKey string `json:"hub_private_key" bson:"hub_private_key"`
|
HubPrivateKey string `json:"hub_private_key" bson:"hub_private_key"`
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ class App extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<div id="page-root">
|
<div id="page-root">
|
||||||
<Sidebar logo={logo} title="Kerberos Agent" version="v1-beta" mobile>
|
<Sidebar logo={logo} title="Kerberos Agent" version="v3.1.1" mobile>
|
||||||
<Profilebar
|
<Profilebar
|
||||||
username={username}
|
username={username}
|
||||||
email="support@kerberos.io"
|
email="support@kerberos.io"
|
||||||
|
|||||||
Reference in New Issue
Block a user