mirror of
https://github.com/kerberos-io/helm-charts.git
synced 2026-11-26 23:50:22 +00:00
Compare commits
34
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
600391152b | ||
|
|
0561e7e5fa | ||
|
|
2d61603cb6 | ||
|
|
fddb1b28a6 | ||
|
|
c4c7325e8d | ||
|
|
11305630b9 | ||
|
|
faa2e6a7cf | ||
|
|
f29a22b086 | ||
|
|
4b60fbfa63 | ||
|
|
6c89286371 | ||
|
|
e3da09ec7a | ||
|
|
906aaf39ac | ||
|
|
7e1822c707 | ||
|
|
0d332eaed9 | ||
|
|
f680e3f1a1 | ||
|
|
051fd8101e | ||
|
|
f7bc305d93 | ||
|
|
ca70077b59 | ||
|
|
999c7e8288 | ||
|
|
fe1c4abdc5 | ||
|
|
25af112d26 | ||
|
|
c809980b4a | ||
|
|
33271c32fc | ||
|
|
1cc483a67c | ||
|
|
a6981c11c0 | ||
|
|
17960aace9 | ||
|
|
de84a423a3 | ||
|
|
698dfb4f81 | ||
|
|
2ab970a82c | ||
|
|
7f5adf2e1c | ||
|
|
17829c9b6b | ||
|
|
08de8348f6 | ||
|
|
1fdd957592 | ||
|
|
03d4571eb7 |
@@ -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.198.0
|
||||
version: 0.210.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
|
||||
|
||||
+118
-22
@@ -58,7 +58,7 @@ legacy opt-out, TLS/configuration mounts and deployment modes.
|
||||
### Hardened frontend images
|
||||
|
||||
Starting with chart **`0.170.0`**, both frontends default to shell-free
|
||||
`ghcr.io/uug-ai/hub-frontend:v1.19.42`, running as `65532:65532` on port `8080`
|
||||
`ghcr.io/uug-ai/hub-frontend` (default `v1.19.80` since chart `0.209.0`), running as `65532:65532` on port `8080`
|
||||
with a read-only root filesystem and writable `/tmp`. The Service and ingress
|
||||
remain on port `80`. Admin retains its legacy image and port `80`; its hardened
|
||||
runtime remains opt-in.
|
||||
@@ -83,20 +83,25 @@ kerberoshub:
|
||||
drop: ["ALL"]
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumes:
|
||||
- name: frontend-tmp
|
||||
emptyDir:
|
||||
medium: Memory
|
||||
sizeLimit: 16Mi
|
||||
volumeMounts:
|
||||
- name: frontend-tmp
|
||||
mountPath: /tmp
|
||||
tmp:
|
||||
sizeLimit: 16Mi
|
||||
```
|
||||
|
||||
Merge the temporary volume into any existing branding/translation mounts rather
|
||||
than replacing them. Custom files must be readable by UID `65532`; mount them
|
||||
read-only. Only `/tmp` needs writes for generated public runtime configuration
|
||||
and nginx's PID/temp files. The web root stays read-only. Health checks can use
|
||||
Since chart `0.210.0` the chart itself renders the writable `/tmp` (a
|
||||
memory-backed emptyDir named `frontend-tmp`, sized by
|
||||
`kerberoshub.frontend.tmp.sizeLimit`) for both frontends. Custom
|
||||
branding/translation entries in `kerberoshub.frontend.volumes` and
|
||||
`volumeMounts` are added next to it, so a values file that lists only the
|
||||
custom mounts no longer drops `/tmp` and crashes the pod at startup. Values
|
||||
files that still list the `frontend-tmp` entries themselves, or that mount
|
||||
their own volume at `/tmp`, keep working: the built-in entries are then
|
||||
skipped.
|
||||
|
||||
Custom files must be readable by UID `65532`; mount them read-only and write
|
||||
them to the volume from outside the frontend pod (a ConfigMap, or a helper pod
|
||||
on the same PVC), since the image has no shell or `tar` for `kubectl cp`. Only
|
||||
`/tmp` needs writes for generated public runtime configuration and nginx's
|
||||
PID/temp files. The web root stays read-only. Health checks can use
|
||||
`GET /healthz` on the named `http` container port. These settings apply to both
|
||||
the primary and demo frontends, which share the frontend image tag. Update the
|
||||
live Argo CD Application's chart pin as well as its values: an image-only
|
||||
@@ -202,6 +207,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
|
||||
@@ -811,6 +860,9 @@ kerberospipeline:
|
||||
| `mode` | Deployment mode: `all`, `pipeline`, or `ui`. `all` renders everything, `pipeline` only pipeline services, `ui` only hub services. | `"all"` |
|
||||
| `subscriptions.plans.enabled` | Creates the `hub-plans` ConfigMap from `files/plans.yaml` (the `trial`, `community` and `enterprise` plans: gated permissions, limits and Stripe price lookup keys) and mounts it read-only at `/etc/kerberos/plans/plans.yaml` in hub-api, pipe-monitor, pipe-analysis and hub-cleanup, with `PLANS_FILE` set to that path. Plans are changed in the chart, not in values: a change adds a new version of a plan. | `false` |
|
||||
| `subscriptions.plans.newOrganisations` | With `subscriptions.plans.enabled`, new organisations start in plans mode (`PLANS_NEW_ORGANISATIONS=true` on hub-api). When off, new organisations start in legacy mode and an owner or application admin switches an organisation to plans mode. | `false` |
|
||||
| `organisations.mode` | `legacy` (default) keeps the deployment on owner account > sub accounts > roles, with the subscription and agent keys on the owner: the chart refuses to render while any organisation feature is on (`subscriptions.plans.*`, `organisations.onboarding.enabled`, `kerberoshub.api.rbacOrganisations.enabled`, `kerberoshub.api.organisationDeletion.enabled`, the `kerberoshub.frontend.features.organisations.*` / `projects.*` flags, and the same features set directly in `kerberoshub.extraEnv`: `PLANS_FILE`, `PLANS_NEW_ORGANISATIONS`, `ONBOARDING_ENABLED`, `RBAC_ORGANISATIONS_ENABLED`, `FEATURE_ORGANISATION_DELETION_ENABLED` and the frontend's `FEATURE_ORGANISATION*`, `FEATURE_PROJECT*` and `FEATURE_MEMBERS_ACCESS_PREVIEW_ENABLED`; a `valueFrom` for one of them counts as on) and names them. `custom` lets every organisation feature follow its own setting. Keep `custom` once an organisation has been switched to plans or rbac mode. | `legacy` |
|
||||
| `organisations.onboarding.enabled` | Accounts are created without an organisation (sets `ONBOARDING_ENABLED` on hub-api): `/register` stores only the account, an invitation link can create the account it invites, and at first sign-in the account accepts an invitation, selects an organisation it belongs to or creates its own, which starts in rbac mode. Requires a hub-frontend with the onboarding page; without it, new accounts have no organisation to work in and hub-api answers `409 organisation_required`. Off keeps the legacy sign-up: `/register` creates the account with its own organisation, subscription and keys on the owner. Needs `organisations.mode: custom`. An `ONBOARDING_ENABLED` or `ONBOARDING_ORGANISATION_CREATE` already in `kerberoshub.extraEnv` takes precedence and is not set twice. | `false` |
|
||||
| `organisations.onboarding.organisationCreation` | With onboarding on, an account without an organisation may create one in the onboarding step (sets `ONBOARDING_ORGANISATION_CREATE` on hub-api). `false` for invite-only deployments: such accounts can only join through an invitation. | `true` |
|
||||
| `global.imageRegistry` | Global container registry override used for all images. | `""` |
|
||||
| `ingress` | The ingress being used for `kerberoshub.api.url` and `kerberoshub.frontend.url`. | `"nginx"` |
|
||||
| `mongodb.host` | MongoDB hostname (`'mongodb:27017'`) or mongodb replicas (`'mongodb-0:27017,mongodb-1:27017'`). | `"mongodb.mongodb"` |
|
||||
@@ -833,6 +885,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"` |
|
||||
@@ -895,7 +950,7 @@ kerberospipeline:
|
||||
| `kerberoshub.serviceAccount.labels` | Labels applied to `kerberoshub.serviceAccount` resources. | `""` |
|
||||
| `kerberoshub.api.repository` | The Docker registry where the Kerberos Hub API container is hosted. | `"ghcr.io/uug-ai/hub-api"` |
|
||||
| `kerberoshub.api.pullPolicy` | The Docker registry pull policy. | `"IfNotPresent"` |
|
||||
| `kerberoshub.api.tag` | The Docker image tag/version. | `"v1.11.43"` |
|
||||
| `kerberoshub.api.tag` | The Docker image tag/version. | `"v1.11.93"` |
|
||||
| `kerberoshub.api.replicas` | The number of pods/replicas running for the Kerberos Hub API deployment. | `2` |
|
||||
| `kerberoshub.api.audit.enabled` | Enable audit publishing from Hub API when global auditing is enabled. | `true` |
|
||||
| `kerberoshub.api.logLevel` | Log verbosity level for `kerberoshub.api`. | `"info"` |
|
||||
@@ -918,9 +973,7 @@ kerberospipeline:
|
||||
| `kerberoshub.api.rbacOrganisations.enabled` | Every new organisation starts in rbac mode (sets `RBAC_ORGANISATIONS_ENABLED` on hub-api): organisations created with `POST /organisations` and the home organisation of every new account. It starts with every built-in role and its creator as Owner; its members and roles are managed on the Members & access pages only, and the legacy Accounts page cannot add people there. Existing organisations and accounts keep their mode. | `false` |
|
||||
| `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.accountDeletion.purge.enabled` | Starts the hub-api worker that erases accounts whose grace period has passed, with their recordings in storage and their Stripe customer (`ACCOUNT_DELETION_PURGE_ENABLED`). Without it requested deletions stay locked and nothing is erased. Enable it only in the environment that owns the database: a deployment that shares a database with another one erases that database's accounts. | `false` |
|
||||
| `kerberoshub.api.accountDeletion.purge.dryRun` | The worker counts what it would erase, writes the counts to the `account_deletions` document of the request and deletes nothing (`ACCOUNT_DELETION_PURGE_DRY_RUN`). | `false` |
|
||||
| `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 `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.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.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`. | `""` |
|
||||
@@ -929,6 +982,9 @@ kerberospipeline:
|
||||
| `kerberoshub.api.resources.requests.cpu` | CPU request for `kerberoshub.api`. | `"250m"` |
|
||||
| `kerberoshub.api.resources.limits.memory` | Memory limit for `kerberoshub.api`. | `"100Mi"` |
|
||||
| `kerberoshub.api.resources.limits.cpu` | CPU limit for `kerberoshub.api`. | `"250m"` |
|
||||
| `kerberoshub.api.serviceMonitor.enabled` | Create a Prometheus `ServiceMonitor` for hub-api `/metrics` on the backend port (request metrics and `mongodb_client_*` command metrics). Requires `kerberoshub.api.serviceEnabled`. | `true` |
|
||||
| `kerberoshub.api.serviceMonitor.interval` | hub-api metrics scrape interval. | `"15s"` |
|
||||
| `kerberoshub.api.blockPublicMetrics` | With `ingress: nginx`, add the `hub-api-metrics-deny` Ingress so `/metrics` answers 403 on the API, legacy and admin hosts. Prometheus scrapes the Service directly and is not affected. | `true` |
|
||||
| `kerberoshub.api.serverTLS.enabled` | Enable or disable `kerberoshub.api.serverTLS`. | `false` |
|
||||
| `kerberoshub.api.serverTLS.secretName` | Kubernetes Secret name used by `kerberoshub.api.serverTLS`. | `""` |
|
||||
| `kerberoshub.api.serverTLS.mountPath` | Filesystem path where the Hub API TLS secret is mounted. | `"/etc/hub-api/tls"` |
|
||||
@@ -968,7 +1024,7 @@ kerberospipeline:
|
||||
| `kerberoshub.api.sso.extraHeaders.value` | Header value for each configured SSO extra header entry. | `""` |
|
||||
| `kerberoshub.frontend.repository` | The Docker registry where the Kerberos Hub frontend is hosted. | `"ghcr.io/uug-ai/hub-frontend"` |
|
||||
| `kerberoshub.frontend.pullPolicy` | The Docker registry pull policy. | `"IfNotPresent"` |
|
||||
| `kerberoshub.frontend.tag` | The Docker image tag/version. | `"v1.19.42"` |
|
||||
| `kerberoshub.frontend.tag` | The Docker image tag/version. | `"v1.19.80"` |
|
||||
| `kerberoshub.frontend.replicas` | The number of pods/replicas running for the Kerberos Hub frontend deployment. | `2` |
|
||||
| `kerberoshub.frontend.logLevel` | Log verbosity level for `kerberoshub.frontend`. | `"info"` |
|
||||
| `kerberoshub.frontend.schema` | The protocol to serve the Kerberos Hub frontend, `'http'` or `'https'`. | `"https"` |
|
||||
@@ -1042,6 +1098,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)"` |
|
||||
@@ -1069,6 +1126,8 @@ kerberospipeline:
|
||||
| `kerberoshub.frontend.features.media.filter.events.enabled` | Enable or disable `kerberoshub.frontend.features.media.filter.events`. | `"true"` |
|
||||
| `kerberoshub.frontend.features.media.filter.tags.enabled` | Enable or disable `kerberoshub.frontend.features.media.filter.tags`. | `"true"` |
|
||||
| `kerberoshub.frontend.features.media.filter.defaultView` | Default view for the media page: `timeline` or `grid`. | `"timeline"` |
|
||||
| `kerberoshub.frontend.features.media.timeline.collapsed.desktop` | Open the Recordings timeline collapsed to one combined activity row on desktop (`FEATURE_MEDIA_TIMELINE_COLLAPSED_DESKTOP`). Users can still expand it. | `"false"` |
|
||||
| `kerberoshub.frontend.features.media.timeline.collapsed.mobile` | Open the Recordings timeline collapsed to one combined activity row on viewports up to 900 px wide (`FEATURE_MEDIA_TIMELINE_COLLAPSED_MOBILE`). Users can still expand it. | `"true"` |
|
||||
| `kerberoshub.frontend.features.ask.enabled` | Show the dashboard Ask block; sets `FEATURE_ASK_ENABLED`. Needs `kerberoshub.api.ask.enabled`. | `"false"` |
|
||||
| `kerberoshub.frontend.features.floorplan.enabled` | Enable or disable `kerberoshub.frontend.features.floorplan`. | `"true"` |
|
||||
| `kerberoshub.frontend.features.floorplan.colorDeviceActive` | Color customization for `floorplan` in the frontend. | `"hsla(131, 31%, 52%, 1)"` |
|
||||
@@ -1112,6 +1171,8 @@ kerberospipeline:
|
||||
| `kerberoshub.cleanup.deleteTimeoutSeconds` | Timeout for delete operations. | `"120"` |
|
||||
| `kerberoshub.cleanup.reportIncludeStats` | Include richer per-user dry-run summary stats. | `"false"` |
|
||||
| `kerberoshub.cleanup.dryRun` | Force dry-run behavior through env var. | `"false"` |
|
||||
| `kerberoshub.cleanup.accountDeletion.purge.enabled` | Starts the worker in hub-cleanup that erases accounts and organisations whose deletion is due, with their recordings in storage and their Stripe subscriptions (`ACCOUNT_DELETION_PURGE_ENABLED`). It uses `kerberosvault.*`, `kerberoshub.api.stripe.privateKey` and the `audit` transport. Without it requested deletions stay locked and nothing is erased. Every worker takes any due deletion in its database, whichever deployment requested it: enable it in exactly one deployment per database. Replaces `kerberoshub.api.accountDeletion.purge`, which now stops the render when enabled. | `false` |
|
||||
| `kerberoshub.cleanup.accountDeletion.purge.dryRun` | The worker counts what it would erase, writes the counts to the deletion record and deletes nothing (`ACCOUNT_DELETION_PURGE_DRY_RUN`). `kerberoshub.cleanup.dryRun` and `mode: dry-run` imply it. | `false` |
|
||||
| `kerberoshub.cleanup.debug` | Enable extra cleanup debug logging. | `"false"` |
|
||||
| `kerberoshub.cleanup.globalPassEnabled` | Enable optional global orphan cleanup pass. | `"false"` |
|
||||
| `kerberoshub.cleanup.globalPassIntervalHours` | Minimum hours between global cleanup passes. | `"0"` |
|
||||
@@ -1165,6 +1226,8 @@ kerberospipeline:
|
||||
| `kerberoshub.monitordevice.replicas` | Number of replicas for `kerberoshub.monitordevice`. | `1` |
|
||||
| `kerberoshub.monitordevice.logLevel` | Log verbosity level for `kerberoshub.monitordevice`. | `"info"` |
|
||||
| `kerberoshub.monitordevice.scanIntervalSeconds` | Seconds between device status scans. Sets how quickly a camera going offline or online is detected. For accounts with "Group notifications" on, `hub-monitor-device` v1.4.10 and later then hold a change 20 seconds (`DEVICE_GROUPING_HOLD_SECONDS`) to collect other cameras that change status at the same time; older releases hold it one scan. | `60` |
|
||||
| `kerberoshub.monitordevice.serviceMonitor.enabled` | Create a Service and Prometheus `ServiceMonitor` for hub-monitor-device `/metrics` on port 8080 (scan counters and `mongodb_client_*` command metrics). Enable only with a hub-monitor-device release that serves `/metrics`. | `false` |
|
||||
| `kerberoshub.monitordevice.serviceMonitor.interval` | hub-monitor-device metrics scrape interval. | `"15s"` |
|
||||
| `kerberoshub.monitordevice.resources.requests.memory` | Memory request for `kerberoshub.monitordevice`. | `"10Mi"` |
|
||||
| `kerberoshub.monitordevice.resources.requests.cpu` | CPU request for `kerberoshub.monitordevice`. | `"10m"` |
|
||||
| `kerberoshub.reactivate.repository` | Container image repository for `kerberoshub.reactivate`. | `"ghcr.io/uug-ai/hub-reactivatesubscriptions"` |
|
||||
@@ -1242,6 +1305,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"` |
|
||||
@@ -1310,6 +1375,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. | `""` |
|
||||
@@ -1322,7 +1388,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.
|
||||
@@ -1599,6 +1665,32 @@ Deployers describe what a node exposes; Hub code owns what that means:
|
||||
Worker images, queues, resources and credentials stay in `kerberoshub.services`.
|
||||
No new loader environment variable is set.
|
||||
|
||||
#### Conditional settings (`when`)
|
||||
|
||||
A param can apply only while an earlier `select` or `boolean` param has one of
|
||||
the listed values, for example a forwarder setting that exists only for one
|
||||
provider:
|
||||
|
||||
```yaml
|
||||
params:
|
||||
- {name: broker, type: select, options: [rabbitmq, mqtt], default: rabbitmq}
|
||||
- {name: topic, type: string, required: true, when: {param: broker, in: [mqtt]}}
|
||||
```
|
||||
|
||||
While its condition does not hold, a param is hidden in the editor, is not
|
||||
required, gets no default, and its stored value is dropped on save. The
|
||||
controlling param must be declared earlier; its value (or default when unset)
|
||||
is compared with `in`. Conditions can chain at most 3 deep, and there is one
|
||||
condition per param (no `and`/`or`). Invalid conditions make the contract
|
||||
unavailable, like other contract errors.
|
||||
|
||||
**`when` needs a compatible Hub API and frontend** (conditional params,
|
||||
uug-ai/hub-api#900 and uug-ai/hub-frontend#1115): hub-api `v1.11.92` or later
|
||||
and hub-frontend `v1.19.78` or later. Since chart `0.209.0` the default tags
|
||||
(`v1.11.93`, `v1.19.80`) include both. An older API rejects a contract that
|
||||
uses it, which removes that stage from the editor; pin an older API only with
|
||||
`workflowConfiguration.includeDefaults: false` or your own forwarder contract.
|
||||
|
||||
Conditions are not free-form: a new or changed predicate on a connection may
|
||||
only test a declared field of Start or of a stage upstream of that connection
|
||||
(stage outputs are addressed as `results.<stage>.<path>`), with one of its
|
||||
@@ -1637,9 +1729,13 @@ schemas/
|
||||
catalog required. It declares no `params`, so any settings come from
|
||||
`kerberoshub.workflows.editorStages`.
|
||||
- [Forwarder contract ConfigMap](templates/configMaps/workflow-contracts/forwarder.yaml):
|
||||
presentation and required per-node delivery and RabbitMQ destination settings
|
||||
for custom workflows. Deployment-global workflows keep their deployment
|
||||
bindings. No output fields are declared.
|
||||
presentation and per-node delivery settings for custom workflows, with a
|
||||
provider choice. `rabbitmq` (default) adds queue, virtual host, queue
|
||||
declaration and dead-letter settings. `mqtt` adds topic, QoS, retain and
|
||||
client ID, and needs a forwarder worker with the MQTT provider. Both share
|
||||
host, port, TLS, credentials, completion mode and retries. The
|
||||
provider-specific settings use `when`. Deployment-global workflows keep
|
||||
their deployment bindings. No output fields are declared.
|
||||
- [Custom pose example](examples/workflow-contracts/pose.yaml): hypothetical
|
||||
worker, demonstrating presentation, settings (`params`), a file catalog, inline
|
||||
choices and a numeric field.
|
||||
|
||||
@@ -215,6 +215,22 @@
|
||||
"file": {"type": "string", "pattern": "^\\.\\./catalogs/[A-Za-z0-9_-][A-Za-z0-9._-]*\\.json$"}
|
||||
},
|
||||
"description": "Options for a select or multiselect setting from a shared catalog file (keys become options, labels become optionLabels). Use instead of options."
|
||||
},
|
||||
"when": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["param", "in"],
|
||||
"properties": {
|
||||
"param": {"type": "string", "pattern": "^[A-Za-z][A-Za-z0-9_]*$", "maxLength": 64, "description": "A select or boolean param declared earlier in this contract."},
|
||||
"in": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"maxItems": 64,
|
||||
"items": {"oneOf": [{"type": "string", "minLength": 1, "maxLength": 160}, {"type": "boolean"}]},
|
||||
"description": "Values of that param (its options, or true/false) for which this setting applies."
|
||||
}
|
||||
},
|
||||
"description": "Show, validate, default and store this setting only while the named earlier select or boolean param has one of these values; otherwise its value is dropped on save. Chains of at most 3. Requires a Hub API that supports conditional params."
|
||||
}
|
||||
},
|
||||
"allOf": [
|
||||
|
||||
@@ -169,3 +169,75 @@ 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 -}}
|
||||
|
||||
{{/*
|
||||
hub-frontend scratch volume.
|
||||
The hardened hub-frontend image runs with a read-only root filesystem and
|
||||
writes its generated runtime configuration (/tmp/frontend-env.js) and nginx's
|
||||
PID/temp files to /tmp, so every frontend pod needs a writable /tmp. The chart
|
||||
always renders a memory-backed emptyDir for it, so custom branding or
|
||||
translation mounts in kerberoshub.frontend.volumes / volumeMounts only add to
|
||||
the pod and can never drop it (Helm replaces lists, it does not merge them).
|
||||
Deployments that still list the old frontend-tmp entries themselves, or mount
|
||||
their own volume at /tmp, keep those: the built-in entries are skipped.
|
||||
*/}}
|
||||
{{- define "hub.frontend.hasTmpMount" -}}
|
||||
{{- range .Values.kerberoshub.frontend.volumeMounts }}{{ if eq .mountPath "/tmp" }}true{{ end }}{{ end }}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "hub.frontend.hasTmpVolume" -}}
|
||||
{{- range .Values.kerberoshub.frontend.volumes }}{{ if eq .name "frontend-tmp" }}true{{ end }}{{ end }}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "hub.frontend.volumes" -}}
|
||||
{{- $tmp := .Values.kerberoshub.frontend.tmp | default dict }}
|
||||
{{- if not (or (include "hub.frontend.hasTmpMount" .) (include "hub.frontend.hasTmpVolume" .)) }}
|
||||
- name: frontend-tmp
|
||||
emptyDir:
|
||||
medium: Memory
|
||||
sizeLimit: {{ $tmp.sizeLimit | default "16Mi" }}
|
||||
{{- end }}
|
||||
{{- with .Values.kerberoshub.frontend.volumes }}
|
||||
{{ toYaml . }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "hub.frontend.volumeMounts" -}}
|
||||
{{- if not (include "hub.frontend.hasTmpMount" .) }}
|
||||
- name: frontend-tmp
|
||||
mountPath: /tmp
|
||||
{{- end }}
|
||||
{{- with .Values.kerberoshub.frontend.volumeMounts }}
|
||||
{{ toYaml . }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
{{/*
|
||||
organisations.mode: legacy keeps the deployment on owner account > sub
|
||||
accounts > roles. Fail when an organisation feature is switched on, so a
|
||||
values file never half-enables organisations; custom lets every flag apply.
|
||||
*/}}
|
||||
{{- define "hub.organisations.validate" -}}
|
||||
{{- $organisations := .Values.organisations | default dict -}}
|
||||
{{- $mode := $organisations.mode | default "legacy" -}}
|
||||
{{- if not (has $mode (list "legacy" "custom")) -}}
|
||||
{{- fail (printf "organisations.mode must be legacy or custom, got %q" $mode) -}}
|
||||
{{- end -}}
|
||||
{{- if eq $mode "legacy" -}}
|
||||
{{- $plans := (.Values.subscriptions | default dict).plans | default dict -}}
|
||||
{{- $api := (.Values.kerberoshub | default dict).api | default dict -}}
|
||||
{{- $features := ((.Values.kerberoshub | default dict).frontend | default dict).features | default dict -}}
|
||||
{{- $orgUI := $features.organisations | default dict -}}
|
||||
{{- $projectUI := $features.projects | default dict -}}
|
||||
{{- $flags := list
|
||||
(list "subscriptions.plans.enabled" $plans.enabled)
|
||||
(list "subscriptions.plans.newOrganisations" $plans.newOrganisations)
|
||||
(list "organisations.onboarding.enabled" ($organisations.onboarding | default dict).enabled)
|
||||
(list "kerberoshub.api.rbacOrganisations.enabled" ($api.rbacOrganisations | default dict).enabled)
|
||||
(list "kerberoshub.api.organisationDeletion.enabled" ($api.organisationDeletion | default dict).enabled)
|
||||
(list "kerberoshub.frontend.features.organisations.enabled" $orgUI.enabled)
|
||||
(list "kerberoshub.frontend.features.organisations.switcherEnabled" $orgUI.switcherEnabled)
|
||||
(list "kerberoshub.frontend.features.organisations.creationEnabled" $orgUI.creationEnabled)
|
||||
(list "kerberoshub.frontend.features.organisations.settingsEnabled" $orgUI.settingsEnabled)
|
||||
(list "kerberoshub.frontend.features.organisations.membersAccessPreviewEnabled" $orgUI.membersAccessPreviewEnabled)
|
||||
(list "kerberoshub.frontend.features.projects.enabled" $projectUI.enabled)
|
||||
(list "kerberoshub.frontend.features.projects.switcherEnabled" $projectUI.switcherEnabled)
|
||||
(list "kerberoshub.frontend.features.projects.creationEnabled" $projectUI.creationEnabled)
|
||||
(list "kerberoshub.frontend.features.projects.settingsEnabled" $projectUI.settingsEnabled)
|
||||
-}}
|
||||
{{- $on := list -}}
|
||||
{{- range $flags -}}
|
||||
{{- if eq (index . 1 | toString | lower) "true" -}}
|
||||
{{- $on = append $on (index . 0) -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- /*
|
||||
The same features set directly in kerberoshub.extraEnv (hub-api and the
|
||||
frontend). Booleans count when true as hub-api parses them; PLANS_FILE
|
||||
counts when set. A valueFrom cannot be read here, so it counts as on.
|
||||
*/ -}}
|
||||
{{- $booleanEnv := list
|
||||
"PLANS_NEW_ORGANISATIONS" "ONBOARDING_ENABLED" "RBAC_ORGANISATIONS_ENABLED"
|
||||
"FEATURE_ORGANISATION_DELETION_ENABLED"
|
||||
"FEATURE_ORGANISATIONS_ENABLED" "FEATURE_ORGANISATION_SWITCHER_ENABLED"
|
||||
"FEATURE_ORGANISATION_CREATION_ENABLED" "FEATURE_ORGANISATION_SETTINGS_ENABLED"
|
||||
"FEATURE_MEMBERS_ACCESS_PREVIEW_ENABLED"
|
||||
"FEATURE_PROJECTS_ENABLED" "FEATURE_PROJECT_SWITCHER_ENABLED"
|
||||
"FEATURE_PROJECT_CREATION_ENABLED" "FEATURE_PROJECT_SETTINGS_ENABLED"
|
||||
-}}
|
||||
{{- range ((.Values.kerberoshub | default dict).extraEnv | default list) -}}
|
||||
{{- $name := .name | default "" | toString -}}
|
||||
{{- $value := .value | default "" | toString | trim | lower -}}
|
||||
{{- $label := printf "kerberoshub.extraEnv %s" $name -}}
|
||||
{{- if or (eq $name "PLANS_FILE") (has $name $booleanEnv) -}}
|
||||
{{- if .valueFrom -}}
|
||||
{{- $on = append $on (printf "%s (valueFrom)" $label) -}}
|
||||
{{- else if and (eq $name "PLANS_FILE") $value -}}
|
||||
{{- $on = append $on $label -}}
|
||||
{{- else if and (has $name $booleanEnv) (has $value (list "true" "1" "t")) -}}
|
||||
{{- $on = append $on $label -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- if $on -}}
|
||||
{{- fail (printf "organisations.mode is legacy, but these organisation features are on: %s. Switch them off, or set organisations.mode: custom." (join ", " $on)) -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/* Comma-separated names in kerberoshub.extraEnv: chart-set variables they name are left out, so extraEnv keeps winning without duplicates. */}}
|
||||
{{- define "hub.extraEnv.names" -}}
|
||||
{{- $names := list -}}
|
||||
{{- range ((.Values.kerberoshub | default dict).extraEnv | default list) -}}
|
||||
{{- $names = append $names (.name | toString) -}}
|
||||
{{- end -}}
|
||||
{{- join "," $names -}}
|
||||
{{- 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 }}
|
||||
@@ -5,20 +5,24 @@ stage: forwarder
|
||||
contractVersion: 1
|
||||
presentation:
|
||||
name: Forward to my system
|
||||
description: Send the run's data to your own RabbitMQ destination.
|
||||
description: Send the run's data to your own RabbitMQ or MQTT destination.
|
||||
icon: share
|
||||
color: green
|
||||
|
||||
# Custom workflows supply their own connection; deployment credentials are never
|
||||
# inherited. These non-secret defaults are stored on save, not read from the worker.
|
||||
# inherited. Non-secret defaults are stored on save, not read from the worker.
|
||||
# Provider-specific settings use `when` (conditional params): they are shown,
|
||||
# required, defaulted and stored only for the selected provider. `when` needs a
|
||||
# Hub API and frontend that support conditional params (hub-api with uug-ai/hub-api#900,
|
||||
# hub-frontend with uug-ai/hub-frontend#1115); older APIs reject this contract.
|
||||
params:
|
||||
- name: broker
|
||||
label: Provider
|
||||
description: Custom workflows use their own RabbitMQ destination. Shared deployment integrations are reserved for global workflows.
|
||||
description: Where the run's data is sent. Custom workflows use their own destination; shared deployment integrations are reserved for global workflows.
|
||||
type: select
|
||||
required: true
|
||||
options: [rabbitmq]
|
||||
optionLabels: {rabbitmq: RabbitMQ}
|
||||
options: [rabbitmq, mqtt]
|
||||
optionLabels: {rabbitmq: RabbitMQ, mqtt: MQTT}
|
||||
default: rabbitmq
|
||||
group: Delivery
|
||||
- name: mode
|
||||
@@ -30,53 +34,118 @@ params:
|
||||
optionLabels: {delivered: Complete after delivery, callback: Wait for result}
|
||||
default: delivered
|
||||
group: Delivery
|
||||
- name: maxRetries
|
||||
label: Maximum retries
|
||||
description: Whole number of retries after a failed delivery. Use 0 for no retries.
|
||||
type: number
|
||||
required: false
|
||||
default: 5
|
||||
minimum: 0
|
||||
maximum: 2147483647
|
||||
group: Delivery
|
||||
- name: host
|
||||
label: Host
|
||||
description: Your RabbitMQ destination host. Required before enabling the workflow.
|
||||
description: Your broker's host name or IP address, without a scheme or port. Required before enabling the workflow.
|
||||
type: string
|
||||
required: true
|
||||
placeholder: rabbitmq.example.com
|
||||
group: RabbitMQ destination
|
||||
placeholder: broker.example.com
|
||||
group: Connection
|
||||
- name: port
|
||||
label: Port
|
||||
description: Your RabbitMQ destination port, a whole number (usually 5671 with TLS or 5672 without TLS).
|
||||
description: Your broker's port, a whole number. RabbitMQ usually uses 5671 with TLS or 5672 without; MQTT 8883 with TLS or 1883 without.
|
||||
type: number
|
||||
required: true
|
||||
minimum: 1
|
||||
maximum: 65535
|
||||
group: RabbitMQ destination
|
||||
- name: queue
|
||||
label: Queue
|
||||
description: Your destination queue. Its dead-letter queue is this name followed by .forwarder-dead-letter.
|
||||
type: string
|
||||
required: true
|
||||
group: RabbitMQ destination
|
||||
- name: vhost
|
||||
label: Virtual host
|
||||
description: Your RabbitMQ virtual host. Use / for the broker's default virtual host.
|
||||
type: string
|
||||
required: true
|
||||
placeholder: /
|
||||
group: RabbitMQ destination
|
||||
group: Connection
|
||||
- name: tls
|
||||
label: Use TLS
|
||||
description: Encrypt the connection and verify the broker certificate using system trust roots. Deployment TLS overrides are never inherited.
|
||||
type: boolean
|
||||
required: true
|
||||
default: true
|
||||
group: RabbitMQ destination
|
||||
group: Connection
|
||||
- name: username
|
||||
label: Username
|
||||
description: Your RabbitMQ destination username. Deployment credentials are never used.
|
||||
description: Your broker username. Deployment credentials are never used.
|
||||
type: string
|
||||
required: true
|
||||
group: RabbitMQ credentials
|
||||
group: Credentials
|
||||
- name: password
|
||||
label: Password
|
||||
description: Your RabbitMQ destination password. Required before enabling the workflow; masked after saving.
|
||||
description: Your broker password. Required before enabling the workflow; masked after saving. Changing the provider or connection asks for it again.
|
||||
type: secret
|
||||
required: true
|
||||
group: RabbitMQ credentials
|
||||
group: Credentials
|
||||
|
||||
# RabbitMQ only.
|
||||
- name: queue
|
||||
label: Queue
|
||||
description: Your RabbitMQ destination queue.
|
||||
type: string
|
||||
required: true
|
||||
group: RabbitMQ
|
||||
when: {param: broker, in: [rabbitmq]}
|
||||
- name: vhost
|
||||
label: Virtual host
|
||||
description: Your RabbitMQ virtual host. Omitted or blank values use /, never the deployment virtual host.
|
||||
type: string
|
||||
required: false
|
||||
default: /
|
||||
group: RabbitMQ
|
||||
when: {param: broker, in: [rabbitmq]}
|
||||
- name: declareQueue
|
||||
label: Declare destination queues
|
||||
description: Create durable quorum target and dead-letter queues when missing. When disabled, both must already exist. Dead-letter routing is never configured; configure it separately on the external consumer or broker.
|
||||
type: boolean
|
||||
required: false
|
||||
default: true
|
||||
group: RabbitMQ
|
||||
when: {param: broker, in: [rabbitmq]}
|
||||
- name: deadLetterQueue
|
||||
label: Destination dead-letter queue
|
||||
description: External destination dead-letter queue to create or check; must differ from Queue. Omitted or blank values use Queue followed by .forwarder-dead-letter. Forwarder does not route failed messages here automatically; configure external consumer or broker dead-letter routing separately. Never use the internal failed-dispatch queue, which can contain secrets.
|
||||
type: string
|
||||
required: false
|
||||
placeholder: <queue>.forwarder-dead-letter
|
||||
group: RabbitMQ
|
||||
when: {param: broker, in: [rabbitmq]}
|
||||
|
||||
# MQTT only.
|
||||
- name: topic
|
||||
label: Topic
|
||||
description: One topic to publish to, without + or # wildcards and not starting with $. The message includes a signed link to the recording, so anyone who can read this topic can download it until the link expires.
|
||||
type: string
|
||||
required: true
|
||||
placeholder: plant/line-1/events
|
||||
group: MQTT
|
||||
when: {param: broker, in: [mqtt]}
|
||||
- name: qos
|
||||
label: Quality of service
|
||||
description: 0 sends once without confirmation; 1 waits for the broker to confirm (may duplicate); 2 confirms exactly once per connection. Subscribers should deduplicate by executionId.
|
||||
type: select
|
||||
required: true
|
||||
options: ['0', '1', '2']
|
||||
optionLabels: {'0': At most once (0), '1': At least once (1), '2': Exactly once (2)}
|
||||
default: '1'
|
||||
group: MQTT
|
||||
when: {param: broker, in: [mqtt]}
|
||||
- name: retain
|
||||
label: Retain message
|
||||
description: Ask the broker to keep the latest message on this topic for subscribers that connect later.
|
||||
type: boolean
|
||||
required: false
|
||||
default: false
|
||||
group: MQTT
|
||||
when: {param: broker, in: [mqtt]}
|
||||
- name: clientId
|
||||
label: Client ID
|
||||
description: Fixed MQTT client ID, for brokers that use it in access rules (at most 128 characters). Leave empty to use a new random ID per delivery.
|
||||
type: string
|
||||
required: false
|
||||
placeholder: hub-fwd-<random>
|
||||
group: MQTT
|
||||
when: {param: broker, in: [mqtt]}
|
||||
|
||||
# It contributes no output fields: connections after it can still use Start and
|
||||
# earlier stages in Extra conditions.
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
{{- if and (or (eq .Values.mode "all") (eq .Values.mode "ui")) (eq .Values.ingress "nginx") .Values.kerberoshub.api.blockPublicMetrics (.Capabilities.APIVersions.Has "networking.k8s.io/v1") -}}
|
||||
# Deny /metrics on hub-api's public hosts. hub-api serves Prometheus metrics
|
||||
# (request metrics and mongodb_client_* database, collection and command
|
||||
# names) on the same port as the API, and hub-api-ingress routes every path to
|
||||
# it. ingress-nginx applies this Ingress's annotations only to its own paths,
|
||||
# so /metrics answers 403 while every other path keeps hub-api-ingress's
|
||||
# settings. Prometheus scrapes the Service directly and is not affected.
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: hub-api-metrics-deny
|
||||
namespace: {{ .Release.Namespace }}
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/denylist-source-range: "0.0.0.0/0,::/0"
|
||||
spec:
|
||||
ingressClassName: {{ .Values.ingress }}
|
||||
rules:
|
||||
- host: "{{ .Values.kerberoshub.api.url }}"
|
||||
http:
|
||||
paths:
|
||||
- path: /metrics
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: hub-api-svc
|
||||
port:
|
||||
number: 8081
|
||||
{{- if and .Values.kerberoshub.api.legacyUrl (ne .Values.kerberoshub.api.legacyUrl .Values.kerberoshub.api.url) }}
|
||||
- host: "{{ .Values.kerberoshub.api.legacyUrl }}"
|
||||
http:
|
||||
paths:
|
||||
- path: /metrics
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: hub-api-svc
|
||||
port:
|
||||
number: 8081
|
||||
{{- end }}
|
||||
- host: "admin.{{ .Values.kerberoshub.api.url }}"
|
||||
http:
|
||||
paths:
|
||||
- path: /metrics
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: hub-api-svc
|
||||
port:
|
||||
number: 80
|
||||
{{- end }}
|
||||
@@ -0,0 +1,28 @@
|
||||
{{- $serviceMonitor := .Values.kerberoshub.api.serviceMonitor | default dict -}}
|
||||
{{- if and (or (eq .Values.mode "all") (eq .Values.mode "ui")) .Values.kerberoshub.api.serviceEnabled $serviceMonitor.enabled -}}
|
||||
# Scrapes hub-api's /metrics on the backend port: gin request metrics and the
|
||||
# database library's mongodb_client_* command and reply-byte metrics.
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: hub-api-servicemonitor
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
service: hub-api
|
||||
release: prometheus
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: hub-api-svc
|
||||
endpoints:
|
||||
- port: backend
|
||||
interval: {{ $serviceMonitor.interval | default "15s" }}
|
||||
path: /metrics
|
||||
{{- if .Values.kerberoshub.api.serverTLS.enabled }}
|
||||
scheme: https
|
||||
tlsConfig:
|
||||
# The serving certificate is issued for the public host, not the
|
||||
# in-cluster Service name Prometheus scrapes.
|
||||
insecureSkipVerify: true
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
@@ -59,7 +59,7 @@ spec:
|
||||
name: hub-api-svc
|
||||
port:
|
||||
number: 8081
|
||||
{{- if .Values.kerberoshub.api.legacyUrl }}
|
||||
{{- if and .Values.kerberoshub.api.legacyUrl (ne .Values.kerberoshub.api.legacyUrl .Values.kerberoshub.api.url) }}
|
||||
- host: "{{ .Values.kerberoshub.api.legacyUrl }}"
|
||||
http:
|
||||
paths:
|
||||
@@ -90,7 +90,7 @@ spec:
|
||||
backend:
|
||||
serviceName: hub-api-svc
|
||||
servicePort: 8081
|
||||
{{- if .Values.kerberoshub.api.legacyUrl }}
|
||||
{{- if and .Values.kerberoshub.api.legacyUrl (ne .Values.kerberoshub.api.legacyUrl .Values.kerberoshub.api.url) }}
|
||||
- host: "{{ .Values.kerberoshub.api.legacyUrl }}"
|
||||
http:
|
||||
paths:
|
||||
@@ -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).
|
||||
@@ -426,21 +446,35 @@ spec:
|
||||
- name: RBAC_ORGANISATIONS_ENABLED
|
||||
value: {{ (.Values.kerberoshub.api.rbacOrganisations | default dict).enabled | default false | quote }}
|
||||
|
||||
# Account deletion by the owner; the purge worker has its own switch.
|
||||
# Account deletion by the owner; hub-cleanup erases due deletions.
|
||||
{{- $accountDeletion := .Values.kerberoshub.api.accountDeletion | default dict }}
|
||||
{{- $accountPurge := $accountDeletion.purge | default dict }}
|
||||
{{- if ($accountDeletion.purge | default dict).enabled }}
|
||||
{{- fail "kerberoshub.api.accountDeletion.purge moved to kerberoshub.cleanup.accountDeletion.purge: hub-cleanup erases due deletions now" }}
|
||||
{{- end }}
|
||||
- name: FEATURE_ACCOUNT_DELETION_ENABLED
|
||||
value: {{ $accountDeletion.enabled | default false | quote }}
|
||||
- name: ACCOUNT_DELETION_GRACE_DAYS
|
||||
value: {{ if hasKey $accountDeletion "graceDays" }}{{ $accountDeletion.graceDays | int | quote }}{{ else }}"14"{{ end }}
|
||||
# Older hub-api images run their own erasure worker unless this is false.
|
||||
- name: ACCOUNT_DELETION_PURGE_ENABLED
|
||||
value: {{ $accountPurge.enabled | default false | quote }}
|
||||
- name: ACCOUNT_DELETION_PURGE_DRY_RUN
|
||||
value: {{ $accountPurge.dryRun | default false | quote }}
|
||||
value: "false"
|
||||
# Organisation deletion by its primary owner; grace period and worker are the account ones.
|
||||
- name: FEATURE_ORGANISATION_DELETION_ENABLED
|
||||
value: {{ (.Values.kerberoshub.api.organisationDeletion | 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 }}
|
||||
{{- $extraEnvNames := splitList "," (include "hub.extraEnv.names" .) }}
|
||||
{{- if not (has "ONBOARDING_ENABLED" $extraEnvNames) }}
|
||||
- name: ONBOARDING_ENABLED
|
||||
value: {{ $onboarding.enabled | default false | quote }}
|
||||
{{- end }}
|
||||
{{- if not (has "ONBOARDING_ORGANISATION_CREATE" $extraEnvNames) }}
|
||||
- name: ONBOARDING_ORGANISATION_CREATE
|
||||
value: {{ if hasKey $onboarding "organisationCreation" }}{{ $onboarding.organisationCreation | quote }}{{ else }}"true"{{ end }}
|
||||
{{- end }}
|
||||
|
||||
# Media proxy: hide Vault/storage endpoints behind hub-api URLs.
|
||||
{{- $mediaProxy := .Values.kerberoshub.api.mediaProxy | default dict }}
|
||||
- name: MEDIA_PROXY_ENABLED
|
||||
|
||||
@@ -139,6 +139,38 @@ spec:
|
||||
value: "{{ .Values.kerberoshub.cleanup.auditEventRetentionDays }}"
|
||||
- name: WORKFLOW_RUN_RETENTION_DAYS
|
||||
value: "{{ .Values.kerberoshub.cleanup.workflowRunRetentionDays | default "0" }}"
|
||||
# Erasure of due account and organisation deletions.
|
||||
{{- $accountPurge := ((.Values.kerberoshub.cleanup.accountDeletion | default dict).purge | default dict) }}
|
||||
- name: ACCOUNT_DELETION_PURGE_ENABLED
|
||||
value: {{ $accountPurge.enabled | default false | quote }}
|
||||
- name: ACCOUNT_DELETION_PURGE_DRY_RUN
|
||||
value: {{ $accountPurge.dryRun | default false | quote }}
|
||||
{{- if $accountPurge.enabled }}
|
||||
- name: STORAGE_URI
|
||||
value: "{{ .Values.kerberosvault.uri }}"
|
||||
- name: STORAGE_ACCESS_KEY
|
||||
value: "{{ .Values.kerberosvault.accesskey }}"
|
||||
- name: STORAGE_SECRET_KEY
|
||||
value: "{{ .Values.kerberosvault.secretkey }}"
|
||||
- name: STRIPE_KEY
|
||||
value: "{{ .Values.kerberoshub.api.stripe.privateKey }}"
|
||||
- name: AUDIT_ENABLED
|
||||
value: {{ .Values.audit.enabled | default false | quote }}
|
||||
{{- if .Values.audit.enabled }}
|
||||
- name: AUDIT_QUEUE
|
||||
value: {{ .Values.audit.intake.queue | quote }}
|
||||
- name: AUDIT_DEADLETTER_QUEUE
|
||||
value: {{ .Values.audit.intake.deadletterQueue | quote }}
|
||||
- name: RABBITMQ_HOST
|
||||
value: "{{ .Values.rabbitmq.host }}"
|
||||
- name: RABBITMQ_EXCHANGE
|
||||
value: "{{ .Values.rabbitmq.exchange }}"
|
||||
- name: RABBITMQ_USERNAME
|
||||
value: "{{ .Values.rabbitmq.username }}"
|
||||
- name: RABBITMQ_PASSWORD
|
||||
value: "{{ .Values.rabbitmq.password }}"
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if .Values.kerberoshub.extraEnv }}
|
||||
{{- toYaml .Values.kerberoshub.extraEnv | nindent 12 }}
|
||||
{{- end }}
|
||||
|
||||
@@ -89,10 +89,8 @@ spec:
|
||||
imagePullSecrets:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with .Values.kerberoshub.frontend.volumes }}
|
||||
volumes:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- include "hub.frontend.volumes" . | trim | nindent 8 }}
|
||||
{{- with .Values.kerberoshub.frontend.topologySpreadConstraints }}
|
||||
topologySpreadConstraints:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
@@ -112,10 +110,8 @@ spec:
|
||||
ports:
|
||||
- containerPort: {{ .Values.kerberoshub.frontend.containerPort | default 8080 }}
|
||||
name: http
|
||||
{{- with .Values.kerberoshub.frontend.volumeMounts}}
|
||||
volumeMounts:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- include "hub.frontend.volumeMounts" . | trim | nindent 8 }}
|
||||
env:
|
||||
- name: SSO_DOMAINS
|
||||
# get the domain attribute from the list of sso domains
|
||||
@@ -286,6 +282,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 }}"
|
||||
|
||||
@@ -55,7 +55,7 @@ spec:
|
||||
name: hub-frontend-svc
|
||||
port:
|
||||
number: 80
|
||||
{{- if .Values.kerberoshub.frontend.legacyUrl }}
|
||||
{{- if and .Values.kerberoshub.frontend.legacyUrl (ne .Values.kerberoshub.frontend.legacyUrl .Values.kerberoshub.frontend.url) }}
|
||||
- host: "{{ .Values.kerberoshub.frontend.legacyUrl }}"
|
||||
http:
|
||||
paths:
|
||||
@@ -89,7 +89,7 @@ spec:
|
||||
backend:
|
||||
serviceName: hub-frontend-svc
|
||||
servicePort: 80
|
||||
{{- if .Values.kerberoshub.frontend.legacyUrl }}
|
||||
{{- if and .Values.kerberoshub.frontend.legacyUrl (ne .Values.kerberoshub.frontend.legacyUrl .Values.kerberoshub.frontend.url) }}
|
||||
- host: "{{ .Values.kerberoshub.frontend.legacyUrl }}"
|
||||
http:
|
||||
paths:
|
||||
@@ -170,10 +170,8 @@ spec:
|
||||
imagePullSecrets:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with .Values.kerberoshub.frontend.volumes }}
|
||||
volumes:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- include "hub.frontend.volumes" . | trim | nindent 8 }}
|
||||
{{- with .Values.kerberoshub.frontend.topologySpreadConstraints }}
|
||||
topologySpreadConstraints:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
@@ -193,10 +191,8 @@ spec:
|
||||
ports:
|
||||
- containerPort: {{ .Values.kerberoshub.frontend.containerPort | default 8080 }}
|
||||
name: http
|
||||
{{- with .Values.kerberoshub.frontend.volumeMounts}}
|
||||
volumeMounts:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- include "hub.frontend.volumeMounts" . | trim | nindent 8 }}
|
||||
env:
|
||||
- name: LOG_LEVEL
|
||||
value: "{{ .Values.kerberoshub.frontend.logLevel }}"
|
||||
@@ -369,6 +365,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 }}"
|
||||
@@ -505,6 +505,10 @@ spec:
|
||||
value: {{ .Values.kerberoshub.frontend.features.media.filter.markerCategoryPriority.categories | toJson | replace "\\" "\\\\" | replace "'" "\\u0027" | quote }}
|
||||
- name: FEATURE_MEDIA_FILTER_DEFAULT_VIEW
|
||||
value: "{{ .Values.kerberoshub.frontend.features.media.filter.defaultView }}"
|
||||
- name: FEATURE_MEDIA_TIMELINE_COLLAPSED_DESKTOP
|
||||
value: "{{ .Values.kerberoshub.frontend.features.media.timeline.collapsed.desktop }}"
|
||||
- name: FEATURE_MEDIA_TIMELINE_COLLAPSED_MOBILE
|
||||
value: "{{ .Values.kerberoshub.frontend.features.media.timeline.collapsed.mobile }}"
|
||||
- name: FEATURE_MEDIA_FILTER_EVENTS_ENABLED
|
||||
value: "{{ .Values.kerberoshub.frontend.features.media.filter.events.enabled }}"
|
||||
- name: FEATURE_MEDIA_FILTER_TAGS_ENABLED
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
{{- $serviceMonitor := .Values.kerberoshub.monitordevice.serviceMonitor | default dict -}}
|
||||
{{- if and (or (eq .Values.mode "all") (eq .Values.mode "ui")) $serviceMonitor.enabled -}}
|
||||
# hub-monitor-device serves /metrics on :8080 from the release that added
|
||||
# METRICS_ADDR: scan counters and the database library's mongodb_client_*
|
||||
# command and reply-byte metrics. It has no other Service.
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: hub-monitor-device-svc
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
service: hub-monitor-device
|
||||
spec:
|
||||
ports:
|
||||
- port: 8080
|
||||
name: hub-metrics
|
||||
targetPort: hub-metrics
|
||||
protocol: TCP
|
||||
selector:
|
||||
app: hub-monitor-device
|
||||
---
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: hub-monitor-device-servicemonitor
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
service: hub-monitor-device
|
||||
release: prometheus
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
service: hub-monitor-device
|
||||
endpoints:
|
||||
- port: hub-metrics
|
||||
interval: {{ $serviceMonitor.interval | default "15s" }}
|
||||
path: /metrics
|
||||
{{- end }}
|
||||
@@ -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 }}
|
||||
@@ -59,8 +64,19 @@ spec:
|
||||
resources:
|
||||
{{- toYaml . | nindent 12 }}
|
||||
{{- end }}
|
||||
{{- if or .Values.kerberoshub.monitordevice.volumeMounts (and $mongodbTLS.enabled $mongodbTLS.existingSecret) }}
|
||||
{{- if (.Values.kerberoshub.monitordevice.serviceMonitor | default dict).enabled }}
|
||||
ports:
|
||||
- name: hub-metrics
|
||||
containerPort: 8080
|
||||
protocol: TCP
|
||||
{{- end }}
|
||||
{{- 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 }}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
{{- /* Renders nothing; fails the release on an inconsistent organisations.mode. */ -}}
|
||||
{{- include "hub.organisations.validate" . -}}
|
||||
@@ -114,12 +114,71 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"organisations": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"mode": {
|
||||
"type": "string",
|
||||
"enum": ["legacy", "custom"],
|
||||
"description": "legacy (default): owner account > sub accounts > roles; the chart fails while any organisation feature is on. custom: every organisation feature follows its own setting."
|
||||
},
|
||||
"onboarding": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": "boolean",
|
||||
"description": "ONBOARDING_ENABLED on hub-api: /register creates only the account; its organisation comes at first sign-in. Requires a hub-frontend with the onboarding page."
|
||||
},
|
||||
"organisationCreation": {
|
||||
"type": "boolean",
|
||||
"description": "ONBOARDING_ORGANISATION_CREATE on hub-api; false makes onboarding invite-only."
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"kerberoshub": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"monitordevice": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"serviceMonitor": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"interval": {
|
||||
"type": "string",
|
||||
"pattern": "^[0-9]+(ms|s|m|h)$"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"api": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"blockPublicMetrics": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"serviceMonitor": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"interval": {
|
||||
"type": "string",
|
||||
"pattern": "^[0-9]+(ms|s|m|h)$"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mcp": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
|
||||
+132
-19
@@ -31,6 +31,33 @@ subscriptions:
|
||||
plans:
|
||||
enabled: false
|
||||
newOrganisations: false
|
||||
###################################################################
|
||||
# Organisations
|
||||
###################################################################
|
||||
# mode: legacy | custom
|
||||
# - legacy (default): owner account > sub accounts > roles, with the
|
||||
# subscription and agent keys on the owner. The chart refuses to render
|
||||
# while any organisation feature is switched on: subscriptions.plans,
|
||||
# organisations.onboarding, kerberoshub.api.rbacOrganisations and
|
||||
# organisationDeletion, and the switcher/creation/settings flags of
|
||||
# kerberoshub.frontend.features.organisations and .projects, and the
|
||||
# same features set directly in kerberoshub.extraEnv (PLANS_FILE,
|
||||
# PLANS_NEW_ORGANISATIONS, ONBOARDING_ENABLED, RBAC_ORGANISATIONS_ENABLED,
|
||||
# FEATURE_ORGANISATION*/FEATURE_PROJECT*/FEATURE_MEMBERS_ACCESS_PREVIEW_ENABLED).
|
||||
# - custom: every organisation feature follows its own setting.
|
||||
# Keep custom once an organisation has been switched to plans or rbac mode:
|
||||
# those organisations need the plan file and their features to keep working.
|
||||
organisations:
|
||||
mode: legacy
|
||||
# Onboarding: /register creates only the account; its organisation comes at
|
||||
# first sign-in (accept an invitation, pick an organisation it belongs to, or
|
||||
# create one, which starts in rbac mode). Requires a hub-frontend with the
|
||||
# onboarding page. Off keeps the legacy sign-up: /register creates the
|
||||
# account with its own organisation at once. A variable already set in
|
||||
# kerberoshub.extraEnv takes precedence and is not set twice.
|
||||
onboarding:
|
||||
enabled: false # Sets ONBOARDING_ENABLED on hub-api.
|
||||
organisationCreation: true # false: accounts without an organisation can only join through an invitation (ONBOARDING_ORGANISATION_CREATE).
|
||||
###########################################################################
|
||||
# Image signature verification (Kyverno)
|
||||
###########################################################################
|
||||
@@ -171,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)
|
||||
#
|
||||
@@ -387,7 +424,7 @@ kerberoshub:
|
||||
api:
|
||||
repository: ghcr.io/uug-ai/hub-api
|
||||
pullPolicy: IfNotPresent
|
||||
tag: "v1.11.43"
|
||||
tag: "v1.11.93"
|
||||
replicas: 2
|
||||
podSecurityContext:
|
||||
fsGroup: 65532
|
||||
@@ -414,6 +451,15 @@ kerberoshub:
|
||||
# Set to false to skip rendering the hub-api Service (e.g. when an
|
||||
# external/shared Service is managed elsewhere).
|
||||
serviceEnabled: true
|
||||
# Prometheus ServiceMonitor for /metrics on the backend port (request
|
||||
# metrics and mongodb_client_* command metrics). Needs serviceEnabled.
|
||||
serviceMonitor:
|
||||
enabled: true
|
||||
interval: 15s
|
||||
# With ingress: nginx, answer 403 for /metrics on the API hosts, so the
|
||||
# Prometheus metrics (including database and collection names) are not
|
||||
# public. Prometheus scrapes the Service directly and is not affected.
|
||||
blockPublicMetrics: true
|
||||
logLevel: "info" # possible values: trace, debug, info, warn, error
|
||||
jwtSecret: "this-is-a-secret-please-change-to-random-string" # change to a random value, this is for generating JWT tokens.
|
||||
# How long a user stays signed in (Go durations, e.g. "15m", "12h").
|
||||
@@ -459,17 +505,15 @@ kerberoshub:
|
||||
enabled: false # Every new organisation starts in rbac mode: created ones (POST /organisations) and new accounts' home organisations. Existing organisations keep their mode.
|
||||
# Account deletion by the owner, on the profile page.
|
||||
# A deletion locks the account at once and erases it after graceDays; the
|
||||
# owner cancels it by signing in before then.
|
||||
# owner cancels it by signing in before then. hub-cleanup does the
|
||||
# erasing: kerberoshub.cleanup.accountDeletion.purge.
|
||||
accountDeletion:
|
||||
enabled: false # Serves the delete route on hub-api and shows the Account tab in the frontend.
|
||||
graceDays: 14 # Days a requested deletion can still be cancelled, 0 to 30.
|
||||
purge:
|
||||
enabled: false # Starts the hub-api worker that erases due accounts from this deployment's database and storage. Enable it only in the environment that owns the database.
|
||||
dryRun: false # The worker counts what it would erase, writes the counts to the request and deletes nothing.
|
||||
# Deletion of an organisation by its primary owner, in the organisation
|
||||
# settings. It closes the organisation to every member at once and erases
|
||||
# it after accountDeletion.graceDays; the accountDeletion.purge worker
|
||||
# does the erasing.
|
||||
# it after accountDeletion.graceDays; the
|
||||
# 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.
|
||||
mediaProxy:
|
||||
@@ -593,7 +637,7 @@ kerberoshub:
|
||||
frontend:
|
||||
repository: ghcr.io/uug-ai/hub-frontend
|
||||
pullPolicy: IfNotPresent
|
||||
tag: "v1.19.42"
|
||||
tag: "v1.19.80"
|
||||
replicas: 2
|
||||
containerPort: 8080
|
||||
securityContext:
|
||||
@@ -606,15 +650,16 @@ kerberoshub:
|
||||
drop: ["ALL"]
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
# Keep these entries when adding custom branding/translation mounts.
|
||||
volumes:
|
||||
- name: frontend-tmp
|
||||
emptyDir:
|
||||
medium: Memory
|
||||
sizeLimit: 16Mi
|
||||
volumeMounts:
|
||||
- name: frontend-tmp
|
||||
mountPath: /tmp
|
||||
# The hardened image writes its generated runtime configuration and nginx's
|
||||
# temp files to /tmp. The chart always mounts a memory-backed emptyDir there
|
||||
# (volume name frontend-tmp); you never have to list it yourself, and the
|
||||
# custom branding/translation mounts further down only add to it.
|
||||
tmp:
|
||||
sizeLimit: 16Mi
|
||||
# Extra volumes and mounts for this deployment (custom css, favicons,
|
||||
# translations). See the "Custom layout" section below for the mount paths.
|
||||
volumes: []
|
||||
volumeMounts: []
|
||||
topologySpreadConstraints: [] # Optional pod topology spread constraints (empty = none).
|
||||
# Set to false to skip rendering the hub-frontend Service (e.g. when an
|
||||
# external/shared Service is managed elsewhere).
|
||||
@@ -665,7 +710,14 @@ kerberoshub:
|
||||
logo: "custom"
|
||||
# Custom layout: override css, favicons and translations (i18n)
|
||||
# By providing a style.css file in the custom folder this file will override
|
||||
# any css styling. Favicons are mounted into the favicon folder.
|
||||
# any css styling. Favicons are mounted into the favicons folder.
|
||||
# The image runs as UID 65532 without a shell, so the files must be readable
|
||||
# by that UID (chmod a+rX) and must be written to the volume from outside the
|
||||
# frontend pod (a ConfigMap, or a helper pod mounting the same PVC).
|
||||
# Mounting a directory replaces everything the image ships there: when you
|
||||
# mount assets/custom, include icons.js, auth-icons.js and logo-sidebar.png
|
||||
# (copy them from custom-layout/) next to your style.css, or mount only
|
||||
# style.css with subPath.
|
||||
#
|
||||
# Translations (i18n): for each language the served strings are
|
||||
# deepMerge(assets/i18n/<lang>.json, assets/i18n-custom/<lang>.json)
|
||||
@@ -687,10 +739,13 @@ kerberoshub:
|
||||
#volumeMounts:
|
||||
# - name: custom-layout
|
||||
# mountPath: /usr/share/nginx/html/assets/custom
|
||||
# readOnly: true
|
||||
# - name: custom-favicon
|
||||
# mountPath: /usr/share/nginx/html/assets/favicon
|
||||
# mountPath: /usr/share/nginx/html/assets/favicons
|
||||
# readOnly: true
|
||||
# - name: custom-i18n
|
||||
# mountPath: /usr/share/nginx/html/assets/i18n-custom
|
||||
# readOnly: true
|
||||
#volumes:
|
||||
# - name: custom-layout
|
||||
# persistentVolumeClaim:
|
||||
@@ -785,6 +840,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
|
||||
@@ -835,6 +893,13 @@ kerberoshub:
|
||||
tags:
|
||||
enabled: "true" # Enable or disable tags filter in media 'true' or 'false'
|
||||
defaultView: "timeline" # Default view for media page 'timeline' or 'grid'
|
||||
# Recordings timeline on page load: collapsed to one combined activity row,
|
||||
# or open with a row per device. Users can expand or collapse it afterwards;
|
||||
# that choice lasts until the page is reloaded.
|
||||
timeline:
|
||||
collapsed:
|
||||
desktop: "false" # Open the timeline collapsed on desktop 'true' or 'false'
|
||||
mobile: "true" # Open the timeline collapsed on viewports up to 900 px wide 'true' or 'false'
|
||||
# Chart feature
|
||||
chart:
|
||||
colors:
|
||||
@@ -939,6 +1004,15 @@ kerberoshub:
|
||||
deleteTimeoutSeconds: "120" # Delete timeout.
|
||||
reportIncludeStats: "false" # Include richer dry-run/user summary stats.
|
||||
dryRun: "false" # Force dry-run behavior without using mode=dry-run.
|
||||
# Erasure of the accounts and organisations whose deletion is due
|
||||
# (kerberoshub.api.accountDeletion / organisationDeletion). Every worker
|
||||
# takes any due deletion in its database: enable it in exactly one
|
||||
# deployment per database. It uses kerberosvault.*, kerberoshub.api.stripe
|
||||
# and the audit transport.
|
||||
accountDeletion:
|
||||
purge:
|
||||
enabled: false # Starts the worker in hub-cleanup that erases due accounts and organisations from the database, storage and Stripe.
|
||||
dryRun: false # The worker counts what it would erase, writes the counts to the request and deletes nothing. dryRun / mode dry-run above imply it.
|
||||
debug: "false" # Extra per-user/global debug logging.
|
||||
globalPassEnabled: "false" # Enable post-user global cleanup pass.
|
||||
globalPassIntervalHours: "0" # 0 = every cycle when enabled.
|
||||
@@ -1170,6 +1244,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
|
||||
@@ -1287,6 +1362,13 @@ kerberoshub:
|
||||
# v1.4.10+ holds a change 20 seconds (DEVICE_GROUPING_HOLD_SECONDS) to collect
|
||||
# other cameras that change at the same time; older releases hold one scan.
|
||||
scanIntervalSeconds: 60
|
||||
# Service and Prometheus ServiceMonitor for /metrics on port 8080 (scan
|
||||
# counters and mongodb_client_* command metrics). Enable only with a
|
||||
# hub-monitor-device release that serves /metrics; older images leave the
|
||||
# target down.
|
||||
serviceMonitor:
|
||||
enabled: false
|
||||
interval: 15s
|
||||
resources:
|
||||
requests:
|
||||
memory: 10Mi
|
||||
@@ -1332,6 +1414,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
|
||||
@@ -1353,6 +1436,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
|
||||
@@ -1374,6 +1458,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
|
||||
@@ -1397,6 +1482,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
|
||||
@@ -1422,6 +1508,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:
|
||||
@@ -1442,6 +1529,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
|
||||
@@ -1463,6 +1551,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
|
||||
@@ -1505,6 +1594,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
|
||||
@@ -1532,6 +1622,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
|
||||
@@ -1544,6 +1635,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:
|
||||
@@ -1564,6 +1656,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
|
||||
@@ -1587,6 +1680,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
|
||||
@@ -1613,7 +1707,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
|
||||
@@ -1680,3 +1782,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}}
|
||||
|
||||
@@ -29,7 +29,7 @@ for mode in all ui; do
|
||||
--set kerberoshub.frontend.demoEnabled=true)"
|
||||
for name in hub-frontend hub-frontend-demo; do
|
||||
deployment="$(resource Deployment "$name" <<< "$rendered")"
|
||||
assert_contains "$deployment" 'image: "ghcr.io/uug-ai/hub-frontend:v1.19.42"$'
|
||||
assert_contains "$deployment" 'image: "ghcr.io/uug-ai/hub-frontend:v1.19.80"$'
|
||||
assert_contains "$deployment" 'containerPort: 8080$'
|
||||
[[ "$(grep -c 'containerPort:' <<< "$deployment")" == 1 ]]
|
||||
for setting in 'name: http' 'runAsNonRoot: true' 'runAsUser: 65532' \
|
||||
|
||||
Reference in New Issue
Block a user