mirror of
https://github.com/kerberos-io/helm-charts.git
synced 2026-11-25 23:40:24 +00:00
Compare commits
13
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bf4c7cbafd | ||
|
|
c4c7325e8d | ||
|
|
11305630b9 | ||
|
|
faa2e6a7cf | ||
|
|
f29a22b086 | ||
|
|
4b60fbfa63 | ||
|
|
6c89286371 | ||
|
|
906aaf39ac | ||
|
|
7e1822c707 | ||
|
|
0d332eaed9 | ||
|
|
f680e3f1a1 | ||
|
|
051fd8101e | ||
|
|
f7bc305d93 |
@@ -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.204.0
|
||||
version: 0.209.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
|
||||
|
||||
+91
-5
@@ -202,6 +202,50 @@ failure and test targeted replacement, idempotency, and reverse migration for al
|
||||
three Deployments. CI also checks API rejection of duplicate names and acceptance
|
||||
of the repaired spec against a disposable Kind cluster.
|
||||
|
||||
### Extra environment for pipeline workers (chart 0.206.0)
|
||||
|
||||
Every pipeline worker accepts an `extraEnv` list of Kubernetes `EnvVar` entries
|
||||
(`name` + `value`, or `name` + `valueFrom`). They are added after every variable
|
||||
the chart sets, so a worker setting the chart has no value for yet can be turned
|
||||
on without a chart release. All default to `[]`.
|
||||
|
||||
| Values path | Deployment |
|
||||
| --- | --- |
|
||||
| `kerberospipeline.event` | `pipe-event` |
|
||||
| `kerberospipeline.monitor` | `pipe-monitor` |
|
||||
| `kerberospipeline.sequence` | `pipe-sequence` |
|
||||
| `kerberospipeline.throttler` | `pipe-throttler` |
|
||||
| `kerberospipeline.notify` | `pipe-notify` |
|
||||
| `kerberospipeline.notifyTest` | `pipe-notify-test` |
|
||||
| `kerberospipeline.analysis` | `pipe-analysis` |
|
||||
| `kerberospipeline.dominantColor` | `pipe-dominantcolor` |
|
||||
| `kerberospipeline.thumbnail` | `pipe-thumbnail` |
|
||||
| `kerberospipeline.counting` | `pipe-counting` |
|
||||
| `kerberospipeline.sprite` | `pipe-sprite` |
|
||||
| `kerberospipeline.export` | `pipe-export` |
|
||||
| `kerberoshub.services.workflows` | `hub-workflows` |
|
||||
|
||||
Generic workflow stage workers (`kerberoshub.services.<stage>`) keep using their
|
||||
`env` and `secretEnv` maps.
|
||||
|
||||
```yaml
|
||||
kerberospipeline:
|
||||
thumbnail:
|
||||
extraEnv:
|
||||
- name: THUMBNAIL_THREADS
|
||||
value: "1"
|
||||
- name: GOMAXPROCS
|
||||
valueFrom:
|
||||
resourceFieldRef:
|
||||
resource: limits.cpu
|
||||
```
|
||||
|
||||
Do not repeat a variable the chart already sets (for example `LOG_LEVEL`):
|
||||
Kubernetes keeps the last entry, but server-side apply (Argo CD
|
||||
`ServerSideApply=true`) can reject the duplicate name. An entry without a `name`,
|
||||
or a name repeated within one `extraEnv`, fails the render. Settings that stay
|
||||
should get their own documented value, as `kerberospipeline.thumbnail.rangeDownload` did.
|
||||
|
||||
### Hardened Hub workers (opt-in, chart 0.167.3)
|
||||
|
||||
The worker templates accept **per-component** `securityContext` (container) and
|
||||
@@ -539,6 +583,44 @@ Both settings default to off; the API setting applies only to Hub API pods in
|
||||
|
||||
Validate rendering with `bash scripts/check-hub-ask.sh` from the repository root.
|
||||
|
||||
### Redaction plans
|
||||
|
||||
A redaction plan is the saved state of the redaction editor for one video: a
|
||||
list of regions to hide, each with its own style (blur, pixelate or black),
|
||||
frame range and positions. With plans the editor is no longer limited to the
|
||||
tracks a detector found, and it keeps a draft per video.
|
||||
|
||||
```yaml
|
||||
kerberoshub:
|
||||
api:
|
||||
redactionPlans:
|
||||
enabled: true
|
||||
```
|
||||
|
||||
One value switches both sides: `REDACTION_PLANS_ENABLED` on Hub API and
|
||||
`FEATURE_REDACTION_PLANS_ENABLED` on the frontend (and the demo frontend). The
|
||||
frontend cannot be switched on without the API. It defaults to off.
|
||||
|
||||
Switch it on only when all three are in place:
|
||||
|
||||
- **Redaction worker:** the `hub-pipeline-redaction` worker that consumes this
|
||||
deployment's redaction queue is newer than v1.2.15. An older worker finds no
|
||||
regions in a plan-only job and stores an unchanged copy of the video as a
|
||||
completed redaction. Check the worker that really renders the jobs: a
|
||||
deployment without its own worker has them rendered by another one on the
|
||||
same queue.
|
||||
- **Hub API:** an image with redaction plans. Until then the variable is
|
||||
ignored and `regions` edits are refused.
|
||||
- **Frontend:** an image with redaction plans. Until then the variable is
|
||||
ignored and the editor works on detector tracks only.
|
||||
|
||||
While it is off, Hub API refuses redaction edits of type `regions` and answers
|
||||
404 on the plan and draft routes. Redactions made from detector tracks work
|
||||
with the setting on or off.
|
||||
|
||||
Validate rendering with `bash scripts/check-hub-redaction-plans.sh` from the
|
||||
repository root.
|
||||
|
||||
### Passkeys
|
||||
|
||||
Users and sub-users can create and manage their own passkeys in **Profile >
|
||||
@@ -836,6 +918,9 @@ kerberospipeline:
|
||||
| `mqtt.password` | MQTT (Vernemq) password, by default `'yourpassword'`. | `"yourpassword"` |
|
||||
| `mqtt.legacy.host` | Legacy MQTT broker host used for backward-compatible clients. | `""` |
|
||||
| `mqtt.legacy.port` | Legacy MQTT broker port used for backward-compatible clients. | `""` |
|
||||
| `mqtt.signals.enabled` | Switches hub-api's MQTT signals on (sets `MQTT_SIGNALS_ENABLED`). Signals are content-free messages (only `{"at": time}`, not retained) on opaque topics, for listeners such as cha-ching that play a sound. A signal is sent only when this is `true`, `uri` is set and its event has a topic, so an environment can keep its topics configured with signals off. Needs hub-api with MQTT signals (uug-ai/hub-api#899). | `false` |
|
||||
| `mqtt.signals.uri` | Broker hub-api publishes signals on (sets `MQTT_URI`), for example `tcp://mqtt.kerberos.io:1883` or `wss://mqtt.kerberos.io:8443/mqtt`; the login is `mqtt.username` / `mqtt.password`. | `""` |
|
||||
| `mqtt.signals.registrationTopic` | Topic signalled after a successful `/register` (sets `MQTT_REGISTRATION_TOPIC`). Use an opaque identifier such as `sound/a31dc38882fd5460`: on a public broker the topic is visible to anyone subscribed to it. Without a topic, registrations are not signalled. | `""` |
|
||||
| `queueProvider` | The queue we are using for the [pipeline](https://doc.kerberos.io/hub/pipeline/): 'SQS', 'KAFKA' or `RABBITMQ`. | `"RABBITMQ"` |
|
||||
| `queueName` | The event queue which is propagating messages in the [Kerberos Hub pipeline](https://doc.kerberos.io/hub/pipeline/). | `"kcloud-event-queue"` |
|
||||
| `rabbitmq.host` | RabbitMQ host, by default `'rabbitmq.yourdomain.com:5671'` | `"rabbitmq.rabbitmq:5672"` |
|
||||
@@ -856,10 +941,6 @@ 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"` |
|
||||
@@ -926,6 +1007,7 @@ kerberospipeline:
|
||||
| `kerberoshub.api.accountDeletion.enabled` | An owner can delete their own account on the profile page: sets `FEATURE_ACCOUNT_DELETION_ENABLED` on hub-api and the frontend. A deletion locks the account at once and is erased after `graceDays`. An account that is already locked stays locked, and can still be reactivated, when this is switched off again. | `false` |
|
||||
| `kerberoshub.api.accountDeletion.graceDays` | Days a requested deletion can still be cancelled by signing in, 0 to 30 (`ACCOUNT_DELETION_GRACE_DAYS`). | `14` |
|
||||
| `kerberoshub.api.organisationDeletion.enabled` | The primary owner of an organisation can delete it in the organisation settings: sets `FEATURE_ORGANISATION_DELETION_ENABLED` on hub-api and the frontend. A deletion closes the organisation to every member at once and is erased after `accountDeletion.graceDays` by the `kerberoshub.cleanup.accountDeletion.purge` worker; members keep their accounts and their other organisations. An organisation that is already closed stays closed, and its primary owner can still reopen it, when this is switched off again. | `false` |
|
||||
| `kerberoshub.api.redactionPlans.enabled` | Redaction plans: the redaction editor saves and submits a list of regions, each with its own style and frame range, and keeps a draft per video. Sets `REDACTION_PLANS_ENABLED` on hub-api, which then accepts redaction edits of type `regions`, stores their plan and serves the plan and draft routes, and `FEATURE_REDACTION_PLANS_ENABLED` on the frontend. Needs Hub API and frontend images with redaction plans, and a `hub-pipeline-redaction` worker newer than v1.2.15 rendering this deployment's jobs: an older worker finds no regions in such a job and stores an unchanged copy of the video as a completed redaction. While it is off, hub-api refuses `regions` edits and the editor works on detector tracks only. | `false` |
|
||||
| `kerberoshub.api.mediaProxy.enabled` | Serve media through hub-api (`/media/proxy`) instead of handing out Vault/storage URLs, hiding the storage endpoint from clients. | `false` |
|
||||
| `kerberoshub.api.mediaProxy.publicUrl` | Public hub-api base URL used in proxied media URLs. Defaults to `{schema}://{url}`. | `""` |
|
||||
| `kerberoshub.api.mediaProxy.key` | Key used to encrypt proxied media URLs (`openssl rand -hex 32`). Defaults to a key derived from `jwtSecret`. | `""` |
|
||||
@@ -1050,6 +1132,7 @@ kerberospipeline:
|
||||
| `kerberoshub.frontend.features.liveview.paginationMode` | Liveview behavior setting: `paginationMode` (`scroll`, `numbered` or `maxStreams`). | `"scroll"` |
|
||||
| `kerberoshub.frontend.features.liveview.pageSize` | Liveview behavior setting: `pageSize` (max streams shown per page in `numbered` mode). | `"6"` |
|
||||
| `kerberoshub.frontend.features.liveview.maxStreams` | Liveview behavior setting: `maxStreams`. | `"-1"` |
|
||||
| `kerberoshub.frontend.features.videowall.defaultViewingMode` | Viewing mode pre-selected when creating a videowall: `live` or `preview`. Each videowall can still change it in its settings, and a wall whose liveview permission does not allow live opens in preview. | `"live"` |
|
||||
| `kerberoshub.frontend.features.chart.colors` | Ordered colors shared by chart series and marker detection overlays. | `["#84569f", "#3ba7ff", "#ff5c8a", "#4ad991", "#ffb84d", "#ff7043"]` |
|
||||
| `kerberoshub.frontend.features.chart.colorChartSelectionFill` | Fill color for chart selection regions. | `"rgba(132, 86, 159, 0.07)"` |
|
||||
| `kerberoshub.frontend.features.chart.colorChartSelectionStroke` | Stroke color for chart selection regions. | `"rgba(132, 86, 159, 0.4)"` |
|
||||
@@ -1256,6 +1339,8 @@ kerberospipeline:
|
||||
| `kerberospipeline.thumbnail.tag` | The Docker image tag/version. | `"v1.3.25"` |
|
||||
| `kerberospipeline.thumbnail.replicas` | Number of replicas for `kerberospipeline.thumbnail`. | `2` |
|
||||
| `kerberospipeline.thumbnail.prefetchCount` | Max unacknowledged RabbitMQ messages per pod (`RABBITMQ_PREFETCH_COUNT`); `0` keeps the service default of 5. Requires hub-pipeline-thumbnail ≥ v1.3.15. | `0` |
|
||||
| `kerberospipeline.thumbnail.rangeDownload` | Download only the fragments around the requested frame with HTTP range requests instead of the whole recording (`THUMBNAIL_RANGE_DOWNLOAD`); falls back to the whole recording when a recording has no segment index. Older images ignore it. | `false` |
|
||||
| `kerberospipeline.<worker>.extraEnv` | Extra container env for that pipeline worker, after the chart's own variables; see [Extra environment for pipeline workers](#extra-environment-for-pipeline-workers-chart-02060). | `[]` |
|
||||
| `kerberospipeline.sprite.prefetchCount` | Max unacknowledged RabbitMQ messages per pod (`RABBITMQ_PREFETCH_COUNT`); `0` keeps the service default of 5. Requires hub-pipeline-sprite ≥ v1.1.21. | `0` |
|
||||
| `kerberospipeline.thumbnail.logLevel` | Log verbosity level for `kerberospipeline.thumbnail`. | `"info"` |
|
||||
| `kerberospipeline.thumbnail.quality` | Configuration value for `kerberospipeline.thumbnail.quality`. | `"1"` |
|
||||
@@ -1324,6 +1409,7 @@ kerberospipeline:
|
||||
| `email.templates.deviceGroupTitle` | Email subject title for the `device_group` template. | `"[Device] Several cameras changed status"` |
|
||||
| `email.templates.recording` | The template for recording check alerts (a continuously recording camera that is online but uploads no recordings, and again when it records). Empty uses `recording` with SMTP; for SendGrid or Mailgun set the template id, otherwise they use `device`. See *Camera recordings* below. | `""` |
|
||||
| `email.templates.recordingTitle` | Email subject for recording check alerts. Empty uses "[Device] A camera stopped recording", "[Device] A camera is recording again" and their forms for several cameras. | `""` |
|
||||
| `email.customTemplates` | Email templates of this deployment, by file name (`<template>.html` / `<template>.txt`). Mounted read-only at `/mail/templates` on hub-api, pipe-notify and hub-monitor-device from the `hub-email-templates` ConfigMap; each replaces the built-in template with the same name when sending with SMTP. Other file names fail the render. | `{}` |
|
||||
| `email.mailgun.apiKey` | The Mailgun API key linked to your Mailgun domain. | `""` |
|
||||
| `imagePullSecrets.name` | Docker registry secret name, which is also granted with the license. This allows you to download the Docker images. | `""` |
|
||||
| `kerberoshub.frontend.ssoDomain` | The domain that's being used to activate SSO from the login page. | `""` |
|
||||
@@ -1336,7 +1422,7 @@ Every email Hub sends is a template: an HTML file, plus a plain-text `.txt` vers
|
||||
#### Which template is used
|
||||
|
||||
- `email.templates.<name>` sets the template name for each email (for example `email.templates.detection: "detection"`).
|
||||
- With `email.provider: smtp`, Hub reads `/mail/templates/<name>.html` and `/mail/templates/<name>.txt` from the container. If the files are not there, it uses its built-in template with that name. To use your own, mount a volume at `/mail` (see the commented `custom-email-templates` volume in `values.yaml`). The [`custom-layout/templates`](custom-layout/templates) folder holds a complete set to start from.
|
||||
- With `email.provider: smtp`, Hub reads `/mail/templates/<name>.html` and `/mail/templates/<name>.txt` from the container. If the files are not there, it uses its built-in template with that name. Each service has built-in templates for the emails it sends: hub-api for welcome, activate, forgot, share, share_case, share_case_otp, assign_task and invitation; pipe-notify for detection; hub-monitor-device for device, device_group and recording. To use your own, set them in `email.customTemplates` (file name → content). The chart puts them in the `hub-email-templates` ConfigMap and mounts it read-only at `/mail/templates` on those three services. A volume mounted at `/mail` (the commented `custom-email-templates` volume in `values.yaml`) still works when `email.customTemplates` is empty. The [`custom-layout/templates`](custom-layout/templates) folder holds a complete set to start from.
|
||||
- With `email.provider: mailgun`, `<name>` is a template stored in your Mailgun account. Mailgun receives `user`, `text`, `link`, `numberOfMedia`, `dataUsage` and the email-specific values below as template variables. The computed values (dates, camera, sites, groups, thumbnail) are only filled in with `smtp`.
|
||||
- Alert emails (`detection`) are only sent when `email.provider` is `smtp`.
|
||||
- A placeholder that has no value for that email stays in the email as literal text, so only use the placeholders listed for it. The bundled templates contain `{{tab1_href}}`, `{{tab1_title}}`, `{{tab2_href}}` and `{{tab2_title}}`; these are not filled in.
|
||||
|
||||
@@ -169,3 +169,33 @@ Use: fromJsonArray (include "hub.audit.destinations" .)
|
||||
{{- end -}}
|
||||
{{- toJson $resolved -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Extra container env for a pipeline service, from <component>.extraEnv: a list
|
||||
of Kubernetes EnvVar entries (name + value, or name + valueFrom), rendered after
|
||||
every variable the chart sets. Use it for worker settings the chart has no
|
||||
value for yet.
|
||||
|
||||
Do not repeat a variable the chart already sets: Kubernetes keeps the last
|
||||
entry, but server-side apply (Argo CD ServerSideApply) can reject a duplicate
|
||||
name. Names repeated within extraEnv itself fail the render.
|
||||
|
||||
Usage, as the last line of the container's env list:
|
||||
{{- include "hub.pipeline.extraEnv" (dict "path" "kerberospipeline.thumbnail" "values" $.Values.kerberospipeline.thumbnail) }}
|
||||
*/}}
|
||||
{{- define "hub.pipeline.extraEnv" -}}
|
||||
{{- $env := (.values | default dict).extraEnv | default list -}}
|
||||
{{- $seen := dict -}}
|
||||
{{- range $i, $var := $env -}}
|
||||
{{- if not (and (kindIs "map" $var) $var.name) -}}
|
||||
{{- fail (printf "%s.extraEnv[%d] needs a name" $.path $i) -}}
|
||||
{{- end -}}
|
||||
{{- if hasKey $seen $var.name -}}
|
||||
{{- fail (printf "%s.extraEnv sets %s more than once" $.path $var.name) -}}
|
||||
{{- end -}}
|
||||
{{- $_ := set $seen $var.name true -}}
|
||||
{{- end -}}
|
||||
{{- with $env }}
|
||||
{{ toYaml . | indent 8 }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
{{- with .Values.email.customTemplates }}
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: hub-email-templates
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
data:
|
||||
# email.customTemplates, mounted at /mail/templates on hub-api, pipe-notify
|
||||
# and hub-monitor-device. Each file replaces the built-in template with the
|
||||
# same name when the services send with SMTP.
|
||||
{{- range $file, $content := . }}
|
||||
{{- if not (regexMatch "^[a-z0-9_]+\\.(html|txt)$" $file) }}
|
||||
{{- fail (printf "email.customTemplates: %q must be named <template>.html or <template>.txt" $file) }}
|
||||
{{- end }}
|
||||
{{ $file }}: {{ $content | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
@@ -158,7 +158,7 @@ spec:
|
||||
{{- $mongodbTLS := .Values.mongodb.tls }}
|
||||
{{- $classificationCatalogEnabled := .Values.classificationCatalogEnabled }}
|
||||
{{- $deviceSystemTagsEnabled := include "kerberoshub.deviceTags.system.enabled" . }}
|
||||
{{- if or $workflowConfiguration.enabled $classificationCatalogEnabled $deviceSystemTagsEnabled .Values.subscriptions.plans.enabled .Values.kerberoshub.api.volumes (and $serverTLS.enabled $serverTLS.secretName) (and $mongodbTLS.enabled $mongodbTLS.existingSecret) }}
|
||||
{{- if or $workflowConfiguration.enabled $classificationCatalogEnabled $deviceSystemTagsEnabled .Values.subscriptions.plans.enabled .Values.email.customTemplates .Values.kerberoshub.api.volumes (and $serverTLS.enabled $serverTLS.secretName) (and $mongodbTLS.enabled $mongodbTLS.existingSecret) }}
|
||||
volumes:
|
||||
{{- if $workflowConfiguration.enabled }}
|
||||
- name: workflow-configuration
|
||||
@@ -221,6 +221,11 @@ spec:
|
||||
configMap:
|
||||
name: hub-plans
|
||||
{{- end }}
|
||||
{{- if .Values.email.customTemplates }}
|
||||
- name: email-templates
|
||||
configMap:
|
||||
name: hub-email-templates
|
||||
{{- end }}
|
||||
{{- with .Values.kerberoshub.api.volumes }}
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
@@ -252,7 +257,7 @@ spec:
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
{{- if or $workflowConfiguration.enabled $classificationCatalogEnabled $deviceSystemTagsEnabled .Values.subscriptions.plans.enabled .Values.kerberoshub.api.volumeMounts (and $serverTLS.enabled $serverTLS.secretName) (and $mongodbTLS.enabled $mongodbTLS.existingSecret) }}
|
||||
{{- if or $workflowConfiguration.enabled $classificationCatalogEnabled $deviceSystemTagsEnabled .Values.subscriptions.plans.enabled .Values.email.customTemplates .Values.kerberoshub.api.volumeMounts (and $serverTLS.enabled $serverTLS.secretName) (and $mongodbTLS.enabled $mongodbTLS.existingSecret) }}
|
||||
volumeMounts:
|
||||
{{- if $workflowConfiguration.enabled }}
|
||||
- name: workflow-configuration
|
||||
@@ -274,6 +279,11 @@ spec:
|
||||
mountPath: /etc/kerberos/plans
|
||||
readOnly: true
|
||||
{{- end }}
|
||||
{{- if .Values.email.customTemplates }}
|
||||
- name: email-templates
|
||||
mountPath: /mail/templates
|
||||
readOnly: true
|
||||
{{- end }}
|
||||
{{- with .Values.kerberoshub.api.volumeMounts}}
|
||||
{{- toYaml . | nindent 12 }}
|
||||
{{- end }}
|
||||
@@ -392,6 +402,16 @@ spec:
|
||||
value: "{{ .Values.mqtt.username }}"
|
||||
- name: MQTT_PASSWORD
|
||||
value: "{{ .Values.mqtt.password }}"
|
||||
# MQTT signals: a content-free message on an opaque topic after a
|
||||
# registration (cha-ching plays a sound); off unless enabled, with
|
||||
# a uri and the event's topic.
|
||||
{{- $signals := (.Values.mqtt | default dict).signals | default dict }}
|
||||
- name: MQTT_SIGNALS_ENABLED
|
||||
value: {{ $signals.enabled | default false | quote }}
|
||||
- name: MQTT_URI
|
||||
value: {{ $signals.uri | default "" | quote }}
|
||||
- name: MQTT_REGISTRATION_TOPIC
|
||||
value: {{ $signals.registrationTopic | default "" | quote }}
|
||||
|
||||
# TURN credentials (served via /runtime/config to authenticated
|
||||
# frontend clients; no longer exposed in the public env.js).
|
||||
@@ -442,6 +462,11 @@ spec:
|
||||
- name: FEATURE_ORGANISATION_DELETION_ENABLED
|
||||
value: {{ (.Values.kerberoshub.api.organisationDeletion | default dict).enabled | default false | quote }}
|
||||
|
||||
# Redaction plans: redaction edits of type "regions", their plans and their drafts.
|
||||
# The redaction worker must render plans before this is switched on.
|
||||
- name: REDACTION_PLANS_ENABLED
|
||||
value: {{ (.Values.kerberoshub.api.redactionPlans | default dict).enabled | default false | quote }}
|
||||
|
||||
# Onboarding: /register creates only the account; the organisation comes at first sign-in.
|
||||
# A variable already set in kerberoshub.extraEnv is left to it.
|
||||
{{- $onboarding := (.Values.organisations | default dict).onboarding | default dict }}
|
||||
@@ -602,16 +627,6 @@ 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 }}"
|
||||
|
||||
@@ -286,6 +286,10 @@ spec:
|
||||
- name: DEFAULT_LANGUAGE
|
||||
value: "{{ .Values.kerberoshub.frontend.features.i18n.defaultLanguage }}"
|
||||
|
||||
# features > videowall
|
||||
- name: FEATURE_VIDEOWALL_DEFAULT_VIEWING_MODE
|
||||
value: "{{ .Values.kerberoshub.frontend.features.videowall.defaultViewingMode }}"
|
||||
|
||||
# features > liveview
|
||||
- name: FEATURE_DEFAULT_STREAM_MODE
|
||||
value: "{{ .Values.kerberoshub.frontend.features.liveview.defaultStreamMode }}"
|
||||
@@ -375,6 +379,9 @@ spec:
|
||||
value: "{{ .Values.kerberoshub.frontend.features.faceRedaction.enabled }}"
|
||||
- name: FEATURE_FACE_REDACTION_CLASSIFIER_TRACKS_ENABLED
|
||||
value: "{{ .Values.kerberoshub.frontend.features.faceRedaction.classifierTracksEnabled }}"
|
||||
# Follows hub-api: the editor only sends redaction plans where the API accepts them.
|
||||
- name: FEATURE_REDACTION_PLANS_ENABLED
|
||||
value: "{{ (.Values.kerberoshub.api.redactionPlans | default dict).enabled | default false }}"
|
||||
|
||||
# features > media
|
||||
- name: FEATURE_MEDIA_FORWARD_ENABLED
|
||||
|
||||
@@ -369,6 +369,10 @@ spec:
|
||||
- name: DEFAULT_LANGUAGE
|
||||
value: "{{ .Values.kerberoshub.frontend.features.i18n.defaultLanguage }}"
|
||||
|
||||
# features > videowall
|
||||
- name: FEATURE_VIDEOWALL_DEFAULT_VIEWING_MODE
|
||||
value: "{{ .Values.kerberoshub.frontend.features.videowall.defaultViewingMode }}"
|
||||
|
||||
# features > liveview
|
||||
- name: FEATURE_DEFAULT_STREAM_MODE
|
||||
value: "{{ .Values.kerberoshub.frontend.features.liveview.defaultStreamMode }}"
|
||||
@@ -469,6 +473,9 @@ spec:
|
||||
value: "{{ .Values.kerberoshub.frontend.features.faceRedaction.enabled }}"
|
||||
- name: FEATURE_FACE_REDACTION_CLASSIFIER_TRACKS_ENABLED
|
||||
value: "{{ .Values.kerberoshub.frontend.features.faceRedaction.classifierTracksEnabled }}"
|
||||
# Follows hub-api: the editor only sends redaction plans where the API accepts them.
|
||||
- name: FEATURE_REDACTION_PLANS_ENABLED
|
||||
value: "{{ (.Values.kerberoshub.api.redactionPlans | default dict).enabled | default false }}"
|
||||
|
||||
# features > media
|
||||
- name: FEATURE_MEDIA_FORWARD_ENABLED
|
||||
|
||||
@@ -34,8 +34,13 @@ spec:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- $mongodbTLS := .Values.mongodb.tls }}
|
||||
{{- if or .Values.kerberoshub.monitordevice.volumes (and $mongodbTLS.enabled $mongodbTLS.existingSecret) }}
|
||||
{{- if or .Values.kerberoshub.monitordevice.volumes .Values.email.customTemplates (and $mongodbTLS.enabled $mongodbTLS.existingSecret) }}
|
||||
volumes:
|
||||
{{- if .Values.email.customTemplates }}
|
||||
- name: email-templates
|
||||
configMap:
|
||||
name: hub-email-templates
|
||||
{{- end }}
|
||||
{{- with .Values.kerberoshub.monitordevice.volumes }}
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
@@ -65,8 +70,13 @@ spec:
|
||||
containerPort: 8080
|
||||
protocol: TCP
|
||||
{{- end }}
|
||||
{{- if or .Values.kerberoshub.monitordevice.volumeMounts (and $mongodbTLS.enabled $mongodbTLS.existingSecret) }}
|
||||
{{- if or .Values.kerberoshub.monitordevice.volumeMounts .Values.email.customTemplates (and $mongodbTLS.enabled $mongodbTLS.existingSecret) }}
|
||||
volumeMounts:
|
||||
{{- if .Values.email.customTemplates }}
|
||||
- name: email-templates
|
||||
mountPath: /mail/templates
|
||||
readOnly: true
|
||||
{{- end }}
|
||||
{{- with .Values.kerberoshub.monitordevice.volumeMounts}}
|
||||
{{- toYaml . | nindent 12 }}
|
||||
{{- end }}
|
||||
@@ -129,16 +139,6 @@ 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 }}
|
||||
|
||||
@@ -125,6 +125,7 @@ spec:
|
||||
value: "{{ .Values.opentelemetry.collector.endpoint }}"
|
||||
{{- include "hub.opentelemetry.samplerEnv" $ | trim | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- include "hub.pipeline.extraEnv" (dict "path" "kerberoshub.services.workflows" "values" $.Values.kerberoshub.services.workflows) }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
@@ -168,6 +168,7 @@ spec:
|
||||
value: "{{ .Values.opentelemetry.collector.endpoint }}"
|
||||
{{- include "hub.opentelemetry.samplerEnv" $ | trim | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- include "hub.pipeline.extraEnv" (dict "path" "kerberospipeline.analysis" "values" $.Values.kerberospipeline.analysis) }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
@@ -99,6 +99,7 @@ spec:
|
||||
value: "{{ .Values.opentelemetry.collector.endpoint }}"
|
||||
{{- include "hub.opentelemetry.samplerEnv" $ | trim | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- include "hub.pipeline.extraEnv" (dict "path" "kerberospipeline.counting" "values" $.Values.kerberospipeline.counting) }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
@@ -99,6 +99,7 @@ spec:
|
||||
value: "{{ .Values.opentelemetry.collector.endpoint }}"
|
||||
{{- include "hub.opentelemetry.samplerEnv" $ | trim | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- include "hub.pipeline.extraEnv" (dict "path" "kerberospipeline.dominantColor" "values" $.Values.kerberospipeline.dominantColor) }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
@@ -112,6 +112,7 @@ spec:
|
||||
value: "{{ .Values.opentelemetry.collector.endpoint }}"
|
||||
{{- include "hub.opentelemetry.samplerEnv" $ | trim | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- include "hub.pipeline.extraEnv" (dict "path" "kerberospipeline.event" "values" $.Values.kerberospipeline.event) }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
@@ -115,6 +115,20 @@ spec:
|
||||
- name: STORAGE_ARCHIVE_SECRET_KEY
|
||||
value: "{{ .Values.kerberosvault.archive.secretkey }}"
|
||||
|
||||
# Forward requests: an export asks an edge Vault to forward the
|
||||
# recordings of the case that are still metadata-only, over MQTT,
|
||||
# with the broker credentials Hub uses (mqtt.username / password).
|
||||
# Nothing is requested while mqttUri is empty.
|
||||
{{- $forward := .Values.kerberospipeline.export.forwardRequests | default dict }}
|
||||
{{- if $forward.mqttUri }}
|
||||
- name: MQTT_URI
|
||||
value: {{ $forward.mqttUri | quote }}
|
||||
- name: MQTT_USERNAME
|
||||
value: {{ .Values.mqtt.username | quote }}
|
||||
- name: MQTT_PASSWORD
|
||||
value: {{ .Values.mqtt.password | quote }}
|
||||
{{- end }}
|
||||
|
||||
# Sprites
|
||||
- name: SPRITE_ENABLED
|
||||
value: "{{ .Values.kerberospipeline.sprite.enabled }}"
|
||||
@@ -144,6 +158,7 @@ spec:
|
||||
value: "{{ .Values.opentelemetry.collector.endpoint }}"
|
||||
{{- include "hub.opentelemetry.samplerEnv" $ | trim | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- include "hub.pipeline.extraEnv" (dict "path" "kerberospipeline.export" "values" $.Values.kerberospipeline.export) }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
@@ -151,6 +151,7 @@ spec:
|
||||
value: "{{ .Values.opentelemetry.collector.endpoint }}"
|
||||
{{- include "hub.opentelemetry.samplerEnv" $ | trim | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- include "hub.pipeline.extraEnv" (dict "path" "kerberospipeline.monitor" "values" $.Values.kerberospipeline.monitor) }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
@@ -132,6 +132,7 @@ spec:
|
||||
value: "{{ .Values.opentelemetry.collector.endpoint }}"
|
||||
{{- include "hub.opentelemetry.samplerEnv" $ | trim | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- include "hub.pipeline.extraEnv" (dict "path" "kerberospipeline.notifyTest" "values" $.Values.kerberospipeline.notifyTest) }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
@@ -38,8 +38,13 @@ spec:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- $mongodbTLS := .Values.mongodb.tls }}
|
||||
{{- if or .Values.kerberospipeline.notify.volumes (and $mongodbTLS.enabled $mongodbTLS.existingSecret) }}
|
||||
{{- if or .Values.kerberospipeline.notify.volumes .Values.email.customTemplates (and $mongodbTLS.enabled $mongodbTLS.existingSecret) }}
|
||||
volumes:
|
||||
{{- if .Values.email.customTemplates }}
|
||||
- name: email-templates
|
||||
configMap:
|
||||
name: hub-email-templates
|
||||
{{- end }}
|
||||
{{- with .Values.kerberospipeline.notify.volumes }}
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
@@ -63,8 +68,13 @@ spec:
|
||||
resources:
|
||||
{{- toYaml . | nindent 12 }}
|
||||
{{- end }}
|
||||
{{- if or .Values.kerberospipeline.notify.volumeMounts (and $mongodbTLS.enabled $mongodbTLS.existingSecret) }}
|
||||
{{- if or .Values.kerberospipeline.notify.volumeMounts .Values.email.customTemplates (and $mongodbTLS.enabled $mongodbTLS.existingSecret) }}
|
||||
volumeMounts:
|
||||
{{- if .Values.email.customTemplates }}
|
||||
- name: email-templates
|
||||
mountPath: /mail/templates
|
||||
readOnly: true
|
||||
{{- end }}
|
||||
{{- with .Values.kerberospipeline.notify.volumeMounts}}
|
||||
{{- toYaml . | nindent 12 }}
|
||||
{{- end }}
|
||||
@@ -186,6 +196,7 @@ spec:
|
||||
value: "{{ .Values.opentelemetry.collector.endpoint }}"
|
||||
{{- include "hub.opentelemetry.samplerEnv" $ | trim | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- include "hub.pipeline.extraEnv" (dict "path" "kerberospipeline.notify" "values" $.Values.kerberospipeline.notify) }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
@@ -108,6 +108,7 @@ spec:
|
||||
value: "{{ .Values.opentelemetry.collector.endpoint }}"
|
||||
{{- include "hub.opentelemetry.samplerEnv" $ | trim | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- include "hub.pipeline.extraEnv" (dict "path" "kerberospipeline.sequence" "values" $.Values.kerberospipeline.sequence) }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
@@ -118,6 +118,7 @@ spec:
|
||||
value: "{{ .Values.opentelemetry.collector.endpoint }}"
|
||||
{{- include "hub.opentelemetry.samplerEnv" $ | trim | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- include "hub.pipeline.extraEnv" (dict "path" "kerberospipeline.sprite" "values" $.Values.kerberospipeline.sprite) }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
@@ -116,6 +116,7 @@ spec:
|
||||
value: "{{ .Values.opentelemetry.collector.endpoint }}"
|
||||
{{- include "hub.opentelemetry.samplerEnv" $ | trim | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- include "hub.pipeline.extraEnv" (dict "path" "kerberospipeline.throttler" "values" $.Values.kerberospipeline.throttler) }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
@@ -109,6 +109,8 @@ spec:
|
||||
value: "{{ .Values.kerberospipeline.thumbnail.height }}"
|
||||
- name: THUMBNAIL_SKIP_NON_KEYFRAMES
|
||||
value: "{{ .Values.kerberospipeline.thumbnail.skipNonKeyframes }}"
|
||||
- name: THUMBNAIL_RANGE_DOWNLOAD
|
||||
value: "{{ .Values.kerberospipeline.thumbnail.rangeDownload | default false }}"
|
||||
|
||||
# There is an option to store the thumbnails in a storage provider in Kerberos Vault.
|
||||
# This will lower storage in mongodb.
|
||||
@@ -131,6 +133,7 @@ spec:
|
||||
value: "{{ .Values.opentelemetry.collector.endpoint }}"
|
||||
{{- include "hub.opentelemetry.samplerEnv" $ | trim | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- include "hub.pipeline.extraEnv" (dict "path" "kerberospipeline.thumbnail" "values" $.Values.kerberospipeline.thumbnail) }}
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
|
||||
+54
-12
@@ -198,6 +198,16 @@ mqtt:
|
||||
legacy:
|
||||
host: ""
|
||||
port: ""
|
||||
# Signals: hub-api publishes a content-free message (only {"at": time}, not
|
||||
# retained) on an opaque topic when something happens, for listeners such as
|
||||
# cha-ching that play a sound on a speaker. The broker login is
|
||||
# mqtt.username / mqtt.password. Off unless enabled is true, uri is set and
|
||||
# the event has a topic: enabled switches every event at once, each topic
|
||||
# only says where its event goes.
|
||||
signals:
|
||||
enabled: false # Sets MQTT_SIGNALS_ENABLED on hub-api.
|
||||
uri: "" # Broker for hub-api, e.g. tcp://mqtt.kerberos.io:1883 or wss://mqtt.kerberos.io:8443/mqtt (MQTT_URI).
|
||||
registrationTopic: "" # Signalled after a successful /register: an opaque identifier, e.g. sound/a31dc38882fd5460 (MQTT_REGISTRATION_TOPIC).
|
||||
################################################################
|
||||
# AMQP configuration (asynchronous processing for microservices)
|
||||
#
|
||||
@@ -248,18 +258,6 @@ 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/
|
||||
############################################
|
||||
@@ -518,6 +516,15 @@ kerberoshub:
|
||||
# kerberoshub.cleanup.accountDeletion.purge worker does the erasing.
|
||||
organisationDeletion:
|
||||
enabled: false # Serves the delete route on hub-api and shows "Delete organisation" in the frontend.
|
||||
# Redaction plans: the redaction editor saves and submits a list of
|
||||
# regions, each with its own style and frame range, and keeps a draft per
|
||||
# video. hub-api stores the plan and sends it to the redaction worker.
|
||||
# Only switch it on once the hub-pipeline-redaction worker that renders
|
||||
# this deployment's jobs is newer than v1.2.15: an older worker finds no
|
||||
# regions in such a job and stores an unchanged copy of the video as a
|
||||
# completed redaction.
|
||||
redactionPlans:
|
||||
enabled: false # Accepts redaction plans on hub-api (REDACTION_PLANS_ENABLED) and switches the frontend's redaction editor to them (FEATURE_REDACTION_PLANS_ENABLED).
|
||||
mediaProxy:
|
||||
enabled: false
|
||||
publicUrl: "" # Optional override of the public hub-api base URL; defaults to {schema}://{url}.
|
||||
@@ -831,6 +838,9 @@ kerberoshub:
|
||||
paginationMode: "scroll" # Pagination mode in live view 'scroll', 'numbered' or 'maxStreams'
|
||||
pageSize: "6" # Max streams shown per page when paginationMode is 'numbered' (4, 8, 12, 16 or 25)
|
||||
maxStreams: "-1" # Maximum number of live streams to show in live view, -1 for unlimited
|
||||
# Videowall page
|
||||
videowall:
|
||||
defaultViewingMode: "live" # Viewing mode pre-selected when creating a videowall 'live' or 'preview'; each videowall can still change it in its settings
|
||||
# Device page
|
||||
devices:
|
||||
hideAgent: "false" # Hide the 'add agent' button in the front-end
|
||||
@@ -1232,6 +1242,7 @@ kerberoshub:
|
||||
tag: "v1.0.49"
|
||||
replicas: 1 # Number of pods for the service.
|
||||
topologySpreadConstraints: [] # Optional pod topology spread constraints (empty = none).
|
||||
extraEnv: [] # Extra container env (name + value or valueFrom), rendered after the chart's own; do not repeat a variable the chart sets.
|
||||
# Optional extra volumes / volumeMounts for this deployment (empty = none).
|
||||
#volumes:
|
||||
# - name: extra
|
||||
@@ -1401,6 +1412,7 @@ kerberospipeline:
|
||||
tag: "v1.3.11"
|
||||
replicas: 1 # Number of pods for the service.
|
||||
topologySpreadConstraints: [] # Optional pod topology spread constraints (empty = none).
|
||||
extraEnv: [] # Extra container env (name + value or valueFrom), rendered after the chart's own; do not repeat a variable the chart sets.
|
||||
# Optional extra volumes / volumeMounts for this deployment (empty = none).
|
||||
#volumes:
|
||||
# - name: extra
|
||||
@@ -1422,6 +1434,7 @@ kerberospipeline:
|
||||
tag: "v1.3.30"
|
||||
replicas: 1 # Number of pods for the service.
|
||||
topologySpreadConstraints: [] # Optional pod topology spread constraints (empty = none).
|
||||
extraEnv: [] # Extra container env (name + value or valueFrom), rendered after the chart's own; do not repeat a variable the chart sets.
|
||||
# Optional extra volumes / volumeMounts for this deployment (empty = none).
|
||||
#volumes:
|
||||
# - name: extra
|
||||
@@ -1443,6 +1456,7 @@ kerberospipeline:
|
||||
tag: "v1.7.15"
|
||||
replicas: 1 # Number of pods for the service.
|
||||
topologySpreadConstraints: [] # Optional pod topology spread constraints (empty = none).
|
||||
extraEnv: [] # Extra container env (name + value or valueFrom), rendered after the chart's own; do not repeat a variable the chart sets.
|
||||
# Optional extra volumes / volumeMounts for this deployment (empty = none).
|
||||
#volumes:
|
||||
# - name: extra
|
||||
@@ -1466,6 +1480,7 @@ kerberospipeline:
|
||||
tag: "v1.2.11"
|
||||
replicas: 1 # Number of pods for the service.
|
||||
topologySpreadConstraints: [] # Optional pod topology spread constraints (empty = none).
|
||||
extraEnv: [] # Extra container env (name + value or valueFrom), rendered after the chart's own; do not repeat a variable the chart sets.
|
||||
# Optional extra volumes / volumeMounts for this deployment (empty = none).
|
||||
#volumes:
|
||||
# - name: extra
|
||||
@@ -1491,6 +1506,7 @@ kerberospipeline:
|
||||
audit:
|
||||
enabled: true
|
||||
topologySpreadConstraints: [] # Optional pod topology spread constraints (empty = none).
|
||||
extraEnv: [] # Extra container env (name + value or valueFrom), rendered after the chart's own; do not repeat a variable the chart sets.
|
||||
logLevel: "info" # possible values: trace, debug, info, warn, error
|
||||
notificationExpiryMinutes: "15" # Maximum recording age before notification delivery; 0 disables expiry.
|
||||
resources:
|
||||
@@ -1511,6 +1527,7 @@ kerberospipeline:
|
||||
tag: "v1.2.8"
|
||||
replicas: 1 # Number of pods for the service.
|
||||
topologySpreadConstraints: [] # Optional pod topology spread constraints (empty = none).
|
||||
extraEnv: [] # Extra container env (name + value or valueFrom), rendered after the chart's own; do not repeat a variable the chart sets.
|
||||
resources:
|
||||
requests:
|
||||
memory: 10Mi
|
||||
@@ -1532,6 +1549,7 @@ kerberospipeline:
|
||||
tag: "v1.8.31"
|
||||
replicas: 1 # Number of pods for the service.
|
||||
topologySpreadConstraints: [] # Optional pod topology spread constraints (empty = none).
|
||||
extraEnv: [] # Extra container env (name + value or valueFrom), rendered after the chart's own; do not repeat a variable the chart sets.
|
||||
# Optional extra volumes / volumeMounts for this deployment (empty = none).
|
||||
#volumes:
|
||||
# - name: extra
|
||||
@@ -1574,6 +1592,7 @@ kerberospipeline:
|
||||
tag: "v2.0.11"
|
||||
replicas: 3 # Number of pods for the service.
|
||||
topologySpreadConstraints: [] # Optional pod topology spread constraints (empty = none).
|
||||
extraEnv: [] # Extra container env (name + value or valueFrom), rendered after the chart's own; do not repeat a variable the chart sets.
|
||||
# Optional extra volumes / volumeMounts for this deployment (empty = none).
|
||||
#volumes:
|
||||
# - name: extra
|
||||
@@ -1601,6 +1620,7 @@ kerberospipeline:
|
||||
replicas: 2 # Number of pods for the service.
|
||||
prefetchCount: 0 # Max unacknowledged RabbitMQ messages per pod; 0 = service default (5).
|
||||
topologySpreadConstraints: [] # Optional pod topology spread constraints (empty = none).
|
||||
extraEnv: [] # Extra container env (name + value or valueFrom), rendered after the chart's own; do not repeat a variable the chart sets.
|
||||
# Optional extra volumes / volumeMounts for this deployment (empty = none).
|
||||
#volumes:
|
||||
# - name: extra
|
||||
@@ -1613,6 +1633,7 @@ kerberospipeline:
|
||||
width: "600"
|
||||
height: "-1"
|
||||
skipNonKeyframes: true # Decode keyframes only for faster extraction; disable when exact-frame output is required.
|
||||
rangeDownload: false # Download only the fragments around the requested frame (HTTP Range) instead of the whole recording; needs hub-pipeline-thumbnail with THUMBNAIL_RANGE_DOWNLOAD support.
|
||||
kerberosvault:
|
||||
enabled: true # If you want to use Kerberos Vault to store the thumbnails
|
||||
resources:
|
||||
@@ -1633,6 +1654,7 @@ kerberospipeline:
|
||||
tag: "v2.0.7"
|
||||
replicas: 1 # Number of pods for the service.
|
||||
topologySpreadConstraints: [] # Optional pod topology spread constraints (empty = none).
|
||||
extraEnv: [] # Extra container env (name + value or valueFrom), rendered after the chart's own; do not repeat a variable the chart sets.
|
||||
# Optional extra volumes / volumeMounts for this deployment (empty = none).
|
||||
#volumes:
|
||||
# - name: extra
|
||||
@@ -1656,6 +1678,7 @@ kerberospipeline:
|
||||
replicas: 5 # Number of pods for the service.
|
||||
prefetchCount: 0 # Max unacknowledged RabbitMQ messages per pod; 0 = service default (5).
|
||||
topologySpreadConstraints: [] # Optional pod topology spread constraints (empty = none).
|
||||
extraEnv: [] # Extra container env (name + value or valueFrom), rendered after the chart's own; do not repeat a variable the chart sets.
|
||||
# Optional extra volumes / volumeMounts for this deployment (empty = none).
|
||||
#volumes:
|
||||
# - name: extra
|
||||
@@ -1682,7 +1705,15 @@ kerberospipeline:
|
||||
tag: "v1.2.23"
|
||||
replicas: 2 # Number of pods for the service.
|
||||
topologySpreadConstraints: [] # Optional pod topology spread constraints (empty = none).
|
||||
extraEnv: [] # Extra container env (name + value or valueFrom), rendered after the chart's own; do not repeat a variable the chart sets.
|
||||
logLevel: "info" # possible values: trace, debug, info, warn, error
|
||||
forwardRequests:
|
||||
# Broker the export worker uses to ask an edge Vault to forward the
|
||||
# recordings of a case that are still metadata-only, e.g.
|
||||
# tcp://mqtt.kerberos.io:1883 (MQTT_URI). Credentials are mqtt.username
|
||||
# and mqtt.password. Empty: nothing is requested; recordings forwarded
|
||||
# meanwhile are still picked up.
|
||||
mqttUri: ""
|
||||
# playerAssetsPath: "/custom/player-assets/" # Path to custom player.html template (overrides the embedded default)
|
||||
# volumeMounts:
|
||||
# - name: custom-player-assets
|
||||
@@ -1749,3 +1780,14 @@ email:
|
||||
# Empty uses "[Device] A camera stopped recording", "[Device] A camera is
|
||||
# recording again" and their forms for several cameras.
|
||||
recordingTitle: ""
|
||||
# Email templates of this deployment, by file name: <template>.html and
|
||||
# <template>.txt, for example detection.html. They are mounted at
|
||||
# /mail/templates on hub-api, pipe-notify and hub-monitor-device, and each
|
||||
# replaces the built-in template with the same name when sending with SMTP.
|
||||
# Templates not listed keep the built-in version. Start from
|
||||
# custom-layout/templates.
|
||||
customTemplates: {}
|
||||
# detection.html: |
|
||||
# <html>...{{text}}...{{link}}...</html>
|
||||
# detection.txt: |
|
||||
# {{text}} {{link}}
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
CHART_DIR="${1:-charts/hub}"
|
||||
|
||||
# Prints "<deployment> <variable> <value>" for the redaction plans variables.
|
||||
extract_plans() {
|
||||
awk '
|
||||
/^---/ { deployment=0; name=""; variable="" }
|
||||
/^kind: Deployment$/ { deployment=1 }
|
||||
deployment && /^ name:/ { name=$2 }
|
||||
/- name: (FEATURE_)?REDACTION_PLANS_ENABLED$/ { variable=$3; next }
|
||||
variable != "" && /value:/ {
|
||||
value=$0
|
||||
sub(/^[[:space:]]*value: /, "", value)
|
||||
print name, variable, value
|
||||
variable=""
|
||||
}
|
||||
' | sort
|
||||
}
|
||||
|
||||
assert_plans() {
|
||||
local rendered="$1" expected="$2" actual
|
||||
actual="$(printf '%s\n' "$rendered" | extract_plans)"
|
||||
if [[ "$actual" != "$expected" ]]; then
|
||||
printf 'Unexpected redaction plans environment:\n%s\nExpected:\n%s\n' "$actual" "$expected" >&2
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
off="$(printf '%s\n' \
|
||||
'hub-api REDACTION_PLANS_ENABLED "false"' \
|
||||
'hub-frontend FEATURE_REDACTION_PLANS_ENABLED "false"')"
|
||||
on="$(printf '%s\n' \
|
||||
'hub-api REDACTION_PLANS_ENABLED "true"' \
|
||||
'hub-frontend FEATURE_REDACTION_PLANS_ENABLED "true"')"
|
||||
|
||||
assert_plans "$(helm template hub "$CHART_DIR")" "$off"
|
||||
echo "OK: redaction plans are off by default on hub-api and the frontend"
|
||||
|
||||
assert_plans "$(helm template hub "$CHART_DIR" --set kerberoshub.api.redactionPlans.enabled=true)" "$on"
|
||||
echo "OK: one value switches hub-api and the frontend on together"
|
||||
|
||||
assert_plans "$(helm template hub "$CHART_DIR" --set-string kerberoshub.api.redactionPlans.enabled=true)" "$on"
|
||||
echo "OK: the value may be given as a string"
|
||||
|
||||
assert_plans "$(helm template hub "$CHART_DIR" --set kerberoshub.api.redactionPlans=null)" "$off"
|
||||
echo "OK: values files without a redactionPlans section keep it off"
|
||||
|
||||
# The face redaction flag of the frontend does not switch plans on.
|
||||
assert_plans "$(helm template hub "$CHART_DIR" --set kerberoshub.frontend.features.faceRedaction.enabled=true)" "$off"
|
||||
echo "OK: the face redaction flag alone leaves plans off"
|
||||
|
||||
assert_plans "$(helm template hub "$CHART_DIR" --set kerberoshub.api.redactionPlans.enabled=true \
|
||||
--set kerberoshub.frontend.demoEnabled=true)" "$(printf '%s\n' \
|
||||
'hub-api REDACTION_PLANS_ENABLED "true"' \
|
||||
'hub-frontend FEATURE_REDACTION_PLANS_ENABLED "true"' \
|
||||
'hub-frontend-demo FEATURE_REDACTION_PLANS_ENABLED "true"')"
|
||||
echo "OK: the demo frontend follows the same value"
|
||||
|
||||
[[ -z "$(helm template hub "$CHART_DIR" --set mode=pipeline --set kerberoshub.api.redactionPlans.enabled=true | extract_plans)" ]]
|
||||
echo "OK (pipeline): no redaction plans environment"
|
||||
|
||||
helm lint "$CHART_DIR" --quiet --set kerberoshub.api.redactionPlans.enabled=true
|
||||
echo "All Hub redaction plans checks passed."
|
||||
Reference in New Issue
Block a user