hubot-archive / hubot-auth

Assign roles to users and restrict command access in other scripts
149 stars 54 forks source link

As an Ops, I want to be able to configure hubot-auth roles in order to be idempotent #31

Closed vspiewak closed 8 years ago

vspiewak commented 8 years ago

I don't see any mechanism to pre-configure some roles automatically (with an environment variable for instance). I can install hubot-auth, setup some roles persisted in Redis Brain using hubot commands.

But, if my redis or hubot crash, I have to setup roles again.

What do you think ?

Best Regards

patcon commented 8 years ago

I'm not opposed :) eager to hear what others have to say though, as I'm not using this script right now

cecilia-sanare commented 8 years ago

I can look into this when I get home.

Does something like this work for you @vspiewak?

# Usage
HUBOT_AUTH_ROLES="(role)=(user_id)"
# Example
HUBOT_AUTH_ROLES="admin=U12345678 mod=U87654321,U67856745"
vspiewak commented 8 years ago

This cool be great 👍 Using immutable infrastructure intensively, I noticed this problem on any hubot-script requiring some initial chat as setup. It include for instance hubot-standup-alarm

Maybe we should look at events ?