Skip to content

feat: enforce runtime sandbox for council-review-action #337

Closed as not planned

Description

@sonupreetam

Summary

Enforce runtime sandboxing in the council-review-action to cut off
internet access during AI review.

From @trevor-vaughan on complytime/org-infra#428:

We'll need to ensure that Internet access is cut off.

Motivation

The council-review-action runs untrusted PR diff content through an
LLM. Currently, the action relies on prompt-level instructions to
prevent shell/network access. This is not enforcement — the model
retains full host network authority.

Implementation

  • Add OPENCODE_PERMISSION env var to scripts/run-review.sh denying
    bash, webfetch, websearch, mcp, edit, write — OpenCode's
    native tool-level enforcement (used by OpenCode's own review.yml)
  • Add --pure flag to opencode run (skip external plugins)
  • Update docs/decisions.md with the sandboxing decision

Companion issues

Security Risk Register

Full risk register with accepted risks and mitigations:
council-review-action/docs/security-risks.md

Activity

  1. added
    security
    github_actions
    enhancement
    on Jul 15, 2026
  2. sonupreetam commented on Jul 16, 2026

    @sonupreetam
    ContributorAuthor

    ⚠️ Outdated — this comment predates the closure of this issue. All work is now tracked in complytime/nunya#406.


    Upstream tracking: complytime/nunya#406 (Layer 2+3 permission model)

    nunya#406 now proposes a four-layer defense-in-depth (updated from three):

    • Layer 1 (pre-collect context): Partially done in feat: add council-review-action composite GitHub Action #336 (CI checks, reviews, linked issues). Lint output not yet collected.
    • Layer 2 (agent frontmatter permissions): Granular read-only permissions on Divisor agents — tracked in nunya#406
    • Layer 3 (Plan agent --agent plan): Replace --dangerously-skip-permissions — tracked in nunya#406
    • Layer 4 (--pure flag): Skip external plugins to close plugin bypass vector — tracked in nunya#406

    Related security controls tracked separately:

  3. sonupreetam commented on Jul 23, 2026

    @sonupreetam
    ContributorAuthor

    Superseded by complytime/nunya#406, which proposes a four-layer defense-in-depth approach (pre-collect context + granular agent frontmatter permissions + Plan agent mode + --pure plugin isolation) that covers this issue's scope and goes further with read-only git/grep allowlisting instead of blanket deny.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgithub_actionssecurity

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions