Skip to main content

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​

  1. Threat model in brief
  2. The vault master key
  3. Rotating the vault key
  4. TLS
  5. Service accounts and least privilege
  6. File system permissions
  7. Sign-in policy: passwords, SSO, two-step sign-in, sessions
  8. Network restrictions
  9. Audit trail, checkpoints and SIEM export
  10. Secret rotation for runners, API keys and tokens
  11. Retention
  12. Agents, toolkits and uploads
  13. Recommended settings checklist
  14. Known gaps
  15. Security scans of the code

1. Threat model in brief​

AssetMain protections
Vault credentialsAES-256-GCM, each value bound to its location; master key outside the database; values handed to agents only during runs, every use audited
Agent definitionsSHA-256 taken at check-in and re-checked on every read (CR.AGENT_TAMPERED); optional four-eyes approval before production
Audit trailHMAC-SHA-256 chain keyed by a vault-encrypted secret; hourly checkpoints outside the database
SessionsRandom tokens, only hashes stored; HttpOnly, SameSite=Strict cookie; CSRF header on every change
Runner channelOne-time registration keys; device secrets stored as hashes and rotated; TLS with certificate checks
ReleasesSigned 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:

OrderSourceSet withNotes
1OOA_MASTER_KEYEnvironment 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
2OOA_MASTER_KEY_SOURCE=azure-keyvault:https://NAME.vault.azure.net/secrets/SECRETAzure Key Vault secretSigns 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)
2OOA_MASTER_KEY_SOURCE=aws-secrets:REGION/SECRET-IDAWS Secrets ManagerAWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY(/AWS_SESSION_TOKEN), the ECS task role, or the EC2 instance role (IMDSv2)
2OOA_MASTER_KEY_SOURCE=gcp-secret:projects/P/secrets/S/versions/latestGoogle Secret ManagerThe machine's service account (metadata server)
2OOA_MASTER_KEY_SOURCE=promptAn operator types the key at startNeeds a console: not for services or containers
3DATA\master.keyCreated at the first start when nothing else is setEvaluation; 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 in JAVA_OPTS if 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 ooa command 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:

  1. Take a backup (ooa backup now) and keep the current key.
  2. Stop One CommandCenter on every node.
  3. 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_KEY or OOA_MASTER_KEY_SOURCE).
  4. 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 as vault.rekey. It refuses while the Command Center has the database open.
  5. 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.
  6. 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​

ItemRecommendation
ProtocolsBuilt-in HTTPS offers TLS 1.2 and 1.3 only. On a load balancer, use a policy with TLS 1.2+ only.
CertificateCompany or public CA certificate covering every address used; renew before 30 days remain (ooa check warns)
Plain HTTPNever across the network. A server listening beyond 127.0.0.1 without TLS prints a warning at start.
HSTS and cookiesAutomatic with built-in HTTPS, with X-Forwarded-Proto: https, or when public_url starts with https://
.pfx passwordStored encrypted with the vault key (ooa tls set-password)
Databasetls=required with a trusted CA (tls.ca); never trustAnyCertificate in production
RunnersTrust only the company CA or the exported certificate (--ca)
SMTPSTARTTLS or SSL; none only on a trusted network; the server certificate must match the host name

5. Service accounts and least privilege​

ComponentAccountRights it needs
One CommandCenter serviceA dedicated domain account or gMSA (--account), rather than Local SystemRead 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 Linuxooa system user (systemd unit)Write only /var/lib/ooa (ProtectSystem=strict)
Containerooa user, non-root; program owned by rootWrite only /data
Database runtime accountooa_app or the gMSAdb_datareader, db_datawriter only
Database setup accountooa_setupdbcreator; keep its password out of the settings file between upgrades (remove setup.password)
Runner for screen agentsA dedicated Windows user per runnerOnly the application rights the agents need; not an administrator
Runner serviceLocal System by default; prefer a dedicated accountRights the headless agents need
Key store identityVM or task identityRead 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​

PathWho may readNotes
DATA\master.key (if used)The service account onlyBetter: do not use a key file in production
DATA\configService account and administratorsHolds encrypted passwords and the .pfx
DATA\backups, backup_folderService account and backup operatorsBackups hold encrypted vault values and all data
DATA\audit-checkpoints.logService account; copy to write-once storage
Runner %USERPROFILE%\.ooa-agent\agent.jsonThat user onlyHolds the device secret in clear text (profile ACLs protect it)
Program folderAdministrators write, everyone readsDefault for Program Files

7. Sign-in policy​

SettingRangeDefaultRecommendation
password_min_length12 to 641214 or more
password_history0 to 24012
password_max_days0 to 36500 (never)Per company policy; or rely on SSO
mfa_required0 optional, 1 administrators, 2 everyone with a password0At least 1
session_hours1 to 72088 or less
max_sessions_per_user1 to 5053
inactive_user_days0 to 3650090
sso_issuer, sso_client_id, sso_client_secret_refOpenID 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_roleA roleEmptyEmpty (existing accounts only) or the least role

Built in, not configurable:

  • Password rules: at least password_min_length and 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_LIMITED with Retry-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​

ControlSetting
Restrict who may call the APIip_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 proxiestrusted_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 address127.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 trafficoutbound_proxy plus egress firewall rules; serverless tasks can reach any address the server can, so make them only for trusted agents
Runner networksNo inbound ports; outbound to One CommandCenter only
SaaSNetGuard refuses private, loopback, link-local, CGNAT and unique-local targets for tenants; add network egress rules too (09)
Response headersBuilt 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 to DATA\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) and syslog_protocol (udp default, or tcp with 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​

SecretRotation
Runner device secretsAutomatic 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 keysOne 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 keys8 hours, extended while used; POST /api/auth/refresh replaces them
Database passwordsChange in the database, then ooa db set-password [--setup], restart
TLS certificateReplace the .pfx, ooa tls set-password, restart
SaaS operator tokenooa region token, update operator.token_sha256, restart the region
Vault master keySection 3

11. Retention​

SettingRangeDefault
audit_retention_days0, or 90 to 365000 (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_days0 to 365000 (keep)
ai_call_retention_days, work_item_retention_days0 to 365000 (keep)
runner_usage_retention_days0 to 3650090
backup_keep_days1 to 36507

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, .vbs and .jar uploads.
  • 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).

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:

SettingAllowedEffect
switched_off_rolesbot_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_hours1 to 720 (default 8)Offline hours after which a temporary runner is removed
runner_secret_days0 to 365 (default 30, 0 never)Days after which a runner's secret is replaced
backup_hours, backup_folder0 to 168, a folderAutomatic backups and where they go (no folder choice in SaaS)
repo_files_folderA folderShared storage for repository files when several nodes run (no folder choice in SaaS)
outbound_proxy, outbound_proxy_bypasshttp://host:port; host namesOne 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_toHost name, port, starttls/ssl/none, a vault reference, addressesMail sent by One CommandCenter; the password is a vault reference, never a value
syslog_target, syslog_protocolhost:port; udp or tcpAudit forwarding (section 9)
public_url, sso_issuerhttps:// addresses (http:// only on a test system)
sso_default_roleAn existing role
ip_allow_list, trusted_proxiesAddresses or CIDR rangesSection 8; a list that would shut out your own address is refused
  • Vault key from OOA_MASTER_KEY or a cloud key store; no master.key on production servers; key backed up apart from backups.
  • HTTPS with a company certificate; public_url set to the HTTPS address; ooa check shows 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_required at least 1; sso_default_role empty or minimal.
  • password_min_length 14+, password_history 12, inactive_user_days 90, max_sessions_per_user 3.
  • ip_allow_list set, or equivalent filtering at the load balancer; trusted_proxies lists the balancers.
  • syslog_target set to the SIEM; audit-checkpoints.log shipped to write-once storage.
  • audit_retention_days set per policy (90 or more), archives retained.
  • backup_hours set, backup_folder on separate storage; restore tested.
  • runner_secret_days 30 (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 check passes before every install and upgrade; ooa agent diagnose passes on each runner.
  • /api/health/ready watched by the load balancer or monitoring (11).
  • switched_off_roles lists 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):

ScanWhenWhat failsWhere the results are
CodeQL code scanning (Java, TypeScript/JavaScript, Python, workflows)pushes to master, pull requests, weeklynothing by itself; new findings are flagged on a pull requestSecurity > 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 reviewpull requestsa new or upgraded dependency with a known high or critical advisorythe pull request (a comment)
Java dependencies sent to GitHubpushes to master, weeklynothingInsights > Dependency graph; Dependabot alerts
Dependabot updates (Gradle, npm, GitHub Actions, Docker)weekly, Monday 02:00 ISTnothing; minor and patch updates come as one pull request per ecosystemPull 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.