From 49f7361244c9f13dfb346e070e3a1e77f99cd28e Mon Sep 17 00:00:00 2001 From: Kilian Boute Date: Mon, 23 Nov 2026 11:34:27 +0000 Subject: [PATCH] feat(hub): pass Pusher app credentials to hub-api and hub-monitor-device (0.204.0) New pusher.appId/key/secret/cluster values render as PUSHER_APP_ID, PUSHER_KEY, PUSHER_SECRET and PUSHER_CLUSTER on hub-api and hub-monitor-device. Both send in-app browser notifications through Pusher and read the app from these variables once they are built on github.com/uug-ai/integrations. Co-Authored-By: Claude Opus 5.5 --- charts/hub/Chart.yaml | 2 +- charts/hub/README.md | 4 ++++ charts/hub/templates/kerberos-hub/hub-api.yaml | 10 ++++++++++ .../templates/kerberos-hub/hub-monitor-device.yaml | 10 ++++++++++ charts/hub/values.yaml | 12 ++++++++++++ 5 files changed, 37 insertions(+), 1 deletion(-) diff --git a/charts/hub/Chart.yaml b/charts/hub/Chart.yaml index 4dc30d1..5c3db41 100644 --- a/charts/hub/Chart.yaml +++ b/charts/hub/Chart.yaml @@ -16,7 +16,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.203.0 +version: 0.204.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/hub/README.md b/charts/hub/README.md index e8b29ee..64586ea 100644 --- a/charts/hub/README.md +++ b/charts/hub/README.md @@ -856,6 +856,10 @@ kerberospipeline: | `turn.host` | TURN/STUN hostname, by default `'turn:turn.yourdomain.com:8443'` | `"turn:turn.yourdomain.com:8443"` | | `turn.username` | TURN/STUN username, by default `'username1'` | `"username1"` | | `turn.password` | TURN/STUN password, by default `'password1'` | `"password1"` | +| `pusher.appId` | Pusher app ID for in-app browser notifications from hub-api and the device monitor, rendered as `PUSHER_APP_ID` (hub-api and hub-monitor-device built on github.com/uug-ai/integrations). | `""` | +| `pusher.key` | Pusher app key, rendered as `PUSHER_KEY`. | `""` | +| `pusher.secret` | Pusher app secret, rendered as `PUSHER_SECRET`. | `""` | +| `pusher.cluster` | Pusher cluster, rendered as `PUSHER_CLUSTER`. | `"eu"` | | `opentelemetry.enabled` | Enable or disable OpenTelemetry instrumentation. | `false` | | `opentelemetry.routingEnabled` | Enable or disable OpenTelemetry routing/export behavior. | `false` | | `opentelemetry.collector.endpoint` | OpenTelemetry collector endpoint used for trace export. | `"http://otel-collector:4317"` | diff --git a/charts/hub/templates/kerberos-hub/hub-api.yaml b/charts/hub/templates/kerberos-hub/hub-api.yaml index a7c9b96..4a7015b 100644 --- a/charts/hub/templates/kerberos-hub/hub-api.yaml +++ b/charts/hub/templates/kerberos-hub/hub-api.yaml @@ -602,6 +602,16 @@ spec: - name: SLACK_USERNAME value: "{{ .Values.kerberoshub.api.slack.username }}" + # Pusher (in-app notifications) + - name: PUSHER_APP_ID + value: {{ .Values.pusher.appId | quote }} + - name: PUSHER_KEY + value: {{ .Values.pusher.key | quote }} + - name: PUSHER_SECRET + value: {{ .Values.pusher.secret | quote }} + - name: PUSHER_CLUSTER + value: {{ .Values.pusher.cluster | quote }} + # Mail settings - name: MAIL_PROVIDER value: "{{ .Values.email.provider }}" diff --git a/charts/hub/templates/kerberos-hub/hub-monitor-device.yaml b/charts/hub/templates/kerberos-hub/hub-monitor-device.yaml index 4091a2f..4bb6458 100644 --- a/charts/hub/templates/kerberos-hub/hub-monitor-device.yaml +++ b/charts/hub/templates/kerberos-hub/hub-monitor-device.yaml @@ -129,6 +129,16 @@ spec: value: "{{ .Values.email.mailgun.domain }}" - name: MAILGUN_API_KEY value: "{{ .Values.email.mailgun.apikey }}" + + # Pusher (in-app notifications) + - name: PUSHER_APP_ID + value: {{ .Values.pusher.appId | quote }} + - name: PUSHER_KEY + value: {{ .Values.pusher.key | quote }} + - name: PUSHER_SECRET + value: {{ .Values.pusher.secret | quote }} + - name: PUSHER_CLUSTER + value: {{ .Values.pusher.cluster | quote }} {{- if .Values.kerberoshub.extraEnv }} {{- toYaml .Values.kerberoshub.extraEnv | nindent 12 }} {{- end }} diff --git a/charts/hub/values.yaml b/charts/hub/values.yaml index 023fb9a..91941d4 100644 --- a/charts/hub/values.yaml +++ b/charts/hub/values.yaml @@ -248,6 +248,18 @@ turn: username: "username1" password: "password1" ############################################ +# Pusher (in-app notifications) +# +# Usecases: +# - Browser notifications: hub-api (a new camera was added) and the device +# monitor (a camera changed status) trigger an event on the user's channel. +############################################ +pusher: + appId: "" + key: "" + secret: "" + cluster: "eu" +############################################ # OpenTelemetry is used for distributed tracing and monitoring. # More information can be found at https://opentelemetry.io/docs/ ############################################