ssh-chat/sshd
mik2k2 621ae1b0d3
Add /allowlist command (#399)
* move loading whitelist+ops from file to auth and save the loaded files fro reloading

* add /whitelist command with lots of open questions

* add test for /whitelist

* gofmt

* use the same auth (the tests don't seem to care, but htis is more right)

* mutex whitelistMode and remove some deferred TODOs

* s/whitelist/allowlist/ (user-facing); move helper functions outside the handler function

* check for ops in Auth.CheckPublicKey and move /allowlist handling to helper functions

* possibly fix the test timeout in HostNameCollision

* Revert "possibly fix the test timeout in HostNameCollision" (didn't work)

This reverts commit 664dbb0976.

* managed to reproduce the timeout after updating, hopefully it's the same one

* remove some unimportant TODOs; add a message when reverify kicks people; add a reverify test

* add client connection with key; add test for /allowlist import AGE

* hopefully make test less racy

* s/whitelist/allowlist/

* fix crash on specifying exactly one more -v flag than the max level

* use a key loader function to move file reading out of auth

* add loader to allowlist test

* minor message changes

* add --whitelist with a warning; update tests for messages

* apparently, we have another prefix

* check names directly on the User objects in TestHostNameCollision

* not allowlisted -> not allowed

* small message change

* update test
2022-01-06 09:09:51 -05:00
..
terminal sshd/terminal/terminal.go: Clamp pos to protect from some fuzzing failures 2021-10-13 10:43:49 -04:00
auth.go main, sshd: Refactor authentication, add IP throttling, improve passphrase auth 2021-05-31 10:08:30 -04:00
client.go Add /allowlist command (#399) 2022-01-06 09:09:51 -05:00
client_test.go main, sshd: Refactor authentication, add IP throttling, improve passphrase auth 2021-05-31 10:08:30 -04:00
doc.go Default port to 2022, updating documentation to match new default. Addresses nice to have in #76. 2015-01-04 22:00:09 -06:00
logger.go sshd: Better comments 2019-02-24 09:40:47 -06:00
net.go sshd: Apply read deadline to connection handler (#331) 2020-01-06 20:09:34 -05:00
net_test.go Add /allowlist command (#399) 2022-01-06 09:09:51 -05:00
pty.go Get the term value 2020-04-12 12:37:55 -04:00
ratelimit.go ratelimiter: Bump up to 16kb/min from 4kb/min 2016-08-06 16:41:19 -04:00
terminal.go sshd, chat/message: Add more debug logging for close failures 2021-04-05 11:06:44 -04:00