litaio / lita

ChatOps for Ruby.
https://www.lita.io
MIT License
1.68k stars 179 forks source link

Allow to restrict authorization at the plugin level. #208

Open rnaud opened 7 years ago

rnaud commented 7 years ago

I am adding lita as a bot to our whole org but I want to be able to restrict access to some critical plugins (github or CodeDeploy integrations) to the engineers.

Currently I believe I need to fork these gems to restrict the routes to the right Lita group. Or is there a way to do this at a global level that I missed.

If this does not exist I'll take a jab at a PR for this.

rnaud commented 7 years ago

Hmmm, turns out route class methods are being called before the config for the handler is initialized, making it pretty hard currently to extend this. Ideas welcome 👍

rnaud commented 7 years ago

Took a pass at it but not very happy with it: #209