Security & Permissions
Security Model
Defense in depth across native and external services: authentication, scoped capabilities, network security, encryption and audit.
The five security layers
Every layer has one job: making sure that a compromise at one level does not reach the next. Integrations add a sixth concern — a trust boundary around every external system.
| Layer | Mechanisms |
|---|---|
| 1. Authentication & authorization | JWT tokens, API keys, PIN auth, RBAC |
| 2. Integration boundary | Capability checks, scoped credentials, connector manifests |
| 3. Network security | Domain whitelist, IP access control, sandbox |
| 4. Data protection | AES-256-GCM encryption, hash-chained audit logs |
| 5. Threat detection & response | Intrusion detection, auto-lockdown, alerts |
| 6. Platform security | AppArmor, container isolation, read-only filesystem |
Identity across independent systems
A shared interface must not create a shared super-user. rumahl keeps its own local identity, and each integration receives a separate scoped credential and consent record.
- Each integrated service keeps its own accounts and permissions.
- rumahl never uses one privileged credential for every service.
- A rumahl app can only act with the capabilities the user granted to that app.
- Revoking an integration revokes its scoped credential immediately.
- No transitive permissions: access to rumahl does not automatically mean access to a service.
No accidental escalation
The native interface may be convenient, but it must never be able to do more than the underlying service and the user’s consent allow.
Core security services
| Service | Port | Role |
|---|---|---|
| rumahl-security | 8095 | Threat detection, intrusion prevention, lockdown |
| rumahl-secrets | 8093 | Encrypted secrets and scoped integration credentials |
| rumahl-watchdog | 8094 | Health monitoring, failover, circuit breaker |
Data protection
- Encryption at rest: AES-256-GCM for secrets and sensitive data.
- Audit logging: hash-chained logs — tampering becomes visible immediately.
- Local-first: by default, no data leaves your device at all.
- Integration data stays with the service unless a capability explicitly moves it.
- Opt-in telemetry: diagnostics and cloud features require explicit consent.
Permissions as the trust boundary
- Every API call is checked against an explicit permission at the gateway.
- Permission decisions are bound to the live account, app installation and declared capability — never to installation level.
- Destructive operations require explicit, typed confirmation — never autonomous.
- Connectors fail closed when a capability, credential or expected response is missing.
- AppArmor, the runtime sandbox and scoped credentials limit what a compromised integration can do.
Didn’t solve your problem? Contact us — we’re happy to help.