Security mechanisms
What the application protects on its own: revocable sessions, bcrypt passwords, Fernet-encrypted secrets, TLS, RBAC, and file validation.
In brief
This page explains the protections shipped with the application, verifiable in the source code. It asks nothing of you: the hardening that falls to you is in Secure your instance, and the boundary of your data in Your data.
Authenticate and revoke sessions
Brume issues JWT tokens signed with HS256. A protected request carries the token in the Authorization: Bearer header or in the misty_v2 cookie.
The token carries a ver version. The server compares it to the user's token_version counter and rejects any earlier version with Session revoked. Signing out increments that counter: tokens already issued no longer pass the check.
Hash passwords
Local passwords are transformed with bcrypt and a salt generated for each hash. Sign-in verifies the password with bcrypt; the stored value is not reversible.
Encrypt application secrets
The encryption module reads APP_ENCRYPTION_KEY at runtime and uses Fernet. Provider keys and other application secrets are encrypted before being written to the database, then decrypted only when they are used.
The Fernet key stays separate from the encrypted data. Without it, encryption and decryption operations are blocked. Creating and injecting it is detailed in Configuration variables.
Protect traffic with TLS
The Helm chart publishes the Traefik routes for the backend, the frontend, and the documentation on the websecure entrypoint; the Tower route uses that entrypoint only. TLS certificates and the HTTP-to-HTTPS redirect are configured on the instance's ingress.
Control access by role
RBAC separates organisation (tenant) permissions from workspace (workspace) permissions. The server computes effective rights from the role preset, then the organisation's role settings for workspaces, then the user's own overrides.
Backend checks refuse an unknown or missing permission. The full matrix is available in Roles and permissions.
Validate file MIME types
Before an upload, the declared MIME type is compared to the allowed types; HTML, XHTML, SVG, and JavaScript content are refused in particular. After a direct upload to object storage, Brume checks that the type returned by the storage matches the declared type.
For audio and video files, processing also inspects the file bytes with python-magic. A file whose actual content does not belong to the announced media family is rejected before extraction.
Inspect requests: the sovereign filter
The sovereign filter, which inspects requests upstream of remote calls, ships in the Enterprise edition. The Referent calibrates it per orchestration policy: they choose the triggering categories (personal, financial, health, legal data) and the options offered to the user when it fires. The mechanism is detailed in Understanding the sovereign filter.
What these mechanisms do not promise
They protect the application, not the host that carries it: an open SSH or a missing firewall goes underneath them — that is the subject of Secure your instance. And they say nothing about what leaves your perimeter for the BYOK provider: that boundary is described in Your data.