Skip to content

v1.5.0 - Resource Limits and Security Isolation

Latest

Choose a tag to compare

@github-actions github-actions released this 15 Nov 15:32

Resource Limits and Security Isolation

This release adds per-step resource controls and stronger Docker isolation for safer, more reproducible local pipeline execution.

New Features

CPU and Memory Limits

Apply hard Docker cgroup limits to individual steps:

steps:
  - name: Build
    command: cargo build --release
    resources:
      cpus: 1.5
      memory: 1GiB
  • Supports fractional CPU limits
  • Supports KiB, MiB, GiB, KB, MB, and GB memory units
  • Invalid or unsafe resource values fail configuration validation before execution

Network Isolation

Configure the network policy for each step:

security:
  network: none
  • Supports bridge, none, and host modes
  • allowlist mode requires an explicit host list and fails closed because Docker's standard API cannot enforce domain-level egress ACLs by itself

Read-only Filesystems and Mounts

security:
  read_only_rootfs: true
  read_only_workspace: true
  read_only_cache: true
  • Supports read-only container root filesystems
  • Workspace and cache mounts can be independently protected
  • Only FORGE-managed workspace, shared, and cache mounts are exposed; arbitrary host volumes are not accepted

Secrets and Capabilities

Expose only the secrets a step needs and restrict Linux capabilities:

secrets:
  - API_TOKEN
security:
  drop_capabilities: [NET_RAW, SYS_ADMIN]
  • Explicit secrets: [] prevents secret injection for a step
  • Capability additions and removals are validated for conflicting values
  • Secret names must exist in the top-level configuration

Pinned Image Digests

Require immutable image references for hermetic builds:

security:
  require_image_digest: true
image: rust:1.91-slim@sha256:<64-character-digest>

Documentation and Testing

  • Updated the configuration reference with resource and security options
  • Updated the README feature summary
  • Added focused validation coverage for resources, network policies, secrets, capabilities, and image digests
  • Full Rust test suite passes
  • CI, CodeQL, cross-platform builds, and dogfood pipeline pass

What's Changed

  • Package version bumped to 1.5.0
  • Roadmap updated with completed resource and security isolation work

Full Changelog: v1.4.0...v1.5.0