electron / sheriff

Controls and monitors organization permissions across GitHub, Slack and GSuite. Built with ❤️ by The Electron Team
MIT License
140 stars 20 forks source link

Use the permissions config to immediately undo unexpected permissions changes #28

Closed MarshallOfSound closed 1 year ago

MarshallOfSound commented 1 year ago

Currently Sheriff has a weird split between "webhook" and "permissions enforcement".

The enforcement script runs every ~5-10 minutes but we get notified of permission changes in realtime. We should in the webhook handler check if the change is expected and if not revert it.

We could do this a few ways:

This means that the lifetime of a malicious / incorrect permission assignment drops from a max of 5-10 minutes to a few seconds (the duration of the webhook)