Join our Newsletter — 33% off our NHI Course
Home Glossary Threats, Abuse & Incident Response Shared workspace trust boundary
Threats, Abuse & Incident Response

Shared workspace trust boundary

← Back to Glossary
By NHI Mgmt Group Updated August 20, 2026 Domain: Threats, Abuse & Incident Response

The point at which one job, repository, or trust level should no longer be allowed to influence another through the same filesystem path or cache. In CI, a shared workspace can quietly turn from convenience into an attack path if writes are not isolated.

Expanded Definition

A shared workspace trust boundary is the point where one job, repository, or trust level must stop being able to influence another through the same filesystem path, cache, or build area. In CI and agentic automation, the boundary matters because execution is often fast, repeated, and partially reused, which means leftover files can become unintended inputs for the next run.

Definitions vary across vendors, but the security intent is consistent: isolate write paths, scope caches, and prevent cross-job contamination. In practice, this concept sits between workspace hygiene and access control. It is not just about cleanup after a run; it is about preventing one principal from shaping another principal’s execution context. NIST SP 800-53 Rev. 5 Security and Privacy Controls is useful here because it frames the broader expectations for separation, least privilege, and system integrity.

The most common misapplication is treating a shared runner or mounted volume as safe by default, which occurs when teams assume the same path is trustworthy simply because jobs are short-lived.

Examples and Use Cases

Implementing shared workspace trust boundaries rigorously often introduces storage and orchestration overhead, requiring organisations to weigh speed and cache reuse against stronger isolation.

  • A pull request job writes a binary into a cached directory, and a later release job picks it up from the same path unless the workspace is namespaced per trust level.
  • A build agent reuses a mounted repository directory across branches, so a low-trust branch can influence artifacts produced for a higher-trust deployment.
  • An AI agent with tool access downloads dependencies into a shared cache, and another job consumes them without integrity checks, creating an invisible cross-job dependency.
  • A CI pipeline uses ephemeral runners but retains a persistent volume, so temporary files survive long enough to alter subsequent builds or leak secrets.
  • Workspace cleanup is performed after success only, leaving failed jobs to preserve state that later executes in a different trust context.

For broader identity and access context, the Ultimate Guide to NHIs explains why non-human identities become difficult to govern when operational environments are shared across teams and workloads. For control expectations around protected execution environments, NIST SP 800-53 Rev. 5 Security and Privacy Controls provides the baseline language practitioners use to justify separation, integrity, and access restrictions.

Why It Matters in NHI Security

Shared workspace trust boundaries matter because CI systems increasingly act on behalf of service accounts, API keys, signing identities, and AI agents. When those workflows reuse the same workspace, a weak boundary can let one identity contaminate another identity’s outputs, credentials, or build provenance. That turns a convenience feature into a persistence channel.

This is especially important in NHI programs because secrets, tokens, and certificates often appear in build environments long before they are visible in a vault. NHIMG reports that 96% of organisations store secrets outside secrets managers in vulnerable locations, and 79% have experienced secrets leaks, with 77% resulting in tangible damage. That makes workspace isolation a practical control, not an abstract hygiene issue.

The Ultimate Guide to NHIs is a useful reference when teams need to connect workspace design to secret exposure, rotation, and offboarding discipline. The same control logic aligns with NIST SP 800-53 Rev. 5 Security and Privacy Controls because integrity and least privilege only hold if execution contexts are actually separated.

Organisations typically encounter the consequence only after a poisoned build, leaked token, or altered artifact appears in production, at which point shared workspace trust boundary failures become operationally unavoidable to address.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 and OWASP Agentic AI Top 10 address the attack and risk surface, while NIST CSF 2.0, NIST Zero Trust (SP 800-207) and NIST SP 800-63 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-02Shared workspaces often expose secret sprawl and cross-job credential contamination.
NIST CSF 2.0PR.AC-4Least-privilege access depends on preventing lateral influence across shared execution paths.
NIST Zero Trust (SP 800-207)Zero Trust requires every workspace access to be re-verified, not implicitly trusted.
NIST SP 800-63Identity assurance informs how strongly build and agent identities should be separated.
OWASP Agentic AI Top 10Agentic systems can misuse shared filesystems as hidden tool channels between tasks.

Treat each job and runner as untrusted until its workspace, path, and cache are explicitly authorized.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on August 20, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org