The operator UI (UI_ENABLED=true) has no built-in authentication.
All mutation endpoints (create/update/delete sources, destinations, trigger
backups, manage age keys) are accessible to anyone who can reach the UI port.
Always place an authenticating reverse proxy in front of the UI in
production. See docs/getting-started.md (§3.1) for OAuth2 Proxy and Ingress basic-auth
examples.
Passwords, SSH private keys, and S3 secret keys sent via the UI are
transmitted as JSON in POST/PUT request bodies. While GET responses mask
these fields as ***, the original values remain visible in the
browser's Network tab (DevTools → Network → request → Payload/Preview).
This is inherent to any browser-based management UI. Mitigations:
- Use an auth proxy — prevents unauthorised users from reaching the UI in the first place.
- Avoid shared screens — close DevTools before screen-sharing or recording.
- Use short-lived credentials — rotate database passwords and storage keys regularly; do not reuse across services.
- Prefer Kubernetes-native Secret management — create source and
destination Secrets via
kubectl applyor GitOps (Sealed Secrets, SOPS, External Secrets Operator) instead of the browser UI when handling highly sensitive credentials.
By default, SFTP destinations reject connections when no known-hosts
data is provided in the destination Secret. This prevents silent
man-in-the-middle attacks on the storage transport.
To populate known-hosts, run:
ssh-keyscan -p <port> <host> 2>/dev/nulland store the output in the destination Secret's known-hosts key.
If host-key verification must be skipped (e.g. during initial testing),
explicitly opt in by adding insecure-skip-host-verify: "true" to the
destination Secret's data:
apiVersion: v1
kind: Secret
metadata:
name: my-sftp-dest
labels:
backup.mogenius.io/role: destination
backup.mogenius.io/storage-type: sftp
data:
host: <base64>
username: <base64>
ssh-private-key: <base64>
insecure-skip-host-verify: dHJ1ZQ== # base64("true")Warning: Skipping host-key verification allows any server to accept uploads. Backup payloads are encrypted with
age, but an attacker can silently discard or collect encrypted artifacts. Use this only for development or initial bootstrapping, then switch to properknown-hosts.
- Backups are encrypted with
agepublic keys only. The private key never enters the cluster. - Keep the private key offline (paper, hardware token, password manager). Losing it means losing access to every backup it can decrypt.
- Multiple recipients are supported for key rotation and disaster recovery.
- The
UI_ALLOW_KEY_MUTATIONflag (defaultfalse) gates age-key add/remove via the UI — the most security-critical mutation, since a hostile add silently widens future-backup decryption.
Both operator and worker pods run with a restricted SecurityContext:
readOnlyRootFilesystem: trueallowPrivilegeEscalation: falsecapabilities: drop: [ALL]seccompProfile: RuntimeDefaultrunAsNonRoot: true(UID 1000)
This passes Pod Security Admission in restricted mode.
Database credentials never appear on command lines:
| Database | Mechanism |
|---|---|
| PostgreSQL | PGPASSWORD environment variable |
| MySQL | MYSQL_PWD environment variable |
| MongoDB | 0600-permission YAML config file (cleaned up via defer) |
| Redis | REDISCLI_AUTH environment variable |