Skip to content

Add basic permission configuration methods #3351

Description

@linghengqian

Problem

{
  "$schema": "https://opencode.ai/config.json",
  "permission": {
    "bash": {"git commit *": "deny","git push *": "deny"},
    "edit": {"/etc/wsl.conf": "deny"},
    "external_directory": {"*": "allow","/mnt/**": "deny"}
  }
}

Desired outcome

  • Add basic permission configuration methods.

Alternatives or workarounds

  • Uncertain.

Activity

  1. added
    enhancement
    on Aug 20, 2026
  2. added
    help wanted
    and removed
    help wanted
    on Aug 22, 2026
  3. CxHsin commented on Sep 2, 2026

    @CxHsin
    Contributor

    Hi, I’d like to work on this issue.
    I reviewed the current permission and sandbox code. I propose first defining a Host-owned persistent permission-rule model with clear matching and precedence semantics, then integrating it with the CLI and Runtime Host.
    The initial scope would conservatively cover canonical filesystem exact/subtree rules and command-level deny rules, preserve existing defaults for unmatched operations, fail closed when the active platform cannot enforce a rule, and include tests and CLI documentation. I would not assume full OpenCode config compatibility without further discussion.
    Please let me know if this direction fits the project’s expectations.

  4. linghengqian commented on Sep 2, 2026

    @linghengqian
    MemberAuthor

    As an additional explanation, I cannot assign issues because I am not a committer for maka.

  5. CxHsin commented on Sep 3, 2026

    @CxHsin
    Contributor

    take

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

Metadata

Metadata

Assignees

Labels

enhancement

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions