08. Security hardening
What this covers / audience
How to protect an installation: the vault master key and where it can come from, TLS, service accounts and least privilege, the audit chain with checkpoints and SIEM forwarding, secret rotation, retention, sign-in policy (single sign-on, two-step sign-in), network restrictions, and a checklist of recommended settings. For security architects, security operations and administrators preparing for production or an audit.
Contents
- Threat model in brief
- The vault master key
- Rotating the vault key
- TLS
- Service accounts and least privilege
- File system permissions
- Sign-in policy: passwords, SSO, two-step sign-in, sessions
- Network restrictions
- Audit trail, checkpoints and SIEM export
- Secret rotation for runners, API keys and tokens
- Retention
- Agents, toolkits and uploads
- Recommended settings checklist
- Known gaps
- Security scans of the code
1. Threat model in brief
| Asset | Main protections |
|---|---|
| Vault credentials | AES-256-GCM, each value bound to its location; master key outside the database; values handed to agents only during runs, every use audited |
| Agent definitions | SHA-256 taken at check-in and re-checked on every read (CR.AGENT_TAMPERED); optional four-eyes approval before production |
| Audit trail | HMAC-SHA-256 chain keyed by a vault-encrypted secret; hourly checkpoints outside the database |
| Sessions | Random tokens, only hashes stored; HttpOnly, SameSite=Strict cookie; CSRF header on every change |
| Runner channel | One-time registration keys; device secrets stored as hashes and rotated; TLS with certificate checks |
| Releases | Signed manifest (Ed25519) and SBOM |
Full control list: Security architecture; scope and test cases for a penetration test: its section 14.
2. The vault master key
The key (32 random bytes) encrypts vault values, database and TLS passwords stored in the data folder, two-step secrets, the audit chain key and the install id. It is looked up in this order:
| Order | Source | Set with | Notes |
|---|---|---|---|
| 1 | OOA_MASTER_KEY | Environment variable, Base64 of 32 bytes (openssl rand -base64 32) | Machine-level variable on Windows (setx ... /M), /etc/ooa/ooa.env on Linux, a secret in containers |
| 2 | OOA_MASTER_KEY_SOURCE=azure-keyvault:https://NAME.vault.azure.net/secrets/SECRET | Azure Key Vault secret | Signs in with AZURE_TENANT_ID/AZURE_CLIENT_ID/AZURE_CLIENT_SECRET, or the App Service/Container Apps identity, or the VM's managed identity (AZURE_CLIENT_ID picks a user-assigned one) |
| 2 | OOA_MASTER_KEY_SOURCE=aws-secrets:REGION/SECRET-ID | AWS Secrets Manager | AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY(/AWS_SESSION_TOKEN), the ECS task role, or the EC2 instance role (IMDSv2) |
| 2 | OOA_MASTER_KEY_SOURCE=gcp-secret:projects/P/secrets/S/versions/latest | Google Secret Manager | The machine's service account (metadata server) |
| 2 | OOA_MASTER_KEY_SOURCE=prompt | An operator types the key at start | Needs a console: not for services or containers |
| 3 | DATA\master.key | Created at the first start when nothing else is set | Evaluation; on Linux created with mode 600 |
- The secret in a key store holds the key as Base64, like the variable. It is read once at start and kept only in memory. Give the machine's identity read access to that one secret only.
- If the key store cannot be reached at start, One CommandCenter does not start (
CR.VAULT_KEY). Plan network access to the key store (and a proxy inJAVA_OPTSif needed). - The start-up lines and Administration > Vault key show where the key came from and its fingerprint (first 12 hex digits of its SHA-256), never the key.
- Every
ooacommand that reads encrypted settings (db,tls,backup,check) needs the same key in its environment. - Hardware security modules (PKCS#11) are not supported in this version.
3. Rotating the vault key
The console's Rotate key (Administration > Credential vault > Vault key) works when the key comes from the key
file. It writes the new key next to the old one, re-encrypts in one transaction every credential, people's own
values, external-vault sign-in secrets, the audit chain key, two-step secrets and the install id, re-encrypts the
database and TLS passwords in the configuration files (keeping .before-rotate copies), replaces master.key and
keeps the old one as master.key.old-<time>. It is audited as vault.rotate.
When the key comes from OOA_MASTER_KEY or a key store, the console refuses to rotate (CR.VAULT_KEY): replacing
the key in the store without re-encrypting would make every stored value unreadable. Use ooa vault rekey instead,
during a maintenance window:
- Take a backup (
ooa backup now) and keep the current key. - Stop One CommandCenter on every node.
- Put a new key (32 random bytes, Base64) in an environment variable, for example
OOA_NEW_KEY, in the same prompt that still has the current key (OOA_MASTER_KEYorOOA_MASTER_KEY_SOURCE). - Run
ooa vault rekey --new-key-env OOA_NEW_KEY [--data DIR]. It re-encrypts every stored value with the new key, prints the new key's fingerprint (never the key) and is audited asvault.rekey. It refuses while the Command Center has the database open. - Replace the old key where it is kept (the variable or the key store) with the new one, on every node, and start the nodes. Until then One CommandCenter cannot read its secrets.
- Archive the old key with the backups made before the rotation.
With a key file, ooa vault rekey also works: it writes the new key into master.key and keeps the old one as
master.key.old-<time>.
4. TLS
| Item | Recommendation |
|---|---|
| Protocols | Built-in HTTPS offers TLS 1.2 and 1.3 only. On a load balancer, use a policy with TLS 1.2+ only. |
| Certificate | Company or public CA certificate covering every address used; renew before 30 days remain (ooa check warns) |
| Plain HTTP | Never across the network. A server listening beyond 127.0.0.1 without TLS prints a warning at start. |
| HSTS and cookies | Automatic with built-in HTTPS, with X-Forwarded-Proto: https, or when public_url starts with https:// |
.pfx password | Stored encrypted with the vault key (ooa tls set-password) |
| Database | tls=required with a trusted CA (tls.ca); never trustAnyCertificate in production |
| Runners | Trust only the company CA or the exported certificate (--ca) |
| SMTP | STARTTLS or SSL; none only on a trusted network; the server certificate must match the host name |
5. Service accounts and least privilege
| Component | Account | Rights it needs |
|---|---|---|
| One CommandCenter service | A dedicated domain account or gMSA (--account), rather than Local System | Read the program folder; read/write the data folder and backup folder; read/write the shared repository folder; network access to database and configured services; no local administrator |
| One CommandCenter on Linux | ooa system user (systemd unit) | Write only /var/lib/ooa (ProtectSystem=strict) |
| Container | ooa user, non-root; program owned by root | Write only /data |
| Database runtime account | ooa_app or the gMSA | db_datareader, db_datawriter only |
| Database setup account | ooa_setup | dbcreator; keep its password out of the settings file between upgrades (remove setup.password) |
| Runner for screen agents | A dedicated Windows user per runner | Only the application rights the agents need; not an administrator |
| Runner service | Local System by default; prefer a dedicated account | Rights the headless agents need |
| Key store identity | VM or task identity | Read one secret |
Administrators in the console: give the Administrator role to few people; use custom roles (Administration > Roles)
for narrow duties; switch off unused built-in roles (switched_off_roles).
6. File system permissions
| Path | Who may read | Notes |
|---|---|---|
DATA\master.key (if used) | The service account only | Better: do not use a key file in production |
DATA\config | Service account and administrators | Holds encrypted passwords and the .pfx |
DATA\backups, backup_folder | Service account and backup operators | Backups hold encrypted vault values and all data |
DATA\audit-checkpoints.log | Service account; copy to write-once storage | |
Runner %USERPROFILE%\.ooa-agent\agent.json | That user only | Holds the device secret in clear text (profile ACLs protect it) |
| Program folder | Administrators write, everyone reads | Default for Program Files |
7. Sign-in policy
| Setting | Range | Default | Recommendation |
|---|---|---|---|
password_min_length | 12 to 64 | 12 | 14 or more |
password_history | 0 to 24 | 0 | 12 |
password_max_days | 0 to 3650 | 0 (never) | Per company policy; or rely on SSO |
mfa_required | 0 optional, 1 administrators, 2 everyone with a password | 0 | At least 1 |
session_hours | 1 to 720 | 8 | 8 or less |
max_sessions_per_user | 1 to 50 | 5 | 3 |
inactive_user_days | 0 to 3650 | 0 | 90 |
sso_issuer, sso_client_id, sso_client_secret_ref | OpenID Connect | - | Use the company identity provider (PKCE, signature, issuer, audience, expiry and nonce checked); client secret as a vault reference |
SAML settings (saml_idp_*) | SAML 2.0 | - | Signed assertion or response, unencrypted; sign-ins start at One CommandCenter |
sso_default_role | A role | Empty | Empty (existing accounts only) or the least role |
Built in, not configurable:
- Password rules: at least
password_min_lengthand at most 128 characters; letters and digits; not the user name; no character four times in a row; not a common password, whatever its case and with digits or symbols added. - Lockout: 15 minutes after five failed sign-ins. Five wrong two-step codes end the sign-in and count as one failure.
- Two-step codes: authenticator app codes (RFC 6238) with the secret encrypted by the vault key, each code accepted once; one-time recovery codes stored as hashes.
- Passwords stored with PBKDF2-HMAC-SHA256 (210,000 iterations).
- Rate limits of 60 a minute per address for sign-in, tokens, SSO and runner registration, and 1,200 for webhooks, API
tasks and MCP (429
CR.RATE_LIMITEDwithRetry-After). Calls made on this computer without a proxy are not limited.
Single sign-on users follow the identity provider's MFA policy; enforce it there.
8. Network restrictions
| Control | Setting |
|---|---|
| Restrict who may call the API | ip_allow_list: up to 200 addresses or CIDR ranges. This computer and health checks are always allowed; saving a list that excludes your own address is refused. Behind a remote load balancer, list it in trusted_proxies so the list sees each client's address (otherwise it sees the balancer's). |
| Trusted proxies | trusted_proxies: addresses or CIDR ranges of your load balancers and reverse proxies. Only requests from these (or from this computer) may name the client with X-Forwarded-For; the last address that is not a trusted proxy counts for the allow list, rate limits and audit trail. Do not list networks where clients sit. |
| Listen address | 127.0.0.1 behind a local reverse proxy (the default of ooa server and ooa service install; for the installers pass -ListenAddress 127.0.0.1 / LISTEN_ADDRESS=127.0.0.1), or 0.0.0.0 with HTTPS (the installers' default for a service) |
| Outgoing traffic | outbound_proxy plus egress firewall rules; serverless tasks can reach any address the server can, so make them only for trusted agents |
| Runner networks | No inbound ports; outbound to One CommandCenter only |
| SaaS | NetGuard refuses private, loopback, link-local, CGNAT and unique-local targets for tenants; add network egress rules too (09) |
| Response headers | Built in: Content-Security-Policy (default-src 'self', frame-ancestors 'none'), X-Frame-Options: DENY, X-Content-Type-Options: nosniff |
9. Audit trail, checkpoints and SIEM export
- Every sign-in, change, run, credential use, task and workflow event is recorded and chained with HMAC-SHA-256.
- Every hour (on the leader) a checkpoint line,
<time> <sequence> <hash>, is appended toDATA\audit-checkpoints.log. Copy it to write-once storage or your log collector; the product does not do this itself. Audit Trail > Verify integrity compares the database with it, so deleting the newest records is detected. - SIEM: set
syslog_target(host:port) andsyslog_protocol(udpdefault, ortcpwith octet counting). Every audit entry is sent as RFC 5424 syslog, facility 13 (log audit), severity notice for success and warning otherwise. "Send a test message" checks it. - Export: Audit > Export CSV (up to 50,000 records), itself audited; API
GET /api/audit/export.
10. Secret rotation
| Secret | Rotation |
|---|---|
| Runner device secrets | Automatic every runner_secret_days (0 to 365, default 30): the runner asks with its heartbeat, saves the new secret atomically; the old one works for a short overlap |
| Registration keys | One use; valid for the hours chosen when made, from 1 to 168 (7 days) |
API keys (ooak_...) | Optional expiry; revoke any time; only a hash stored |
| Session tokens from API keys | 8 hours, extended while used; POST /api/auth/refresh replaces them |
| Database passwords | Change in the database, then ooa db set-password [--setup], restart |
| TLS certificate | Replace the .pfx, ooa tls set-password, restart |
| SaaS operator token | ooa region token, update operator.token_sha256, restart the region |
| Vault master key | Section 3 |
11. Retention
| Setting | Range | Default |
|---|---|---|
audit_retention_days | 0, or 90 to 36500 | 0 (keep all). Older records are moved to compressed files in DATA\audit-archive with an audit.purged record that keeps the chain verifiable. |
run_retention_days, run_log_retention_days | 0 to 36500 | 0 (keep) |
ai_call_retention_days, work_item_retention_days | 0 to 36500 | 0 (keep) |
runner_usage_retention_days | 0 to 36500 | 90 |
backup_keep_days | 1 to 3650 | 7 |
Retention runs hourly on the leader. Queued and running runs are never removed.
12. Agents, toolkits and uploads
production_approval= 1: a second person approves a version before it goes live.- Code analysis policy can refuse check-ins with errors (for example passwords typed into steps).
- Custom toolkits must be signed by a trusted publisher; the runner re-checks the jar's SHA-256 and signature before loading. Trust only publishers whose code you would install yourself.
block_executable_uploads= 1 refuses.exe,.dll,.msi,.bat,.cmd,.com,.scr,.ps1,.vbsand.jaruploads.max_upload_mb(1 to 1024, default 25) limits request size.- Vault attributes: keep Masked on; use Password fields only for passwords.
Checks One CommandCenter makes on its own:
- The SHA-256 of each agent version, taken at check-in, is checked again whenever the version is read. A version
changed in the database is never sent to a runner or an editor (
CR.AGENT_TAMPERED). - A runner newer than One CommandCenter gets no work; the Runners page marks it "update One CommandCenter".
- A run goes only to a runner that has the toolkits (and versions) the agent needs, otherwise it fails with
RUN.TOOLKIT_MISSING. Custom toolkits travel with the job and are checked again on the runner. - Licence seats apply to check-in and runs while a licence is installed; deleting a runner, or removing a temporary runner, frees its seat (functional 13).
13. Recommended settings checklist
Administration > Settings checks every change before saving: a known setting name, a whole number in its range, the
right address or host format. Then it saves all the changes in one transaction (all or nothing) and audits them as
settings.update. Text values are limited to 2,000 characters. Besides the settings in the tables above, these
security-relevant settings are checked:
| Setting | Allowed | Effect |
|---|---|---|
switched_off_roles | bot_creator, bot_runner, viewer (never admin) | Built-in roles that grant nothing and cannot be given; custom roles are deleted on the Roles page instead |
temporary_runner_hours | 1 to 720 (default 8) | Offline hours after which a temporary runner is removed |
runner_secret_days | 0 to 365 (default 30, 0 never) | Days after which a runner's secret is replaced |
backup_hours, backup_folder | 0 to 168, a folder | Automatic backups and where they go (no folder choice in SaaS) |
repo_files_folder | A folder | Shared storage for repository files when several nodes run (no folder choice in SaaS) |
outbound_proxy, outbound_proxy_bypass | http://host:port; host names | One CommandCenter's own outgoing connections; this computer is always reached directly |
mail_smtp_host, mail_smtp_port, mail_smtp_security, mail_smtp_password_ref, mail_from, license_mail_to | Host name, port, starttls/ssl/none, a vault reference, addresses | Mail sent by One CommandCenter; the password is a vault reference, never a value |
syslog_target, syslog_protocol | host:port; udp or tcp | Audit forwarding (section 9) |
public_url, sso_issuer | https:// addresses (http:// only on a test system) | |
sso_default_role | An existing role | |
ip_allow_list, trusted_proxies | Addresses or CIDR ranges | Section 8; a list that would shut out your own address is refused |
- Vault key from
OOA_MASTER_KEYor a cloud key store; nomaster.keyon production servers; key backed up apart from backups. - HTTPS with a company certificate;
public_urlset to the HTTPS address;ooa checkshows no HTTPS warning. - Database on SQL Server or PostgreSQL with
tls=required, data-only runtime account, setup password removed between upgrades. - Service runs as a dedicated account or gMSA; data folder ACLs limited.
- Single sign-on configured;
mfa_requiredat least 1;sso_default_roleempty or minimal. -
password_min_length14+,password_history12,inactive_user_days90,max_sessions_per_user3. -
ip_allow_listset, or equivalent filtering at the load balancer;trusted_proxieslists the balancers. -
syslog_targetset to the SIEM;audit-checkpoints.logshipped to write-once storage. -
audit_retention_daysset per policy (90 or more), archives retained. -
backup_hoursset,backup_folderon separate storage; restore tested. -
runner_secret_days30 (default) or less. -
production_approval= 1; code analysis refuses errors;block_executable_uploads= 1. - Runners for screen agents use dedicated non-admin accounts; after-run action set to lock or sign out where acceptable.
- Downloads verified with
ooa release verify; SBOM fed to the vulnerability scanner. -
ooa checkpasses before every install and upgrade;ooa agent diagnosepasses on each runner. -
/api/health/readywatched by the load balancer or monitoring (11). -
switched_off_roleslists the built-in roles you do not use; few people hold Administrator.
14. Known gaps
- Audit checkpoints are written to a local file only.
- Runner configuration files hold the device secret in clear text, protected by profile permissions.
- Runner updates are checked by SHA-256 over TLS, not separately signed.
- Local listeners (Studio, the internal runner listener, browser connector) trust any process on the same computer.
- SAML assertions cannot be encrypted, and sign-ins started at the identity provider are refused.
- No HSM support for the vault key.
- Unattended runners can sign Windows in after a restart (automatic sign-in), but cannot unlock a locked session; screen agents need a session that is signed in and unlocked.
15. Security scans of the code
Since 28 Nov 2026 the GitHub workflow .github/workflows/security.yml and .github/dependabot.yml check the code itself, apart from the
build (CI):
| Scan | When | What fails | Where the results are |
|---|---|---|---|
| CodeQL code scanning (Java, TypeScript/JavaScript, Python, workflows) | pushes to master, pull requests, weekly | nothing by itself; new findings are flagged on a pull request | Security > Code scanning |
| Secret scan (TruffleHog) | pushes to master and pull requests (their new commits), weekly (the whole history) | a secret TruffleHog verified as real (made-up test values do not) | the run's log |
| Dependency review | pull requests | a new or upgraded dependency with a known high or critical advisory | the pull request (a comment) |
| Java dependencies sent to GitHub | pushes to master, weekly | nothing | Insights > Dependency graph; Dependabot alerts |
| Dependabot updates (Gradle, npm, GitHub Actions, Docker) | weekly, Monday 02:00 IST | nothing; minor and patch updates come as one pull request per ecosystem | Pull requests |
CI also stops the build on high or critical npm audit findings and writes a software bill of materials (CycloneDX). CodeQL uses its security-extended rules (security findings only). Every GitHub Action in the workflows is pinned to an exact commit, so a moved tag cannot change what runs; Dependabot proposes the new commits. Repository settings that only an owner can turn on (Settings > Code security): Dependabot alerts and security updates, secret scanning with push protection, and private vulnerability reporting.
Related documents
- README
- 04. Network, ports, proxies and certificates
- 05. Databases
- 07. Backup, restore and disaster recovery
- 11. Monitoring, logging and troubleshooting (health checks,
ooa check) - Security architecture (controls and the security review brief)