mattermost/mattermost-plugin-gitlab

Support config variable to disable project access check for incoming webhook event

Open

#463 aperta il 17 feb 2024

Vedi su GitHub
 (13 commenti) (0 reazioni) (0 assegnatari)JavaScript (95 fork)auto 404
Good First IssueHelp WantedType/EnhancementUp For Grabs

Metriche repository

Star
 (151 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

At the moment, we ensure a given user has read access to a project when:

  • the user creates a subscription
  • a webhook event comes in to be processed with the subscriptions

There are some issues going on with revoked tokens, causing existing subscriptions to not work in the second case. https://github.com/mattermost/mattermost-plugin-gitlab/issues/411#issuecomment-1927033155

The task here is to implement a plugin config variable "Enable Webhook Project Access Check", which will default to true. When this value is false, we will skip the project access check when we receive a webhook event

Guida contributor