Skip to content

Security model

Opfield gives every person, API token, and AI agent scoped access to exactly the resources they need, and records every action in one audit log: no shared root, no shared administrator passwords, no per-tool user lists. The platform owner controls Opfield and managed-node placement, the security owner defines identity and secret policy, and resource owners approve access to their workloads and data.

Opfield assumes managed hosts and administrators are consequential trust boundaries. It reduces reusable credentials and direct shell dependence through outbound daemon enrollment, PKI identities, resource scopes, audited operations, and bounded daemon roles.

A secure deployment succeeds when authority is explicit, credentials are not reused across trust boundaries, mutations are verified by the owning runtime, and failures do not silently fall back to a less secure path. “Reachable” is not the same as “authorized,” and “visible in cached inventory” is not permission to mutate.

Key principles:

  • one-time enrollment rather than reusable node tokens;
  • mTLS and pinned Opfield identity for managed transport;
  • explicit resource scopes and separate reveal/export/mount permissions;
  • encrypted secrets at rest and masked output by default;
  • Opfield-owned internal containers excluded from user lifecycle APIs;
  • separate application identities for managed database bindings;
  • fail-closed behavior when ownership, entitlement, node state, or provider compatibility cannot be proven;
  • immutable audit attribution after account lifecycle changes.

Opfield secures what runs on its Nodes and the paths between them. The host operating system and the network around it stay with you: keep OS updates, host hardening, and perimeter rules in place.

Boundary Security responsibility
Opfield host Protect application secrets, database access, container runtime, persistent volumes, and administrator access
PostgreSQL and Redis Keep private, authenticated, backed up, and restricted to Opfield services
Relay Preserve service identity, signed policy, database authorization path, and public 9443/tcp ownership
Managed Node Protect daemon identity, systemd service, local runtime, storage, and role-specific privileges
Build Worker Isolate untrusted source builds from ordinary workloads and host-control endpoints
Ingress Node Protect TLS private keys, nginx configuration, logs, and public traffic
Storage Node Protect owner credentials, storage images, Database CA material, and engine administration
External provider Apply provider-specific credential, retention, availability, and network controls

Administrators and anyone able to control the Opfield host Docker socket are trusted at a high level. Opfield-owned internal containers are hidden and protected from normal user lifecycle APIs, but this does not turn host-level Docker access into an untrusted boundary.

Human sessions, API tokens, OAuth, MCP, daemon certificates, service identities, database binding principals, logging tokens, and inference tokens are separate credential families. They are not interchangeable. The backend rechecks scopes, resource ownership, entitlements, and current state even when the UI hides an action.

Resource-scoped permissions limit which objects a user can see or mutate. Sensitive actions such as credential reveal, private-key export, host file access, console access, and secret mutation require distinct authority from ordinary read access. Credentials are not revealed during impersonation, Node console sessions and Node file reads are audited, and API tokens and the assistant cannot change their own account’s sign-in, MFA, or sessions, grant impersonation, or restore into groups beyond the caller’s permissions. The AI assistant asks for approval before it reveals or rotates credentials or exports private keys.

Sign-in is limited per account and client address, as described in Sign-in limits and sessions, and each authenticator code works once. A replayed OAuth authorization code is refused without revoking the tokens issued for it. Settings that decide who can be trusted need admin:system as well as settings:opfield:edit: SMTP and the email transport, the OIDC provider, the public URL, relaxing verified-email enforcement, OIDC user auto-creation and its default group, the sign-in methods, the MFA grace period, the absolute session lifetime, client IP trust, and the outbound webhook policy.

Settings > Advanced > Network trust decides which address Opfield treats as the client for rate limits, the allowed addresses of tokens, and audit records. Reverse proxy believes X-Real-IP and X-Forwarded-For only from the Trusted proxy CIDRs, and a new save needs at least one range. An installation upgraded with an empty list keeps that setting, which believes forwarded headers from any peer, until you enter the ranges your proxy connects from; Network trust warns about it. Routes have their own Client IP setting.

execute_node_console_command runs an agent’s command in a sandbox of its own, where the container runtime’s sockets and command-line tools are covered, and Opfield refuses a command that visibly changes a managed object with 403 MANAGED_RESOURCE_CONSOLE_FORBIDDEN. This stops an agent from changing containers by mistake; it is not a security boundary against a determined root process, so grant nodes:console only to agents you would trust with root on the Node. A daemon that does not run as root runs such commands as its own user. Containers changed outside Opfield are reported by the built-in alert rule Container changed outside Opfield.

Secrets are encrypted at rest and masked in normal responses. Write-only values must be replaced rather than retrieved. Keep master keys outside database backups, redact logs and screenshots, and avoid passing credentials through command arguments or repository URLs. The audit log redacts connection strings, secret URLs, webhook headers, and secret values, and container inspect, environment views, and archive export never show the passwords and keys of database and storage links.

Managed database workloads receive binding-specific identities, not owner credentials. The target Docker Node’s shared secure-link connector serves each binding on a private network of its own, which only the bound workload joins. Container links work the same way: each opens one port of the target, in one direction, to one consumer.

Where secrets live in a self-hosted installation

Section titled “Where secrets live in a self-hosted installation”

Every plan can be self-hosted, and a self-hosted installation keeps its secrets in the environment you control:

Material Where it is stored
Credentials that Opfield stores for you: Docker secrets and environment values, registry credentials, DNS, Cloudflare, and hosting-provider tokens, SSH keys, OIDC and SMTP secrets, database and storage credentials, AI and Inference provider keys, webhook signing secrets, certificate-authority and ACME private keys, and the license key, installation token, and registration nonce The installation’s own PostgreSQL database, encrypted with AES-256-GCM envelope encryption: each value has its own random data key, which is encrypted with the master key
Master key (PKI_MASTER_KEY) Generated on the Opfield host during installation and kept in the installation’s .env file with restricted permissions; it is passed to Opfield services at start and is not stored in the database
Opfield’s own TLS private key A file in Opfield’s persistent data on the Opfield host
Managed Node identity The Node’s daemon private key stays on that Node
Managed database TLS keys Daemon-owned storage on the Storage Node, outside the database image

Anyone who controls the Opfield host, its .env file, or its Docker socket can reach this material. Keep the master key backup separate from database backups, and never paste .env contents into chat or support tickets. See Updates, backups, and restore for the recovery set.

Opfield makes these outbound connections on its own. Everything else depends on integrations you configure, such as ACME and DNS providers, source-control systems, registries, identity providers, email, webhooks, SIEM receivers, and AI providers.

Destination Purpose Data sent
License service (license.opfield.dev) Registration after the first start, heartbeats every 15 minutes with a paid key or every 30 minutes on Community, key activation and deactivation, release authorization before an update, and commercial-core downloads for licensed installations Installation ID, installation name, Opfield version, entitlements schema version, installation token, a random request nonce, and the pinned signing key IDs; a one-time registration nonce at registration, the paid key at activation, and the target version, release ID, and file path for updates. See Plans and entitlements
Update service (get.opfield.dev) Release checks at startup and every 4 hours by default (UPDATE_CHECK_INTERVAL_HOURS), and signed release downloads Release channel, component, and current version
Container registries such as ghcr.io Pulling Opfield release images Standard image pull requests
Cloud account (account.opfield.dev), only after an administrator connects the installation to Opfield Cloud or chooses the Opfield account in the setup wizard Showing the installation in your cloud account and, when remote management is allowed, enrolling nodes and starting updates The installation’s state, its service list, and container logs when the account asks for them; every request is recorded in the audit log
Public IP lookup services Detecting the public addresses of Opfield and managed Nodes Standard HTTPS requests; the Opfield backend skips the lookup when both PUBLIC_IPV4 and PUBLIC_IPV6 are set

Opfield keeps a signed list of the license service’s addresses and uses whichever answers; an egress allowlist needs license.opfield.dev. LICENSE_SERVICE_URL in .env, for example an egress proxy, is tried first.

The installation script contacts only the update service, container registries, and Docker package repositories; Opfield registers with the license service shortly after its first start. The license and update services do not receive infrastructure configuration, resource contents, secrets, logs, prompts, or model responses. Opfield contains no usage telemetry or crash-reporting client. When AI Workspace or Opfield Inference is enabled, prompts go to the model providers that an administrator configures, not to the Opfield team.

Responses from the license service are signed license states. Opfield pins the service’s Ed25519 public keys and accepts a state only when it was signed for this installation and request, and issued within 15 minutes of the local clock; it rejects unsigned, forged, replayed, or foreign states and verifies stored states again whenever it reads the license. See Signed license states.

Opfield and daemon updates are verified against keys compiled into each release: a primary release key, a slot for an offline standby key, and a list of revoked keys, so a lost or leaked key can be retired without reinstalling Nodes. First installs follow the same chain: the node installers verify every daemon binary against its signed release manifest before anything runs it. The setup command Opfield shows downloads the installer from the Opfield release and checks it against that release’s checksum list, and get.opfield.dev/install.sh is trusted through TLS. Images are also signed with Sigstore and come with SBOMs; the repository’s Verifying Releases guide shows how to check them with cosign.

Node daemons serve their local Secure Link, registry, and backup ports only to their own services, and that trust is per operating-system user, not per process. A process running as the nginx worker user can open any Secure Link of that Node, so do not run untrusted code as that user. A host that cannot look up the owner of a loopback connection, such as an unprivileged container or gVisor, serves every local user on the registry and backup ports, and the Node page shows a warning naming the fix.

Opfield rejects or defers operations when it cannot prove current ownership, node capability, plan entitlement, provider/model compatibility, signed update provenance, network source identity, or required authorization. Cached inventory may remain visible for diagnosis but cannot authorize a mutation.

Availability failures must not be “fixed” by introducing anonymous listeners, disabling certificate validation, exposing private ports, or copying owner credentials into workloads.

Opfield cannot protect a compromised administrator endpoint, malicious host root, unrestricted Docker socket owner, compromised external identity provider, or data deliberately exported by an authorized user. Use independent host hardening, network segmentation, endpoint security, backups, and organizational controls.

Before adopting Opfield for a production environment, identify who controls the Opfield host, Relay, every managed host, the external identity provider, source-control providers, DNS, email, AI providers, and backup storage. Document which parties can obtain plaintext application data or credentials. If one person or system owns several boundaries, record that concentration of privilege rather than assuming product scopes remove it.

For each new capability, answer four questions:

  1. What data or infrastructure can it reach?
  2. Which credential authorizes that access and where is it stored?
  3. Which audit or Task evidence proves what happened?
  4. What remains operational, and what must fail closed, when the dependency is unavailable?

Review the model after material topology, identity, provider, or entitlement changes. A design approved for one Ingress and one private database may not remain appropriate after adding Build Workers, public database access, external AI providers, or cross-team automation.

Test denial as deliberately as success: an unscoped user, a revoked token, a Node with stale capability data, an unsigned or mismatched update, a workload without the binding identity, and a private outbound destination outside policy. Preserve the resulting audit and error evidence. Security controls that have never been exercised under failure should be treated as assumptions.