mattermost / mattermost/mattermost-plugin-gitlab

Ability to reduce scope of Mattermost' access to GitLab's API?

Open
#464 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Triage
Dominant language
JavaScript
Stars
152
Forks
97
Avg merge
1d 14h
Merged PRs (30d)
8

Description

Thanks for your contributions to Mattermost.

Currently, the GitLab / Mattermost bridge requires granting Mattermost full API access to GitLab. From what I understand, it's equivalent to granting someone admin access, to make requests on the behalf of users of Mattermost. This poses a security risk if a Mattermost instance is ever compromised.

My feature request would be to give administrators the option of limiting the API access level, to reduce the attack surface. Some integrations like tracking private merge requests, or other privileged tasks would not be offered to users of that instance.

The level of integration could involve setting access to "read_api" for read-only access, or removing features other than the ability to log in via GitLab and interact with public repositories.

Thanks for your consideration. : )

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is named. Start by tracing the GitLab/Mattermost bridge's current authorization flow and the permissions it requests from GitLab. Define the supported reduced-access modes, including read_api or public-only access, and identify which privileged integrations must be unavailable in each mode.

Written by the indexing model from the issue text.

Assessment

Tech stack
gitlab, javascript
Domain
api, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.