Compare commits

..
4 Commits
Author SHA1 Message Date
KilianandClaude Fable 5.2 d279e83093 feat(hub): flags for account deactivation and deletion (0.193.0) (#249)
kerberoshub.api.accountDeletion.enabled sets
FEATURE_ACCOUNT_DELETION_ENABLED on hub-api and the frontend, graceDays
the grace period of a requested deletion. The worker that erases due
accounts has its own switch, purge.enabled, with purge.dryRun to count
without deleting. All off by default.

uug-ai/hub-frontend#1042

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-17 18:30:51 +01:00
Cédric VerstraetenandClaude Opus 5.5 8bc4a5c881 feat(hub): session inactivity prompt timeout (0.192.0) (#243)
Add kerberoshub.api.session.inactivityTimeout (default 15m), passed to
hub-api as SESSION_INACTIVITY_TIMEOUT. The frontend asks idle users
whether they are still there after this long and signs them out after
60 seconds without an answer. "0" turns the prompt off.

Default images move to the first pair that carries the prompt and runs
hardened in production: hub-api v1.11.43 and hub-frontend v1.19.42.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 17:03:19 +01:00
KilianandClaude Fable 5.2 eca5780c0d chore(hub): publish the rbac organisations flag (0.191.0) (#248)
0.190.0 was published from #244 seconds before #247 merged with the same
version, so the released chart lacks kerberoshub.api.rbacOrganisations.
Bumping the version publishes main as it is.

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-17 11:55:37 +01:00
KilianandClaude Opus 5.5 73861943fb feat(hub): flag for organisations in rbac mode (0.190.0) (#247)
* feat(hub): flag for organisations in rbac mode (0.190.0)

Adds kerberoshub.api.rbacOrganisations.enabled (default false). It sets
RBAC_ORGANISATIONS_ENABLED on hub-api, which then accepts
organisation.authorizationMode "rbac" on POST /organisations, and
FEATURE_RBAC_ORGANISATIONS_ENABLED on the frontend and the demo frontend,
which offer the option when creating an organisation. One value drives
both so they cannot disagree.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(hub): rbacOrganisations drives hub-api only

Every organisation created with POST /organisations starts in rbac mode
when the value is on, so the frontend has no option to offer and the
FEATURE_RBAC_ORGANISATIONS_ENABLED variable is dropped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(hub): rbacOrganisations also covers new accounts' home organisations

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 11:16:23 +01:00
6 changed files with 45 additions and 7 deletions
+1 -1
View File
@@ -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.190.0
version: 0.193.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
+9 -3
View File
@@ -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.35`, running as `65532:65532` on port `8080`
`ghcr.io/uug-ai/hub-frontend:v1.19.42`, 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.
@@ -893,7 +893,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.42"` |
| `kerberoshub.api.tag` | The Docker image tag/version. | `"v1.11.43"` |
| `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"` |
@@ -901,6 +901,7 @@ kerberospipeline:
| `kerberoshub.api.session.accessTokenTimeout` | Lifetime of one access token (Go duration). The frontend renews it silently while the session is valid. | `"15m"` |
| `kerberoshub.api.session.idleTimeout` | A session that is not used for this long ends (lifetime of the refresh token). | `"12h"` |
| `kerberoshub.api.session.maxLifetime` | Hard session limit counted from login; refreshing never extends a session past it. | `"24h"` |
| `kerberoshub.api.session.inactivityTimeout` | Without user interaction for this long, the frontend asks "Are you still there?" and signs the user out after 60 seconds. `"0"` turns the prompt off. Needs hub-api with session claims and a matching frontend. | `"15m"` |
| `kerberoshub.api.schema` | The protocol to serve the Kerberos Hub API, `'http'` or `'https'`. | `"https"` |
| `kerberoshub.api.url` | The Kerberos Hub API ingress to access the API. | `"api.yourdomain.com"` |
| `kerberoshub.api.corsAllowedOrigins` | Additional complete HTTP(S) origins allowed to call the Hub API. Configured frontend origins remain allowed automatically. | `[]` |
@@ -912,6 +913,11 @@ kerberospipeline:
| `kerberoshub.api.ask.azureOpenAI.deployment` | Deployment name; the model must support function calling and structured output. Sets `ASK_AZURE_OPENAI_DEPLOYMENT`. Required when Ask is enabled. | `""` |
| `kerberoshub.api.ask.azureOpenAI.reasoningEffort` | Optional `minimal`, `low`, `medium` or `high`; empty for models without reasoning. Sets `ASK_AZURE_OPENAI_REASONING_EFFORT`. | `""` |
| `kerberoshub.api.disableAgentHeartbeat` | Temporarily stop serving the polled `GET /devices` list (hub-api returns `204` without database reads). Devices still load once through `/session/bootstrap`; online/offline status stops refreshing. | `false` |
| `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 deactivate or 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.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`. | `""` |
@@ -959,7 +965,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.35"` |
| `kerberoshub.frontend.tag` | The Docker image tag/version. | `"v1.19.42"` |
| `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"` |
@@ -309,6 +309,8 @@ spec:
value: {{ .Values.kerberoshub.api.session.idleTimeout | quote }}
- name: SESSION_MAX_LIFETIME
value: {{ .Values.kerberoshub.api.session.maxLifetime | quote }}
- name: SESSION_INACTIVITY_TIMEOUT
value: {{ .Values.kerberoshub.api.session.inactivityTimeout | quote }}
- name: REFRESH_COOKIE_SECURE
value: {{ eq .Values.kerberoshub.api.schema "https" | quote }}
{{- $corsOrigins := list (printf "%s://%s" .Values.kerberoshub.frontend.schema .Values.kerberoshub.frontend.url) }}
@@ -398,6 +400,22 @@ spec:
- name: DISABLE_AGENT_HEARTBEAT
value: {{ .Values.kerberoshub.api.disableAgentHeartbeat | default false | quote }}
# Organisations in rbac mode: every new organisation, including new accounts' home organisations.
- name: RBAC_ORGANISATIONS_ENABLED
value: {{ (.Values.kerberoshub.api.rbacOrganisations | default dict).enabled | default false | quote }}
# Account deactivation and deletion by the owner; the purge worker has its own switch.
{{- $accountDeletion := .Values.kerberoshub.api.accountDeletion | default dict }}
{{- $accountPurge := $accountDeletion.purge | default dict }}
- 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 }}
- name: ACCOUNT_DELETION_PURGE_ENABLED
value: {{ $accountPurge.enabled | default false | quote }}
- name: ACCOUNT_DELETION_PURGE_DRY_RUN
value: {{ $accountPurge.dryRun | default false | quote }}
# Media proxy: hide Vault/storage endpoints behind hub-api URLs.
{{- $mediaProxy := .Values.kerberoshub.api.mediaProxy | default dict }}
- name: MEDIA_PROXY_ENABLED
@@ -322,6 +322,8 @@ spec:
value: "{{ .Values.kerberoshub.frontend.features.audit.enabled }}"
- name: FEATURE_PASSKEYS_ENABLED
value: "{{ .Values.kerberoshub.api.passkeys.enabled }}"
- name: FEATURE_ACCOUNT_DELETION_ENABLED
value: "{{ (.Values.kerberoshub.api.accountDeletion | default dict).enabled | default false }}"
- name: FEATURE_DAY_OVERVIEW_ENABLED
value: "{{ .Values.kerberoshub.frontend.features.dayOverview.enabled }}"
- name: FEATURE_DEVICE_ANALYTICS_ENABLED
+14 -2
View File
@@ -381,7 +381,7 @@ kerberoshub:
api:
repository: ghcr.io/uug-ai/hub-api
pullPolicy: IfNotPresent
tag: "v1.11.42"
tag: "v1.11.43"
replicas: 2
podSecurityContext:
fsGroup: 65532
@@ -415,6 +415,7 @@ kerberoshub:
accessTokenTimeout: "15m" # Lifetime of one access token; the frontend renews it silently.
idleTimeout: "12h" # A session that is not used for this long ends.
maxLifetime: "24h" # Hard limit counted from login; the user must sign in again after it.
inactivityTimeout: "15m" # Without user interaction for this long, the frontend asks "Are you still there?" and signs out after 60s. "0" turns it off.
schema: "https"
url: "api.yourdomain.com"
# Additional complete HTTP(S) origins allowed to call the Hub API.
@@ -448,6 +449,17 @@ kerberoshub:
# Kerberos Vault into an opaque hub-api URL ({schema}://{url}/media/proxy?t=...)
# and streams the object itself, so clients never see Vault or the
# underlying storage endpoint. Increases hub-api egress/bandwidth.
rbacOrganisations:
enabled: false # Every new organisation starts in rbac mode: created ones (POST /organisations) and new accounts' home organisations. Existing organisations keep their mode.
# Account deactivation and 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.
accountDeletion:
enabled: false # Serves the deactivate and delete routes 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.
mediaProxy:
enabled: false
publicUrl: "" # Optional override of the public hub-api base URL; defaults to {schema}://{url}.
@@ -569,7 +581,7 @@ kerberoshub:
frontend:
repository: ghcr.io/uug-ai/hub-frontend
pullPolicy: IfNotPresent
tag: "v1.19.35"
tag: "v1.19.42"
replicas: 2
containerPort: 8080
securityContext:
+1 -1
View File
@@ -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.35"$'
assert_contains "$deployment" 'image: "ghcr.io/uug-ai/hub-frontend:v1.19.42"$'
assert_contains "$deployment" 'containerPort: 8080$'
[[ "$(grep -c 'containerPort:' <<< "$deployment")" == 1 ]]
for setting in 'name: http' 'runAsNonRoot: true' 'runAsUser: 65532' \