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

User removed even though all requirements were addressed #60

Open
epoberezkin opened this issue Jul 27, 2016 · 4 comments
Open

User removed even though all requirements were addressed #60

epoberezkin opened this issue Jul 27, 2016 · 4 comments

Comments

@epoberezkin
Copy link

The comment was added:

Removing @... from organisation. These were the outstanding requirements:
@rtyley
Copy link
Member

rtyley commented Jul 27, 2016

Hmm, must be something going wrong in https://github.com/guardian/gu-who/blob/666997a77e/app/lib/OrgUserProblems.scala#L80-L94 . Do you run gu-who frequently or manually every once in a while? There might be a bit of a race condition that gets exposed if gu-who runs are far apart.

Possibly we don't see this issue at the Guardian because we're running gu-who on an organisation webhook, so it gets run pretty frequently.

@epoberezkin
Copy link
Author

There was a big gap indeed, we were trying to get access to some bot account that would be removed otherwise (and it was, correctly).
We plan to start running it regularly as cron job. Hook seems insecure to be honest - the token with owner privileges will be visible to all org members. Or am I missing something?

@rtyley
Copy link
Member

rtyley commented Jul 27, 2016

There was a big gap indeed, we were trying to get access to some bot account that would be removed otherwise (and it was, correctly).

If you add the bot to a team called bots the 2FA requirement will be waived, but the other two won't - I guess the full-name requirement could have got you there.

Hook seems insecure to be honest - the token with owner privileges will be visible to all org members.

The GitHub docs aren't very clear on this, but I believe it's just org owners who have access to the Settings tab that org webhooks fall under - I tried viewing the webhook with a colleague's account and they were unable to see those settings.

@epoberezkin
Copy link
Author

Yes, the full name
You're right about the hook, I thought it would be visible to all members. Easier than cron job indeed

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

2 participants