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

Load whitelist/admins from a file #19

Closed
shazow opened this issue Dec 13, 2014 · 8 comments
Closed

Load whitelist/admins from a file #19

shazow opened this issue Dec 13, 2014 · 8 comments

Comments

@shazow
Copy link
Owner

shazow commented Dec 13, 2014

Maybe something like...

<fingerprint or pubkey>          # This whitelists the fingerprint
<nick> <fingerprint or pubkey>   # This reserves the nick to fingerprint
admin: <fingerprint or pubkey>   # This marks fingerprint as admin

Then we can have a --whitelist <file> flag, and a --whitelistOnly flag which disallows people to join if not on the whitelist.

/cc @jazzychad

@jazzychad
Copy link
Contributor

i'd like to tackle this in my next PR. was thinking of just starting simple and having one fingerprint per line to allow access to connecting. i think maybe having another sort of config file for mapping fingerprints to nicks or admin/op privileges would solve the other problem. thoughts?

@jazzychad
Copy link
Contributor

Also that way specifying the whitelist file would imply --whitelistOnly and wouldn't need to be another option

@shazow
Copy link
Owner Author

shazow commented Dec 14, 2014

I GUESS! I'd like to support reserving names and marking admins in a similar fashion, but we can add it later.

Also I'd suggest supporting pubkey signatures, similar to ~/.ssh/known_hosts. Easier to fill them from github profiles and whatnot.

@jazzychad
Copy link
Contributor

k, i just got the fingerprints working... can add pubkeys in a future PR?

@shazow
Copy link
Owner Author

shazow commented Dec 14, 2014

pubkeys for future PR is cool. :)

@shazow
Copy link
Owner Author

shazow commented Jan 21, 2015

Done. It accepts authorized_keys-style files now.

@shazow shazow closed this as completed Jan 21, 2015
@Fastidious
Copy link

So, what is the format of the admin file again? Right now, a public key starts:

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDpckxI...

How to make that public key an admin on a file I will pass to ssh-chat using the --admin parameter?

@shazow
Copy link
Owner Author

shazow commented Aug 19, 2016

@Fastidious Added a section here: https://github.com/shazow/ssh-chat/wiki/FAQ#can-i-block-users-from-connecting-how-do-i-assign-admins

Basically it's one pubkey per line, as you wrote it.

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