Commit Graph

  • 14215e1837
    Fix two memory leaks in RPC: * on REHASH rpc-user block name was not freed * temporary construct was not freed (if params was missing) Bram Matthys 2022-06-22 14:54:51 +0200
  • fdf0d545d7
    Split rpc_client_handshake() into rpc_client_handshake_unix_socket() and rpc_client_handshake_web(). Bram Matthys 2022-06-22 13:53:15 +0200
  • 25d5ae93e6
    Do some sanity checking in webserver (fixes crash) Bram Matthys 2022-06-22 13:45:54 +0200
  • faffe7c9a8
    Fix crash in webserver Bram Matthys 2022-06-21 17:56:25 +0200
  • 7c8918e22d
    Update rpc_error() to use JsonRpcError (enum) and add more error values. Bram Matthys 2022-06-20 19:02:28 +0200
  • b38b0f5086
    Set loop.config_state to one of CONFIG_STATE_* so modules (and core) can track at what step we are during configuration file and module processing. Bram Matthys 2022-06-20 10:05:19 +0200
  • 0a4c6e877d
    Fix crash if 'websocket' is loaded without 'websocket_common'. Previously we did show a warning but we could crash a millisecond later so that wasn't particularly helpful. Now, is_module_loaded() can be used from HOOKTYPE_CONFIGPOSTTEST to detect if a module is loaded or not, contrary to us having to do it in MOD_LOAD when it is too late. So now the requirement is really enforced and also works for hot-loading as well as unloading of required modules is now prevented. Bram Matthys 2022-06-20 08:50:18 +0200
  • a14609f493
    Fix small memory leak in webserver. Bram Matthys 2022-06-20 08:25:46 +0200
  • 26ab79132b
    Fix memory leak in webserver for HTTPS POST. Bram Matthys 2022-06-19 20:47:48 +0200
  • bbf9600504
    Mention JSON-RPC documentation in early release notes. https://www.unrealircd.org/docs/JSON-RPC [skip ci] Bram Matthys 2022-06-19 20:28:51 +0200
  • 1fe6119026
    Make tld::motd and tld::rules optional. Suggested by Jellis in https://bugs.unrealircd.org/view.php?id=6072 Bram Matthys 2022-06-19 20:15:00 +0200
  • 55387a8aa4
    RPC: Fix strchr() on non-nul-terminated string (leading to OOB read) Bram Matthys 2022-06-19 17:58:28 +0200
  • 85784e8118
    Bump version to 6.0.5-git Bram Matthys 2022-06-19 16:27:41 +0200
  • 8b2caf5501
    Make listen::options::rpc implicitly enable TLS, so nobody accidentally allows JSON-RPC over insecure HTTP. Bram Matthys 2022-06-19 15:46:15 +0200
  • 5301ab5be8 Add some TODO items Bram Matthys 2022-06-19 14:43:58 +0200
  • 941439a710 Use RPC_CALL_FUNC() just like how we have CMD_FUNC() Bram Matthys 2022-06-19 10:34:20 +0200
  • c24a8e43e3 Fix outdated doxygen information on CMD_FUNC() Bram Matthys 2022-06-19 10:34:08 +0200
  • f99085fc03 RPC: add user.get() Bram Matthys 2022-06-19 10:27:16 +0200
  • 0e60b8bbfb RPC: Add ?username=xyz&password=zzz authentication as well FIXME: move URI parsing to 'webserver' and deal with unescaping %xx Bram Matthys 2022-06-10 09:55:24 +0200
  • c611f18d56 RPC: Add rpc-user { } block and do authentication Bram Matthys 2022-06-10 09:32:36 +0200
  • ab999659fc Remove some FIXME's and cleanup code a little bit. Bram Matthys 2022-06-09 18:45:58 +0200
  • feb2c9c418 Don't print "Link to server [..] closed" for RPC and control sockets. Bram Matthys 2022-06-09 18:41:23 +0200
  • e718d2021f Make websocket work over RPC Bram Matthys 2022-06-09 18:36:17 +0200
  • 853f0685ed Split off big chunk of websocket module into websocket_common module. And load the websocket_common module by default (which is just an API). Bram Matthys 2022-06-09 17:50:23 +0200
  • 7679ec7920 Get rid of cast, do things properly. Bram Matthys 2022-06-09 16:41:07 +0200
  • 0eb42155dd Limit request body to 4k by default. Bram Matthys 2022-06-09 16:38:46 +0200
  • 3e35b8e96a Small code cleanup Bram Matthys 2022-06-08 20:03:21 +0200
  • 467e3d847a Handle chunked encoding in webserver (mostly meant for RPC). Bram Matthys 2022-06-08 19:58:12 +0200
  • 4a68008b81 Rename some more: * WEB() now has handle_request() and handle_body(), makes more sense. * webserver_handle_body_data() -> webserver_handle_body() * and similar cases Bram Matthys 2022-06-08 17:58:08 +0200
  • 12f2cd8555 Rename webserver_handle_body_data() -> webserver_handle_request_body() Bram Matthys 2022-06-08 17:52:36 +0200
  • 9afdcb7ff0 Add request body handler in webserver -- only a beginning, the chunked encoding stuff is copied from the modulemanager and #if'd out. The non-chunked is not OK yet either, as it must check the Content-Length, while we currently assume a single packet == the complete request. Bram Matthys 2022-06-08 17:50:53 +0200
  • cf60b22b31 Close RPC web connection immediately when all has been sent. Bram Matthys 2022-06-08 16:43:22 +0200
  • f9794c7ed5 Make RPC API work over HTTP(S). Well, first steps, anyway. * No ACL checking yet * No chunked encoding support * No multi-frame support etc... Bram Matthys 2022-06-08 16:34:30 +0200
  • b710fb188b Add get_nvplist() function. Requested by westor in https://bugs.unrealircd.org/view.php?id=6125 Bram Matthys 2022-06-08 16:13:30 +0200
  • 5e81a6ee67 Add listener->start_handshake function pointer. This is start_of_normal_client_handshake() by default, but is start_of_control_client_handshake() for the control channel (for './unrealircd rehash' and such). Previously that was hardcoded. Bram Matthys 2022-06-08 15:59:35 +0200
  • 2bf41a47d2 Don't check for connect-flood on RPC connections. Bram Matthys 2022-06-08 13:58:54 +0200
  • 46588db89a Fix rehash crash since adding RPC code. Bram Matthys 2022-06-08 13:08:50 +0200
  • 2c8fc5e641 Move special handling of control socket to procio_server.c. Things like setting the client->status to CLIENT_STATUS_CONTROL and list_add(&client->lclient_node, &control_list); Bram Matthys 2022-06-08 12:48:46 +0200
  • df8c5cfd76 Add ability to skip connect-flood and zlined checks via listener->options with LISTENER_NO_CHECK_CONNECT_FLOOD and LISTENER_NO_CHECK_ZLINED. Bram Matthys 2022-06-08 12:29:41 +0200
  • 29eb89a528 Attach client->local->listener to a client very early, now that it is safe. This makes other code safer as well since they can assume that if the client is local (client->local) that the listener (client->local->listener) is non-NULL and safe to access until the client is completely destroyed. Bram Matthys 2022-06-08 12:26:35 +0200
  • 1d613a592c Remove freeing of client->local->listener and refdec from exit_client() to free_client(). Bram Matthys 2022-06-08 12:25:22 +0200
  • 60c83b4ba1 Move connect-flood and max-unknown-connections-per-ip into their own module. These deal with set::anti-flood::everyone::connect-flood and set::max-unknown-connections-per-ip respectively. Bram Matthys 2022-06-08 12:04:05 +0200
  • a09d4a7e88 Add CLIENT_STATUS_RPC and add SetRPC() and IsRPC(). Bram Matthys 2022-06-08 10:54:25 +0200
  • 6b30482c04 Don't apply registration timeout to *NIX domain socket connections. May want to reconsider this but.. for now.. Bram Matthys 2022-06-08 09:03:59 +0200
  • 1830f3e53f Add RPC channel.list call to show list of channels (with all details) Bram Matthys 2022-06-06 17:26:18 +0200
  • 61ba3727df JSON-RPC: Use proper error response with error codes according to the official specification (one of JSON_RPC_ERROR_*). Bram Matthys 2022-06-06 17:18:22 +0200
  • 4cd520d327 Make user.list() RPC API return a list of all users with details. This is the 1st RPC API call that actually works :D Bram Matthys 2022-06-06 16:47:09 +0200
  • 31fc2843a2 Add "rpc" module. Supports parsing from *NIX domain sockets for starters. Bram Matthys 2022-06-06 12:08:43 +0200
  • 53732e0f78 Warn if 'websocket' module is loaded without 'webserver' (= won't work). Bram Matthys 2022-06-06 12:08:05 +0200
  • b9d1af8fa0 Call config run hooks for CONFIG_LISTEN and CONFIG_LISTEN_OPTIONS also for unix domain sockets. Bram Matthys 2022-06-06 11:51:07 +0200
  • 0134c435d5 Don't apply handshake-delay to any *NIX domain socket connections, instead of only exempting *NIX domain socket control channels. Bram Matthys 2022-06-06 10:36:25 +0200
  • cbfcfa1428 Create src/modules/rpc directory Bram Matthys 2022-06-06 09:18:05 +0200
  • 97c8274695 Add RPC API (the beginning..) Bram Matthys 2022-06-06 08:41:20 +0200
  • 2397fb8a49 Split 'websocket' module up in 'webserver' and 'websocket' Bram Matthys 2022-06-06 07:51:05 +0200
  • 5615ef0449
    Merge branch 'unrealircd:unreal60_dev' into piss60 angryce 2022-06-18 17:54:48 +0200
  • 0c32151be1
    Sort modes returned by "MODE #channel" (request) Bram Matthys 2022-06-18 15:08:45 +0200
  • 4b72f375f8
    Update help.conf to include ~security-group extban (#220) alice 2022-06-17 16:06:01 +0100
  • 3a354c3410
    Fix some typos in markdown of release notes. [skip ci] Bram Matthys 2022-06-17 13:59:27 +0200
  • 88190d08c4
    ** UnrealIRCd 6.0.4 ** Bram Matthys 2022-06-17 13:29:42 +0200
  • 7fb747dcbf
    Merge branch 'unrealircd:unreal60_dev' into piss60 angryce 2022-06-08 18:24:08 +0200
  • 8ea7fcfc9f
    Fix tld::mask not working with the new form. Reported by musk. Bram Matthys 2022-06-08 08:22:14 +0200
  • b5f35dfff5
    Fix regular users being able to -o a service bot (that has umode +S). Reported by ComputerTech in https://bugs.unrealircd.org/view.php?id=6126 Bram Matthys 2022-06-08 07:35:27 +0200
  • 8fe7b1bc41
    Fix wrong security-group example in release notes for auto oper up. This should be: security-group Syzop { certfp "1234etc."; } As this is wrong: security-group Syzop { mask { certfp "1234etc."; } } Bram Matthys 2022-06-05 08:42:05 +0200
  • 28d3875aa9
    Make variables in set::reject-message and other buildvarstring() usage no longer expand shorter versions of a variable. It previously had some unintended form of magic autocomplete where $serv was handled the same way as if it was $server. This could cause issues in the long run when variables are added and the meaning of the short form changes. Bram Matthys 2022-06-05 08:15:00 +0200
  • f91da796c2
    Merge branch 'unrealircd:unreal60_dev' into piss60 angryce 2022-06-04 08:16:27 +0200
  • 020c3d1fa3
    ** UnrealIRCd 6.0.4-rc2 ** Bram Matthys 2022-06-03 18:48:52 +0200
  • 1311c8a963
    Fix connthrottle message when throttling (bug introduced in 6.0.4-rc1). Reported by westor in https://bugs.unrealircd.org/view.php?id=6121 Bram Matthys 2022-06-01 08:49:35 +0200
  • d5989695e8
    Remove last global 'buf' variables. This was already done a lot in time but it seems there were still a couple left. These are now gone as well. There seem to be no issues with the ones that were left, but it is just too easy to get it wrong. Declaring buf in function now. This should be faster anyway, since it is located on nearby memory (stack). Bram Matthys 2022-06-01 08:32:07 +0200
  • d3f655cb63
    Fix space stripping at end of connect and disconnect message, in the "extended_client_info". Was a typo, 'buf' vs 'retbuf'. Reported by westor in https://github.com/unrealircd/unrealircd/pull/217 Bram Matthys 2022-06-01 08:18:55 +0200
  • cfde4f1efa
    Merge branch 'unrealircd:unreal60_dev' into piss60 angryce 2022-06-01 00:54:13 +0200
  • 731adb308d
    set::restrict-commands: better error message if you use the same command twice (or more) Bram Matthys 2022-05-30 13:05:04 +0200
  • 6ef1a6a708
    Update set::antirandom example in modules.optional.conf. Use the new options in the new ::except block, fix broken English and trim down the text a bit. This also lowers the threshold from 7 to 6. It was already 5 in the example block on the wiki, now the wiki and this are the same again. Bram Matthys 2022-05-30 12:56:22 +0200
  • b4f6c83821
    Fix multiline log messages not working, they showed up as single lines with their content added together. Bram Matthys 2022-05-30 08:59:44 +0200
  • 2f22d2d1a7
    Merge branch 'unrealircd:unreal60_dev' into piss60 angryce 2022-05-29 20:56:44 +0200
  • c8ef9b2740
    Fix set::restrict-commands::except not working. Reported by Rain. Bram Matthys 2022-05-29 15:13:12 +0200
  • cb9ffd9e17
    Update example.fr.conf (#216) musk 2022-05-29 14:27:29 +0200
  • dc5a7326cd
    Update example.es.conf (#215) musk 2022-05-29 08:23:34 +0200
  • b183a3ea7a
    Add -Wno-format-overflow as unfortunately this option is too dumb. Eg it warns on sprintf() usage even if there is a strlen() check right above it. Bram Matthys 2022-05-28 18:12:24 +0200
  • 965bfa441b
    Crash reporter: use fclose() and not pclose() since this particular file descriptor was opened by fopen() and not popen(). Fixes compile warning on Ubuntu 22.04 / GCC 11. [skip ci] Bram Matthys 2022-05-28 17:59:11 +0200
  • 2f31a8800b
    Add missing blacklist { } blocks to example.fr.conf copy-paste from the English one, pending translation by... someone. [skip ci] Bram Matthys 2022-05-28 08:05:55 +0200
  • 0495953f55
    Update example.tr.conf with 6.0.4 example.conf. Note that set::conthrottle::except needs a new translation, and CHANNEL HISTORY needs translation too. [skip ci] Bram Matthys 2022-05-28 08:00:54 +0200
  • 54a2645f21
    Update example.fr.conf with 6.0.4 example.conf. Note that various parts are now in English, pending translation to French. [skip ci] Bram Matthys 2022-05-28 07:58:47 +0200
  • a18316a737
    Update example.es.conf with 6.0.4 example.conf. Note that set::conthrottle::except needs a new translation, and CHANNEL HISTORY needs translation too. Bram Matthys 2022-05-28 07:54:43 +0200
  • 25e7142716
    Re-indent this monster (example.es.conf) [skip ci] Bram Matthys 2022-05-28 07:47:43 +0200
  • bd7b90354d
    Remove .asc file after ./unrealircd upgrade (#212) ZarTek @ CREOLE 2022-05-27 16:35:10 +0200
  • 9c8cd52057
    Add the oper auto-login example to release notes [skip ci] Bram Matthys 2022-05-26 21:15:56 +0200
  • d47fdbede4
    Add oper::auto-login. When set to yes, opers are automatically logged in if the oper block permits, the user does not have to send "OPER xyz". Bram Matthys 2022-05-26 20:57:03 +0200
  • c183c06d06
    Move HOOKTYPE_LOCAL_CONNECT slightly further down. [skip ci] Bram Matthys 2022-05-26 20:56:36 +0200
  • 96897289e0
    Allow oper block without password, now that you can use security-group and other selectors in 'mask'. This allows for things like: Bram Matthys 2022-05-26 19:41:26 +0200
  • a4902e121c
    Fix crash when using 'account' in 'except ban'. Bram Matthys 2022-05-26 17:31:45 +0200
  • 960c3cc1c1
    And a similar fix for multi account, eg security-group xyz { account { a; b; c; } } Bram Matthys 2022-05-26 17:21:30 +0200
  • fba0249ec3
    Fix for when using security-group xyz { security-group { a; b; c; } } Bram Matthys 2022-05-26 17:11:47 +0200
  • c9f8c42281
    Fix CIDR not working in match { ip ....; } Bram Matthys 2022-05-26 17:03:17 +0200
  • 6802156c02
    Document channel history in example.conf as persistent history is likely something people would want to enable, and perhaps the limits tweaked too. Suggested by ZarTek-Creole in https://github.com/unrealircd/unrealircd/pull/211 Bram Matthys 2022-05-26 08:25:34 +0200
  • 82063a48ec
    Use single quotes in set::webredir::url example. Suggested by ZarTek-Creole in https://github.com/unrealircd/unrealircd/pull/208 Bram Matthys 2022-05-26 07:36:11 +0200
  • fe11f77be6
    Fix +H not working in set::modes-on-join. Reported by ZarTek-Creole in https://bugs.unrealircd.org/view.php?id=6114 Bram Matthys 2022-05-26 07:14:12 +0200
  • 1548137e31
    Document SVSO being back again :) Bram Matthys 2022-05-25 20:29:09 +0200
  • a7b3f61e13
    Merge branch 'unrealircd:unreal60_dev' into piss60 angryce 2022-05-25 19:13:18 +0200
  • d1311a124b
    Make ./Config import settings from 6.0.3 Bram Matthys 2022-05-25 18:27:10 +0200
  • 3936059768
    ** UnrealIRCd 6.0.4-rc1 ** Bram Matthys 2022-05-25 17:14:32 +0200