keptn-sandbox / slackbot-service

Slackbot to trigger evaluations of quality gates and receive results in Slack
Apache License 2.0
4 stars 2 forks source link

Update Permissions / Scopes #14

Open ghost opened 3 years ago

ghost commented 3 years ago

Please specify which permissions are required for this bot.

I'm trying to install this service but don't know what permissions to grant the bot. The legacy option has now gone:

image

jetzlstorfer commented 3 years ago

@zohaib85 can you help out here?

zohaib85 commented 3 years ago

Hey @Dynatrace-Adam-Gardner you can use slack "custom integration" to add a bot user. I still able to see legacy bot user in legacy slack app. Slack is deprecating RTM service soon and permission scope will work with new APIs.

Here is how to add a bot user using custom integration and in future we will update service to use Slack latest API with granular permissions options:

Work around: 1) open https://.slack.com/apps/manage/custom-integrations 2) click on Bots 3) click on add to slack 4) retrieve API token and add to keptn bot

Hope this helps. Let me know if you need further assistance.

ghost commented 3 years ago

I don't have the Bots option: image

zohaib85 commented 3 years ago

Slack is making changing in their platform quite a lot these days. Since Slack RTM is deprecated and this Bot is developed using RTM. I will try to take a look to see what can be done. image