Security Hardening
Prerequisites
Section titled “Prerequisites”- Dedicated service identity
- Protected config and secret files
- TLS or trusted proxy boundary
- Database users scoped to Oriel databases
Use a dedicated service user:
sudo useradd --system --no-create-home --shell /usr/sbin/nologin orielProtect config:
sudo install -m 0640 -o root -g oriel oriel.example.toml /etc/oriel/oriel.tomlPrefer environment variables or external secret management for:
ORIEL_METADATA_DSNORIEL_CLICKHOUSE_DSNORIEL_AUTH_COOKIE_SECRETORIEL_AUTH_OIDC_<SLUG>_CLIENT_SECRET
Use TLS or bind plaintext listeners to loopback behind a proxy. Avoid
server.insecure = true outside local or tightly controlled networks.
Use the shipped systemd units as the hardening baseline. They set:
NoNewPrivileges=trueProtectSystem=strictProtectHome=truePrivateTmp=true- Empty capability sets
ReadWritePaths=/var/lib/oriel
Verify
Section titled “Verify”oriel --config /etc/oriel/oriel.toml doctorsystemctl cat oriel.servicecurl -fsS http://localhost:6743/readyzReview audit logs after role, token, workspace, and member changes.
Rollback/Recover
Section titled “Rollback/Recover”- Revoke leaked API or ingest tokens immediately.
- Rotate
auth.cookie_secretonly with awareness that in-flight OIDC login transactions may be affected. - If a hardening option blocks a needed file path, add a narrow allowlist rather than broadening filesystem access.