[MCP] - Story 3: Implement Security Guardrails & Token Policies #489

Open
opened 2026-04-02 08:42:28 +00:00 by humaton · 0 comments
Owner

Summary

Giving AI agents access to Fedora's source code repositories introduces the risk of accidental modifications if tokens are overly permissive. We must define and document the exact token scopes required for the MCP integration to operate in a strictly read-only capacity.

Details

Tasks

  1. Review the Forgejo API documentation regarding Personal Access Token scopes.
  2. Identify the minimum required scopes for the goern/forgejo-mcp tools to function (e.g., read:repository, read:issue).
  3. Verify that write actions (e.g., pushing commits, closing PRs) are explicitly blocked when using these minimal scopes.
  4. Draft a security policy outlining these requirements for Fedora contributors.

Acceptance Criteria

  • The exact minimum PAT scopes are identified and documented.
  • A test confirms that attempting a write-action via the MCP using the recommended token scope results in a standard HTTP 403 Forbidden error.
  • The security guidelines are approved by the Fedora Security Team (or equivalent reviewers).
### Summary Giving AI agents access to Fedora's source code repositories introduces the risk of accidental modifications if tokens are overly permissive. We must define and document the exact token scopes required for the MCP integration to operate in a strictly read-only capacity. ### Details **Tasks** 1. Review the Forgejo API documentation regarding Personal Access Token scopes. 2. Identify the minimum required scopes for the `goern/forgejo-mcp` tools to function (e.g., `read:repository`, `read:issue`). 3. Verify that write actions (e.g., pushing commits, closing PRs) are explicitly blocked when using these minimal scopes. 4. Draft a security policy outlining these requirements for Fedora contributors. **Acceptance Criteria** * The exact minimum PAT scopes are identified and documented. * A test confirms that attempting a write-action via the MCP using the recommended token scope results in a standard HTTP 403 Forbidden error. * The security guidelines are approved by the Fedora Security Team (or equivalent reviewers).
humaton added this to the (deleted) project 2026-04-02 08:42:28 +00:00
humaton modified the project from (deleted) to Backlog 2026-07-20 10:41:51 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
forge/forge#489
No description provided.