All guides

Which security boundaries should I compare before moving Codex work between local and cloud environments?

Updated

Short answer

Compare the executing environment, effective identity, repository permissions, filesystem and network reach, approval rules, setup steps and evidence handling. Verify which administrative requirements apply on each route. A successful local Codex task does not establish that its cloud equivalent has the same authority or controls. Test the intended operation and a harmless prohibited variation in both environments.

Compare execution authority, not model names#

A local CLI process and a remotely hosted task can use similar instructions while acting with different credentials, filesystems and network access. Start the review at the executing environment and follow the operation to its target.

Use the current official Codex security and administrative configuration references for the selected product. Record the source version or review date. A setting copied from a local example is not evidence that a hosted environment reads or enforces it.

Build a local-and-cloud route matrix#

This proposed worksheet compares the same owned task in two environments without assuming equivalent implementation.

BoundaryLocal routeCloud route
IdentityUser, service or delegated credential actually usedHosted task and downstream service identities
FilesEffective working directories, mounts and credential pathsRepository checkout, injected files and retained artifacts
ExecutionShell, helper processes and configured isolationSetup, task commands and independent service operations
NetworkEffective recipients and intermediariesSetup and task network paths, remote tools and destinations
PolicyEnforced requirements and editable defaultsApplicable administration controls and task configuration
EvidenceAvailable local records and protected copiesAvailable run, tool, artifact and service records
ExitCredential expiry and local cleanupAccess revocation, retained outputs and task lifecycle

Leave an unknown cell unknown. Model identity, a product label or a successful installation does not fill it.

Separate administrative requirements from task preferences#

An organization needs to know which settings constrain a user and which are defaults that a user can change. Inspect the current managed configuration reference for the deployed route and verify effective values through a harmless operation.

Also inspect the instructions the task actually loads. Repository guidance can shape the work, but text alone does not independently enforce a filesystem, credential or resource boundary. The Codex instruction-loading guide explains how to verify that separate concern.

Trace setup, tool calls and outputs#

Review preparation steps as part of the task's authority. A dependency installer or setup helper may execute before the requested edit, with access distinct from the main workflow. Scope its credentials and recipients rather than assuming the pull-request diff records everything it did.

Inspect resulting artifacts and diagnostic records for sensitive content. A minimal code change can still have involved an unrelated read, upload or credential use. Preserve the evidence needed to investigate those operations with appropriate minimization and access restrictions.

Test the same task on both routes#

Choose a disposable repository, synthetic information and a controlled receiving service. Specify the legitimate result and a prohibited variation before running the comparison. For example, keep the ordinary tool operation the same while changing the target resource or recipient to one outside the task's authority.

Inspect useful completion, decisions, actual effects and evidence separately. Verify the behavior when a required check is unavailable and when a credential is revoked. Do not use a completion message or an absent record as proof that the resource boundary held.

Keep results tied to the environment, agent version, administrative policy and configured tool route. Repeat the relevant cases after a material change. The sandboxing guide covers effective mounts, privileges and network reach.

Where a supported action check fits#

Harden evaluates supported pending coding-agent calls against task context and policy. Verify the integration on the actual local or remote route before extending that coverage statement. A successful local check does not demonstrate enforcement inside a hosted task.

Keep downstream authorization, isolation and release approval in place. Use the completed matrix in a scoped Control evaluation, and record uncovered routes alongside the common policy requirements.

FAQ

Related questions

Does using the same model make local and cloud security equivalent?

No. Model identity does not establish the executing process's credentials, filesystem, network access or administrative policy. Review the actual environment and routes used by the task.

Can I copy local permissions into a cloud task and assume they apply?

Use the configuration and administration mechanisms documented for the selected environment. Verify the effective settings and a harmless boundary check. A similarly named field or a copied file is not evidence that the hosted route enforces it.

Is a generated pull request evidence that every action was authorized?

No. The diff describes resulting code changes, while setup, network, tool and credential operations may occur outside the diff. Retain the evidence necessary for those operations and keep release approval separate.

What should happen to credentials when a task ends?

Use the identity owner's expiry and revocation process, and verify the resource no longer accepts the intended access. Check retained artifacts and logs separately; ending an agent session is not proof that every credential or output was removed.

Where does a pre-execution control fit?

Evaluate it only on the agent, tool class and execution route the installed integration supports. Check its decision and resulting effect. A check working in the local CLI does not establish that it operates in a hosted environment.

Sources

  1. Codex approvals and security
  2. Codex managed configuration
  3. NIST SP 800-207: Zero Trust Architecture

Start free at harden.run

Full Enterprise access, free for 60 days: unlimited developers, custom policies, centralized visibility, no commitment.