Commit Graph

12 Commits

Author SHA1 Message Date
skizzerz
9190a4c859 Rework TLS validation a bit and support SASL EXTERNAL
- Move the config comments to botconfig.py.example where they will be more useful,
  and move the bits in settings.py near the other IRC-related settings.
- Removed support for hash types that aren't SHA-256 as we perform all the hashing on
  our end (doesn't matter what the server does or does not support), and this greatly
  simplifies the code while leaving things secure enough.
- Hardcode a default cipher suite according to mozilla modern standards, as the
  builtin ciphersuite in python may be less secure for older python versions.
- Add support for EXTERNAL auth in SASL, if a client certificate is provided. If this
  fails, it will fall back to PLAIN auth (to account for the case where a cert is added
  to the bot, but has not yet been added to NickServ, so that the bot can connect and add
  it to NickServ via !fsend)
- Redact passwords from console/log output so that asking people to pastebin their
  --verbose output when reporting issues in #lykos is less fraught with peril.
2018-01-10 12:09:10 -07:00
Samuel Hoffman
532386a2b9 Support for TLS certificate verification and client certificates. (#301)
If a TLS certificate fingerprint is provided, the client will check it against the SHA256 hex digest of the server's certificate. Different hash algorithms can be specified, and multiple fingerprints can be specified for networks with more than one server.
2018-01-10 07:58:19 -07:00
skizzerz
957ab9a17a Begin work splitting roles into their own files 2016-08-08 18:42:40 -05:00
Ryan Schmidt
22aa7af5c6 Merge pull request #235 - Schema upgrade by skizzerz
Fix FK deferrable status, ensure that FKs are always enforced in the
bot, and redo how fool wins are stored/tracked. Drop unneded table.
2016-07-27 12:38:23 -04:00
Lane Farrow
a4e21aa997 move irc messages to json and allow overriding in custom file 2015-11-10 19:58:50 -06:00
Vgr E. Barry
c37631e90c Update handling of game modes
This change moves the game modes into their own `src/gamemodes.py`, and
also allows setting game modes via `gamemodes.py`.
2015-09-09 09:57:41 -04:00
Vgr E.Barry
55a14d6a3f Add a proper logging feature. Closes #72. 2015-01-13 19:58:55 -05:00
nyuszika7h
0f17ca6637 Fix .gitignore 2013-11-03 11:37:57 +01:00
nyuszika7h
7ac3189c58 Fix ignoring of vim swap files 2013-09-20 15:48:03 +02:00
nyuszika7h
36d148a0fe Update .gitignore (again) 2013-09-04 14:17:46 +02:00
nyuszika7h
673e74ce05 Update .gitignore 2013-09-04 14:13:17 +02:00
Robert Wall
dd32467b89 Migrating hgignore to gitignore 2013-06-02 13:48:15 -07:00