Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | core.sessionmanager: Add a dummy rawsend() method to resting sessions | Kim Alvefur | 2021-04-15 | 1 | -0/+1 |
| | | | | | | | Should fix a traceback on attempted use after destruction, in case where opportunistic_writes was in use. Thanks Ge0rG | ||||
* | core.statsmanager: Allow special "manual" value for statistics_interval | Kim Alvefur | 2021-04-06 | 1 | -6/+18 |
| | | | | | | | | | | | | | When set, no periodic statistics collection is done by core.statsmanager, instead some module is expected to call collect() when it suits. Obviously only one such module should be enabled. Quoth jonas’ > correct way is to scrape the internal sources on each call to /metrics > in the context of Prometheus "manual" as opposed to "automatic", from the point of view of statsmanager. | ||||
* | core.statsmanager: Cover util.statistics work in processing measurement | Kim Alvefur | 2021-04-06 | 1 | -1/+1 |
| | | | | | | | | | Zash> Btw, this conditional and loop, shouldn't it be covered by the timing measurement? Zash> Isn't that where all the util.statistics work is done? MattJ> Yeah, it should Zash> ("the", but there's two ... which one‽) MattJ> Yeah... not sure :) MattJ> Processing I guess | ||||
* | core.hostmanager: Remove obsolete clearing of srv_hosts | Kim Alvefur | 2021-04-06 | 1 | -1/+0 |
| | | | | Gone with s2sout.lib in 756b8821007a | ||||
* | usermanager: expose set_roles through API | Jonas Schäfer | 2021-03-22 | 1 | -0/+18 |
| | |||||
* | core.s2smanager: Set "direction" on destroyed sessions (fixes #1641) | Kim Alvefur | 2021-03-03 | 1 | -0/+1 |
| | | | | | | | | Should prevent errors in certain places where it logs session.direction captialized using gsub. Might cause bugs tho, but then the session is destroyed so maybe it doesn't matter? | ||||
* | core.portmanager: Log SNI hosts, services looked for | Kim Alvefur | 2021-03-02 | 1 | -0/+1 |
| | | | | To highlight how many these are | ||||
* | core.certmanager: Add comments explaining the 'verifyext' TLS settings | Kim Alvefur | 2021-02-06 | 1 | -1/+4 |
| | | | | | | | Thanks to debacle for reminding me, in the context of mod_auth_ccert I wonder if we still need lsec_ignore_purpose, Let's Encrypt seems to include both client and server purposes in certs. | ||||
* | core.modulemanager: Fix resource location compat with LuaRocks 2.x | Kim Alvefur | 2021-01-16 | 1 | -1/+1 |
| | | | | | The path doesn't include lua version, at least least on Debian, which still has luarocks 2.x | ||||
* | core.modulemanager: Fix error if installer path missing | Kim Alvefur | 2020-10-11 | 1 | -1/+1 |
| | | | | | Happens if run outside prosody. Noticed because because the storage tests fail. | ||||
* | core.moduleapi: Return resource path from module:get_directory() (API BC) | Kim Alvefur | 2020-10-09 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | :get_directory has so far returned the base directory of the current module source code. This has worked well so far to load resources which tend to be included in the same directory, but with the plugin installer using LuaRocks, extra resources (e.g. templates and other assets) these are saved in a completely different directory. In be73df6765b9 core.modulemanager gained some code for finding that directory and saving it in module.resource_path but now the question is how this should be reflected in the API. A survey of community modules suggest the vast majority use the :get_directory method for locating templates and other assets, rather than the code (which would use module:require instead). Therefore this commit changes :get_directory to return the resource_path when available. This should work for most modules. | ||||
* | core.modulemanager: Add compat for LuaRocks 2.x | Kim Alvefur | 2020-10-07 | 1 | -0/+7 |
| | |||||
* | core.moduleapi: Use resource path for :load_resource() | Kim Alvefur | 2020-10-07 | 1 | -1/+1 |
| | |||||
* | core.modulemanager: Locate resources of LuaRocks-installed modules | Kim Alvefur | 2020-10-07 | 1 | -0/+31 |
| | | | | | | | Extra non-code files included with a `copy_directories` directive in a LuaRocks manifest will be copied into a per-module and per-version directory under /lib/luarocks/ and all this is there to dig that out so it can be used in e.g. moduleapi :load_resource(). | ||||
* | core.certmanager: Add TODO about LuaSec issue | Kim Alvefur | 2020-06-07 | 1 | -0/+3 |
| | |||||
* | core.moduleapi: Allow passing a config table trough :measure | Kim Alvefur | 2019-01-04 | 1 | -2/+2 |
| | |||||
* | core.statsmanager: Allow passing a config table trough measure | Kim Alvefur | 2019-01-04 | 1 | -2/+2 |
| | |||||
* | Merge 0.11->trunk | Kim Alvefur | 2020-04-10 | 1 | -6/+8 |
|\ | |||||
| * | core.certmanager: Look for privkey.pem to go with fullchain.pem (fix #1526) | Kim Alvefur | 2020-04-10 | 1 | -6/+8 |
| | | | | | | | | | | | | | | This makes `prosodyctl cert import example.com /path/to/example.com/fullchain.pem` work. This was never intended to, yet users commonly tried this and got problems. | ||||
| * | core.rostermanager: Cache rosters of offline users for faster access (fixes ↵ | Kim Alvefur | 2018-12-16 | 1 | -0/+22 |
| | | | | | | | | | | | | #1233) (grafted from 42a3e3a2824822cef7640ac56d182c59bdd4224e) | ||||
* | | moduleapi: Rename argument to silence luacheck | Kim Alvefur | 2020-04-01 | 1 | -2/+2 |
| | | |||||
* | | moduleapi: Fix handling of replies to :send_iq from internal modules | Kim Alvefur | 2020-03-22 | 1 | -1/+10 |
| | | | | | | | | | | Unclear exactly why, but replies to some queries to local modules would be discarded by stanza_router. This appears to fix it. | ||||
* | | usermanager: Fix traceback when checking admin status of host-only JIDs ↵ | Matthew Wild | 2020-03-19 | 1 | -1/+1 |
| | | | | | | | | (fixes #1508) | ||||
* | | storagemanager, mod_storage_sql: Rename methods to :get_all() and :delete_all() | Matthew Wild | 2020-03-11 | 1 | -4/+4 |
| | | |||||
* | | storagemanager: Add support for :find_key() and :delete_key() to map store shim | Matthew Wild | 2020-03-11 | 1 | -0/+33 |
| | | |||||
* | | usermanager, mod_authz_*: Merge mod_authz_config and mod_authz_internal into ↵ | Matthew Wild | 2020-02-23 | 1 | -1/+1 |
| | | | | | | | | the latter | ||||
* | | stanza_router: only fire pre-stanza if firing other preevents (e.g. for c2s ↵ | Matthew Wild | 2020-02-05 | 1 | -6/+6 |
| | | | | | | | | sessions) | ||||
* | | sessionmanager: Support passing an auth scope to make_authenticated | Matthew Wild | 2020-02-05 | 1 | -1/+2 |
| | | |||||
* | | portmanager: Don't auto-start network services under prosodyctl | Matthew Wild | 2020-02-05 | 1 | -1/+1 |
| | | |||||
* | | usermanager: Add get_roles() function | Matthew Wild | 2020-02-05 | 1 | -1/+7 |
| | | |||||
* | | stanza_router: Add once-per-routed-stanza event, pre-stanza | Matthew Wild | 2020-02-05 | 1 | -1/+8 |
| | | |||||
* | | mod_authz_internal, usermanager: Rename to mod_authz_config | Matthew Wild | 2020-01-27 | 1 | -1/+1 |
| | | |||||
* | | usermanager: Load authz providers on components also | Matthew Wild | 2020-01-27 | 1 | -4/+6 |
| | | |||||
* | | usermanager, mod_authz_internal: Move admin-checking functionality into a ↵ | Matthew Wild | 2020-01-27 | 1 | -30/+32 |
| | | | | | | | | | | | | | | module. Fixes #517 (ish). Note: Removes the ability for mod_auth_* providers to determine user admin status. Such modules will need to have their is_admin methods ported to be a mod_authz_* provider. | ||||
* | | core.moduleapi: Hook correct event type in some cases | Kim Alvefur | 2020-01-16 | 1 | -1/+2 |
| | | | | | | | | | | In rare cases, module.host can be a bare JID, in which case this test did the wrong thing. | ||||
* | | core.moduleapi: Rename local name for util.error for consistency | Kim Alvefur | 2019-12-30 | 1 | -6/+6 |
| | | | | | | | | It's called 'errors' everywhere else except here. | ||||
* | | core.moduleapi: Fix error context in :send_iq API | Kim Alvefur | 2019-12-30 | 1 | -1/+1 |
| | | | | | | | | | | It got passed as argument to reject() instead of the util.error function and was lost. | ||||
* | | core.statsmanager: Ignore unused variable [luacheck] | Kim Alvefur | 2019-12-23 | 1 | -0/+1 |
| | | |||||
* | | core.portmanager: Ignore unused return variable [luacheck] | Kim Alvefur | 2019-12-23 | 1 | -0/+1 |
| | | |||||
* | | core.modulemanager: Silence warning about unused err variable [luacheck] | Kim Alvefur | 2019-12-20 | 1 | -1/+2 |
| | | |||||
* | | core.stanza_router: Silence warning about unused err_message [luacheck] | Kim Alvefur | 2019-12-20 | 1 | -1/+1 |
| | | |||||
* | | core.stanza_router: Extract host part of JIDs directly [luacheck] | Kim Alvefur | 2019-12-20 | 1 | -3/+4 |
| | | | | | | | | Silences warning about unused return values | ||||
* | | rostermanager, mod_presence: Support for subscription preapproval (fixes #686) | Matthew Wild | 2019-12-19 | 1 | -3/+20 |
| | | |||||
* | | core.portmanager: Complete error message for SNI TLS context problems | Kim Alvefur | 2019-11-30 | 1 | -1/+1 |
| | | |||||
* | | core.portmanager: Fix TLS context inheritance for SNI hosts (completes SNI ↵ | Kim Alvefur | 2019-11-29 | 2 | -10/+6 |
| | | | | | | | | support) | ||||
* | | core.portmanager: Don't set the first TLS context with a cert as main context | Kim Alvefur | 2019-11-29 | 1 | -4/+0 |
| | | | | | | | | Don't think this works and it's apparently acceptable to require SNI these days. | ||||
* | | Merge 0.11->trunk | Kim Alvefur | 2019-11-23 | 11 | -63/+348 |
|\ \ | |/ |/| | |||||
| * | s2s: Allow passing a custom error for bouncing queued stanzas (#770) | Kim Alvefur | 2019-11-23 | 1 | -2/+2 |
| | | | | | | | | Since stream errors and stanza errors are different | ||||
| * | core.sessionmanager: Require that client-requested resources pass strict ↵ | Kim Alvefur | 2019-11-02 | 1 | -1/+1 |
| | | | | | | | | resourceprep | ||||
| * | core.configmanager: Handle nameprep validation errors | Kim Alvefur | 2019-11-02 | 1 | -2/+10 |
| | |