Workspace access, privacy and retention
SIHub provides technical foundations for controlled operation. This does not imply blanket compliance with the GDPR (DSGVO) or the AI Act, guaranteed EU processing, or certified security. Hosting, provider choice, legal bases, and actual organizational processes are the operator's responsibility.
Accounts and roles
New accounts require a password of 12 to 256 characters. Passwords are hashed with Werkzeug. Owner manages their workspace, Admin can edit its settings and team management, Editor edits content and conversations, Viewer reads. Owner accounts and your own account cannot be deactivated through normal team actions. Additional people join via a one-time invitation link that is valid for seven days, stored hashed, and only applies to the invited email address. Existing accounts keep their own workspace and receive an additional membership. Area roles such as customer service, accounting, or tattoo artist restrict on the server side which areas a person may open or change; workspace_members.ROUTE_AREAS assigns each route to an area; routes that are not assigned remain blocked for area roles. API keys receive limited scopes and no administrative rights.
A user account currently belongs to exactly one workspace. A full agency/sub-account hierarchy or a workspace switcher does not exist yet. The database filters access by workspace. Custom provider API keys, Google OAuth credentials, and inbox credentials are stored encrypted in MariaDB per workspace. Operator credentials can still be configured centrally.
Protected inbox data and credentials
The private inbox stores customer names, contact channels, subjects, messages, appointment requests, and email headers exclusively as records with authenticated encryption. Previews and sending jobs are also generated from this encrypted data. The encryption binds workspace, record type, and ID; ciphertexts copied from another record are rejected. API responses do not return stored passwords or secrets. Sign-in passwords remain one-way hashes; they are not stored as decryptable passwords.
Private agent work orders from the team area also protect work instructions, messages, tool arguments, and results. Sub-orders inherit this protection. The output is decrypted only for the authorized user; customer content is not copied into unencrypted general chat or reminder copies.
The permanent master key is kept on the server separately from the database and the session secret. SIHub uses a configured SIHUB_DATA_ENCRYPTION_KEY, an existing provider/calendar key, or a private key file credentials.key in the instance directory. SIHUB_DATA_ENCRYPTION_KEY_FILE sets its path if needed. New installations create the file once with private permissions. If the key for already encrypted data is missing, no replacement key is generated; restore the existing key from the backup.
Back up the master key separately and with access protection, together with the restore plan for MariaDB. Customer keys are managed in the interface; no environment file is needed per customer. Editing rights allow access to the inbox and calendar; configuring credentials requires owner or administrator rights. General SIHub API keys do not get private calendar or inbox access. Portal keys allow saving requests and queuing transactional emails via their assigned active mailbox in their own workspace; they do not grant read access to the inbox or credentials. Set up your inbox
On the sign-in page, Forgot your password? leads to a password reset by email. The form confirms the request regardless of whether an eligible account exists; it does not confirm delivery. Only active accounts in approved workspaces receive a link valid for 60 minutes; a new link replaces the previous one. Operator accounts are excluded; restore them locally with
manage.py reset-password instead. Tokens are generated randomly and stored only as hashes. They can be used once and are bound to the current password. The request and the password change are protected against CSRF and rate-limited. The new password requires 12 to 256 characters. A successful email reset discards existing sessions on the next access and requires signing in again. SMTP and the public HTTPS address are set up via the normal deploy workflow.
2FA and SSO are not implemented. For diagnosis and recovery, an operator can locally run manage.py reset-password to replace lost passwords. Sessions are bound to the account ID and the current password hash through an HMAC check value: a password change in the application keeps the current session and discards other sessions; a CLI reset discards all previous sessions on the next access. In the event of an incident, API key rotation and provider credentials must also be handled separately.
Sessions and public access
The session cookie is signed, HttpOnly, and SameSite=Lax. Production requires a strong AIHUB_SECRET_KEY as well as HTTPS with AIHUB_SECURE_COOKIES=1. Mutating session requests require CSRF. AIHUB_TRUST_PROXY=1 may only be enabled behind the configured single trusted proxy hop; Gunicorn stays bound to loopback for this.
The login option Keep me signed in is off by default. Without this option, a cookie for the browser session is used; its signature is valid for at most twelve hours. With the option, the sign-in remains valid on this device for up to 30 days of inactivity and is renewed with active use. The password is not stored in the browser. Signing out deletes the session cookie; password changes and account locks are also checked for remembered sign-ins on the next access. Session cookies issued before the upgrade keep their previous lifetime.
Widgets are public entry points with origin checks and rate limiting. An origin allowlist does not authenticate a person. Twilio callbacks require an HMAC signature. The host allowlist process for tools is another independent protection. Do not put provider keys in public widgets or client-side JavaScript.
Retention and access requests
Workspaces can set retention_days to a value from 1 to 3,650. manage.py purge deletes conversations based on their creation time, along with the related messages/outbox entries. The command runs automatically only after maintenance has been deliberately set up. --dry-run shows the affected counts in advance.
The former public demo has been removed. Historical demo workspaces remain locked for sign-in, API access, and live actions and are removed by manage.py purge completely after seven days.
Audit data, regular tasks/reviews, backups, proxy logs, and provider storage have their own retention periods. The workspace export supports data review but is not a complete automated access/deletion request process. Logs may contain IP addresses and URL paths; set up access, rotation, and appropriate retention periods.
The public Privacy notice and the Deletion instructions describe the confirmed operator facts and existing features. Business/register details that are still pending remain marked in the Legal notice as pending. The operations guide describes the required contract evidence and how deletion requests are handled; a published text alone does not confirm full legal compliance. The managed backups are activated through the normal deploy; existing rollback copies and external provider storage are not cleaned up automatically as a result.
Public channel information
Active channels with a published assistant have a public page at /trust/KANAL_ID. It shows the channel/agent name, test/live mode, the configured company name/contact, the selected LLM provider and the actual telephony processing with Twilio Gather/Say without call recording. The widget links to this page.
The page states the workspace retention period and that a deletion process must be set up. Otherwise, per-agent privacy fields are stored configuration; they currently do not override the actual workspace retention. The public information replaces neither a complete privacy policy nor a concluded DPA or a compliance guarantee.
Outbox notifications can transfer recipient/conversation data to SMTP and webhook destinations. Configure only necessary information and actual recipients. Their delivery history and the external mail/webhook systems need their own access and retention rules.