Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrating hubot to a bot account breaks it partially #86

Open
camaer opened this issue Jan 13, 2020 · 3 comments
Open

Migrating hubot to a bot account breaks it partially #86

camaer opened this issue Jan 13, 2020 · 3 comments

Comments

@camaer
Copy link

camaer commented Jan 13, 2020

With the new bot account from Mattermost, I converted my existing hubot user to a fully fledged bot account. Doing so partially broke it.

Writing directly to the bot in a private message works perfectly but the issue is when posting in other channels. The bot has the 'System Admin' permission but is no longer monitoring the other channel and since it's a bot account it cannot be added as member since by default he's already a member of all the channels as sys admin.

A direct message to the bot to trigger a message in another room result in a 'permission denied'

Here's an exemple:

In a direct message:

hubot announce 'maintenance starting now' in tests channel

Result in the following line in the log:

{"level":"error","ts":1578947833.2254527,"caller":"mlog/log.go:174","msg":"You do not have the appropriate permissions","path":"/api/v4/posts","request_id":"ksc5t5wbjbr4tjnb15mqaj9h7e","ip_addr":"192.168.10.170","user_id":"dq3ryuzuk3dmijt6o7dhzuccne","method":"POST","err_where":"Permissions","http_code":403,"err_details":"userId=dq3ryuzuk3dmijt6o7dhzuccne, permission=create_post"}
@jk2K
Copy link

jk2K commented Jul 1, 2020

image

you can check permissions for the account

@camaer
Copy link
Author

camaer commented Jul 1, 2020

Both permissions are enabled already

@gbonnefille
Copy link
Contributor

In our context, after similar migration (user -> bot account) we noticed a strange behavior.

One of our action is based on two reply. The first one appears, but not the second one (only logged in console).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants