aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
Commit message (Collapse)AuthorAgeFilesLines
...
* | mod_admin_shell: List net providers in module:infoKim Alvefur2021-11-231-0/+1
| |
* | mod_http_openmetrics: Imported from prosody-modules mod_prometheus @df2246b15075Matthew Wild2021-11-241-0/+62
| | | | | | | | | | | | | | | | | | This version has several changes from the earlier mod_prometheus: - Conversion of metrics into the text-based OpenMetrics format is moved to util.openmetrics - Support for IP-based access control - Compatibility with earlier Prosody versions removed
* | mod_csi_simple: Skip initiating flush in all but inactive stateKim Alvefur2021-11-201-1/+1
| | | | | | | | | | | | Both in the flushing and active states the right thing to do is skip directly to returning the data. Also in any unknown state, like if the filter is somehow left behind on module unload.
* | mod_csi_simple: Early return on client activity while flushing bufferKim Alvefur2021-11-201-1/+1
| | | | | | | | | | Cuts down on log and measurement noise. We only want to do these things here when initiating a flush.
* | mod_csi_simple: Allow some straggler traffic after flushing bufferKim Alvefur2021-11-201-3/+20
| | | | | | | | | | | | | | | | | | | | Statistics from my server shows a high rate of very short buffer hold times, most of which are the result of replies to pings or other iq traffic, or mod_smacks acks and ack requests just after a flush was completed. This grace period should eliminate noise and quick flipping between flushing and inactive mode.
* | mod_csi_simple: Skip flushing of empty bufferKim Alvefur2021-11-181-0/+2
| | | | | | | | Just adds noise
* | mod_csi_simple: Fire event when flushing due to client activityKim Alvefur2021-11-181-0/+2
| | | | | | | | So that the same things happen as when triggered by an outgoing stanza
* | mod_admin_shell: Return counts of shown vs total from new table viewsKim Alvefur2021-11-161-4/+17
| | | | | | | | Not exactly the way it was before, but close enough and useful.
* | mod_csi_simple: Detach cleanly from sessions if unloaded while flushingKim Alvefur2021-11-161-1/+1
| | | | | | | | | | | | Since it changes the state to "flushing" while doing just that. Attempting to remove the filters from a session that does not have them should be a safe noop.
* | MUC: Actually set the new affiliation data if it was previously emptyMatthew Wild2021-11-161-0/+1
| |
* | mod_csi_simple: Only act in inactive mode to prevent infinite recursionKim Alvefur2021-11-161-0/+4
| | | | | | | | | | Definitely should not be firing an event that triggers like csi-flushing from which it may make sense to send things, which leads right back here
* | mod_csi_simple: Unlock writes after event, to allow things to be queuedKim Alvefur2021-11-161-1/+1
| | | | | | | | | | | | E.g. mod_smacks could queue an <r>, which would be more likely to be included in the same write and TCP segment as the previously buffered data, reducing syscalls and network packets needing to be sent.
* | MUC: Include old affiliation data in affiliation change eventMatthew Wild2021-11-161-0/+1
| |
* | MUC: Add room:set_affiliation_data()Matthew Wild2021-11-161-0/+22
| |
* | MUC: Set .previous_affiliation = "none" if nil, for consistency with ↵Matthew Wild2021-11-161-1/+1
| | | | | | | | | | | | .affiliation It appears nothing currently uses this field in prosody or prosody-modules
* | MUC: Fix incorrect variable name (thanks luacheck)Matthew Wild2021-11-161-1/+1
| |
* | MUC: Switch to event.allowed signaling to block event, matching muc-pre-set-roleMatthew Wild2021-11-161-1/+3
| | | | | | | | ...and fixing the logic bug that broke everything in the previous commit.
* | MUC: Add 'muc-pre-set-affiliation' event, allowing to block change or modify ↵Matthew Wild2021-11-161-10/+20
| | | | | | | | data
* | MUC: Add option to include form in registration queryMatthew Wild2021-11-151-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was originally not done based on my interpretation of XEP-0045. Today's reading, however, revealed that it actually says the result > SHOULD contain **at least** a <username/> element (emphasis mine) I take this to mean that including a form **is** allowed (and I think this is sensible). Tigase already includes the form I believe. I've gated the new behaviour behind a (default off) option, because it hasn't been tested for compatibility with clients. My primary desire for it is in Snikket, where the clients will be tested to ensure compatibility with this. I don't anticipate that (m)any clients would break, so maybe after 0.12 we can experiment with enabling it by default and eventually remove the option.
* | mod_admin_shell: Handle absence of connection in security column (thanks ↵Kim Alvefur2021-11-151-1/+1
| | | | | | | | | | | | arcseconds) I surmise this can happen in a disconnected/smacks hibernation state.
* | mod_pubsub: Fix traceback in disco of non-existent node (thanks Martin)Kim Alvefur2021-11-131-2/+6
| | | | | | | | | | | | | | In this case `ret` is a table not containing the node, which makes pubsub_error_reply() try to get an error template with that `ret` table as index, which returns a `nil` then passed to table.unpack, which in turn throws the error.
* | mod_c2s: Disconnect user sessions on a role change eventMatthew Wild2021-11-121-18/+16
| | | | | | | | | | The overlapping logic for deletion and password changed has been merged into a single function.
* | util.human.io: Pass nil to cell mapper to signal missing valueKim Alvefur2021-11-121-15/+13
| | | | | | | | | | Seems more like conventional Lua than passing an empty string to signal lack of value.
* | mod_admin_shell: Respect metatables in output serializationKim Alvefur2021-11-121-1/+7
| | | | | | | | | | Makes it so that returning e.g. util.cache :table() produces useful output, which otherwise would look like empty tables.
* | mod_admin_shell: Specify a width for cert columnKim Alvefur2021-11-101-0/+1
| | | | | | | | Avoids ellipsis
* | mod_admin_shell: Indicate bi-directional s2s connectionsKim Alvefur2021-11-101-1/+2
| |
* | mod_admin_shell: Allow passing columns as a string for convenienceKim Alvefur2021-11-101-0/+1
| |
* | mod_admin_shell: Optionally group session listings by host when not included ↵Kim Alvefur2021-11-101-3/+33
| | | | | | | | | | | | as column Similar to the earlier view
* | mod_admin_shell: New table based implementation of c2s and s2s:show()Kim Alvefur2021-11-101-198/+245
| | | | | | | | | | | | Nicer and more readable. Thanks jonas’ and prosody@ for JID length stats to inform column widths.
* | mod_pubsub: Return proper errors for disco queries on nodesKim Alvefur2021-11-011-2/+4
| | | | | | | | | | Previously this would return item-not-found, even when you could see the node in disco#items.
* | mod_muc_mam: Use util.dataforms timestamp validationKim Alvefur2021-10-261-14/+5
| |
* | mod_mam: Use util.dataforms timestamp validationKim Alvefur2021-10-261-14/+5
| |
* | mod_http_file_share: Move number coercion into util.dataformsKim Alvefur2021-10-251-2/+2
| |
* | mod_admin_adhoc: Move number coercion into util.dataformsKim Alvefur2021-10-251-8/+8
| | | | | | | | | | Internal use of XEP-0122 to shift the responsibility for converting numbers to strings.
* | mod_c2s,etc: Identify stanza object with appropriate functionKim Alvefur2021-10-244-9/+9
| | | | | | | | | | Better than duck typing, in case anyone ever passes a non-stanza table with a 'name' field.
* | mod_s2s: Fix logging of <stream:error> consistency with other modsKim Alvefur2021-10-241-1/+1
| | | | | | | | | | | | | | `reason` was often a table, so the log said "table: 0xptr" or such. mod_c2s, mod_bosh etc logs the stream error stanza object, so better do the same. It would be nicer if this was an util.error object, but that will have to be a future change.
* | mod_http_file_share: Silence luacheck warningKim Alvefur2021-10-231-1/+1
| |
* | mod_http_file_share: Clean up incomplete uploadsKim Alvefur2021-10-231-0/+7
| | | | | | | | | | | | | | If the request fails in the middle then the file~ could be left behind because no code was invoked to delete it then. This gets rid of it when the request is removed. It may still be left in case of an unclean shutdown.
* | mod_s2s: Don't pass unknown hostnames as stats labelKim Alvefur2021-10-211-0/+1
| | | | | | | | | | Labels are supposed to be fixed sets of things, so defined hosts are okay, but not unknown hosts.
* | mod_http_file_share: Allow 'Authorization' header via CORS (thanks kawaii)Kim Alvefur2021-10-201-0/+3
| | | | | | | | | | | | Can't find anything saying anything on whether this is needed or not. kawaii reported that both Chrome and Firefox complained unless the header was added to the list of allowed headers.
* | mod_pubsub,mod_pep: Advertise maximum number of items via XEP-0122Kim Alvefur2021-10-202-0/+14
| | | | | | | | | | | | Clients would generally be using the "max" symbol instead of discovering this, but this also gets us validation and earlier rejection of out of bounds values.
* | mod_pubsub: Prevent max_items from being set to zeroKim Alvefur2021-10-201-0/+1
| | | | | | | | | | | | | | Disable persistence instead if no items should be persisted. XEP-0060 is not entirely clear on what either of those option really mean.
* | mod_pubsub,mod_pep: Implement 'send_last_published_item' option #1436Kim Alvefur2021-10-192-0/+19
| | | | | | | | | | | | | | | | Default left as 'never' in mod_pubsub to preserve the previous behavior. Unclear if this is desirable, but can always be changed later. In mod_pep this allows turning off the automatic resending of most recent item.
* | mod_http_file_share: return 401 instead of 403 if authentication failedJonas Schäfer2021-10-191-1/+1
| | | | | | | | | | | | | | This is as per the HTTP standards [1]. Thankfully, the REQUIRED www-authenticate header is already generated by the code. [1]: https://datatracker.ietf.org/doc/html/rfc7235#section-3.1
* | mod_auth_cyrus: Remove (move to community modules)Kim Alvefur2021-10-171-85/+0
| | | | | | | | mod_auth_ldap provides LDAP support without being tied to Cyrus
* | mod_admin_shell: Show HTTP base-URLs in module:info()Kim Alvefur2021-10-131-1/+2
| | | | | | | | | | Because it's nice, not having to find it in http:list(), which could have a lot of items.
* | mod_mimicking: Correctly hook the *global* user-deleted eventKim Alvefur2021-10-121-1/+2
| |
* | mod_storage_xep0227: Add scram-credentials to user element rather than serverMatthew Wild2021-09-221-1/+1
| |
* | mod_auth_ldap: Import from prosody-modules rev f52452911187Kim Alvefur2021-10-051-0/+154
| |
* | mod_carbons: Advertise following of recommended rules (closes #1486)Kim Alvefur2021-10-051-0/+2
| | | | | | | | We're doing our best!