Compare commits

..
1 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
5 changed files with 28 additions and 1 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.192.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
+4
View File
@@ -914,6 +914,10 @@ kerberospipeline:
| `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`. | `""` |
@@ -404,6 +404,18 @@ spec:
- 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
+9
View File
@@ -451,6 +451,15 @@ kerberoshub:
# 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}.