Skip to content

M4: Centralize MCP RBAC and session-scope isolation #66

Backlog

Description

@h45sh

Context

src/ether/mcp/security.py defines OperationType and require_operation, but enforcement is scattered across handlers and manage_session mixes read, mutate, and query scopes. Session-scope checks and token rotation are not applied uniformly.

Acceptance criteria

  • One operation-to-tool registry maps every MCP tool to its required scope.
  • Split manage_session into read, mutate, and query scopes.
  • Every handler verifies the caller may access the requested session.
  • Token rotation is consistent between the static admin path and scoped tokens.
  • Tests cover a token that is valid but scoped to another session.

Out of scope

Transport-level mTLS changes.

Part of #27

Activity

  1. added this to the M4 Boundary milestone on Nov 29, 2026
  2. added
    type:security
    area:gateway
    priority:P2
    on Nov 29, 2026
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

    area:gatewaypriority:P2type:security

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions