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

"Disable Collaboration" can lock out the admin if the admin is not in the organization #2863

Open
epiepo opened this issue Feb 8, 2017 · 1 comment

Comments

@epiepo
Copy link

epiepo commented Feb 8, 2017

After selecting "Disallow Collaboration" via the Organizational Settings in the Admin Panel, all admin-account logins via GitHub don't work. The user is admin user logged out and any new login via GitHub redirects to the Sign-In page of Sandstorm.

This doesn't happen for non-admin users. The only way to work around this issue is to choose a user account, issue a new admin-token, promote this user to Admin and disable the "Disallow Collaboration" setting.

Fully reproducible.

@kentonv
Copy link
Member

kentonv commented Feb 8, 2017

Hi @epiepo,

This is because "disallow collaboration" prohibits people outside the organization from logging in at all. Currently, there's no way to declare Github accounts as being part of your organization, so Github is always disabled by this. We should probably add some sort of warning when enabling this will totally disable some login mechanisms.

If you find you're now locked out of your server, you can regain access by SSHing in and typing:

sudo sandstorm admin-token

Visit the link it gives you, and you'll be able to undo the setting, or promote some other account inside the organization to admin.

@kentonv kentonv changed the title "Disable Collaboration" Blocks Admin Logins Via GitHub "Disable Collaboration" can log out the admin if the admin is not in the organization Feb 8, 2017
@kentonv kentonv changed the title "Disable Collaboration" can log out the admin if the admin is not in the organization "Disable Collaboration" can lock out the admin if the admin is not in the organization Feb 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants