Skip to content

ACL's are definitely broken with Slack backend #394

@rsalmond

Description

@rsalmond

I just noticed that the ACL check bases it's decision on the senders handle field.

The Slack backend sets this value with the name field it gets from the Slack API.

On free Slack account the name field is set to my displayname, but on my work account the name field is set to my actual first name. (Possibly this is something the admins optionally enabled? I will try to find out more during the week.) Some testing with the API testing tool reveals that every user in my org has the name field set to their first name lowercased.

So anyone named "rob" is going to be able to run the bot commands restricted to me. I don't know what else it might break but a naive fix would be to update the backend to use the displayname field. If you think that is okay I will submit a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions