Commit graph

13803 commits

Author SHA1 Message Date
Matthew Wild
f5f2755b63 mod_cloud_notify, mod_cron, mod_invites: Add 'prosody.' prefix to requires 2025-02-15 10:31:37 +00:00
Matthew Wild
a9bc4a09e4 .semgrep.yml: Identify unprefixed module imports 2025-02-15 10:30:33 +00:00
Kim Alvefur
346f58c9d9 core.certmanager: Move LuaSec verification tweaks to mod_s2s
These two settings are only really needed for XMPP server-to-server
connections.
2025-02-15 00:19:01 +01:00
Kim Alvefur
1de0007141 Merge 13.0->trunk 2025-02-14 20:57:43 +01:00
Kim Alvefur
e49c199077 doap: Update XEP-0421, only editorial changes and promoted to Stable 2025-02-14 20:55:49 +01:00
Kim Alvefur
a16ff1dea5 doap: Replace references to 'trunk' 2025-02-14 20:50:18 +01:00
Matthew Wild
8333f04d22 Merge 13.0->trunk 2025-02-14 14:54:49 +00:00
Matthew Wild
1acb229597 net.httpserver: Remove obsolete API 2025-02-14 14:50:22 +00:00
Matthew Wild
09e5f799a0 prosody.cfg.lua.dist: Updates for 13.0+ 2025-02-14 14:47:11 +00:00
Matthew Wild
e3bd013535 CHANGES: List mod_cloud_notify 2025-02-14 14:44:47 +00:00
Matthew Wild
d71473df3b MUC: Use new XEP namespace for hats by default
Revert with muc_hats_compat = true in the config if necessary.
2025-02-14 13:08:45 +00:00
Matthew Wild
5cb42c94bd Merge 13.0->trunk 2025-02-13 18:01:43 +00:00
Matthew Wild
ed5dfc1a62 prosodyctl: check: Warn about deprecated mod_posix 2025-02-13 18:01:15 +00:00
Matthew Wild
90fea186dd modulemanager: Remove autoloading of per-platform module
We only support posix these days, and we moved it to the core startup process
to make it more deterministic and reliable.
2025-02-13 18:00:54 +00:00
Matthew Wild
1d130946fe Merge 13.0->trunk 2025-02-13 17:05:51 +00:00
Matthew Wild
df63482b96 mod_admin_shell: Remove duplicated line 2025-02-13 17:05:36 +00:00
Matthew Wild
468537cb09 Merge 13.0->trunk 2025-02-13 16:21:10 +00:00
Matthew Wild
56dc05885e mod_admin_shell: Rename user:setrole to user:set_roles
This is more readable and accessible, and it will only be harder to change
after release.
2025-02-13 16:20:42 +00:00
Matthew Wild
f8a9943d17 mod_admin_shell: Hide secondary role commands, focus on primary roles
Secondary roles are an advanced feature without any strong use cases
currently. Having multiple ways to manage roles is confusing.

Now the 'user:role' command will just show the primary role if that is all
there is, but will list secondary roles too if there are any (which in 99.9%
of cases there won't be).
2025-02-13 16:18:59 +00:00
Matthew Wild
009996c9e8 mod_admin_shell: Support for hiding certain commands from default help listing
Useful for e.g. deprecated commands.
2025-02-13 16:16:19 +00:00
Matthew Wild
4cc122bdc0 mod_account_activity: Fix error when no duration specified in shell command 2025-02-13 16:15:16 +00:00
Matthew Wild
b07c1436e7 mod_admin_shell: Fix result handling of user addrole/delrole commands 2025-02-13 15:54:39 +00:00
Matthew Wild
ccacf5acb3 usermanager: Include role_name in event for consistency with the 'removed' event 2025-02-13 15:31:37 +00:00
Matthew Wild
d384d98c11 mod_authz_internal: Fix error messages 2025-02-13 15:31:14 +00:00
Matthew Wild
dc810fea2d mod_authz_internal: Fix return values of secondary role management methods
usermanager expects (role, err) and (ok, err)
2025-02-13 15:30:23 +00:00
Matthew Wild
ecf23b8390 Merge 13.0->trunk 2025-02-13 14:00:34 +00:00
Matthew Wild
3cdaf29bf8 mod_presence: Fix traceback if origin gets disconnected during processing
Fixes #1887
2025-02-13 14:00:08 +00:00
Matthew Wild
64c5d4941c Merge 13.0->trunk 2025-02-13 13:09:11 +00:00
Matthew Wild
91e846ee71 mod_invites: Add shell commands to list, show and delete pending invitations 2025-02-13 13:04:37 +00:00
Matthew Wild
94385af697 mod_invites: Shell command to create reset links 2025-02-13 12:21:16 +00:00
Kim Alvefur
213dbebdd2 Merge 13.0->trunk 2025-02-12 22:41:19 +01:00
Kim Alvefur
e91c540eea core.configmanager: Delay reporting warnings about Credential until use
Too much noise to use Credential if you get a pile of warnings every
time you touch prosodyctl for anything. This way warnings should be
printed only if e.g used by prosodyctl check config or a module command.
2025-02-12 22:35:39 +01:00
Matthew Wild
4edcb2f344 Merge 13.0->trunk 2025-02-12 17:16:09 +00:00
Matthew Wild
d828183c6a CHANGES: Update with some more 13.0 features 2025-02-12 17:15:49 +00:00
Matthew Wild
85b82fdb3d mod_account_activity: Add shell command to list inactive accounts
Including accounts which may never have logged in.
2025-02-12 17:15:29 +00:00
Matthew Wild
6b6707efe5 mod_account_activity: Fix required module names 2025-02-12 17:15:00 +00:00
Matthew Wild
e0fc00a04c Merge 13.0->trunk 2025-02-12 12:34:29 +00:00
Matthew Wild
54b77fd3ca mod_account_activity: Record an account's last activity timestamp
This is similar to mod_lastlog/mod_lastlog2.

Some functionality was dropped, compared to mod_lastlog2. These features
(recording the IP address, or tracking the timestamp of multiple events) are
handled better by the mod_audit family of modules. For example, those
correctly handle multiple logins, IP address truncation, and data retention
policies.

The "registered" timestamp from mod_lastlog2 was also dropped, as this has
been stored in account_details by Prosody itself since at least 0.12 already.
2025-02-12 12:33:45 +00:00
Matthew Wild
2d695b3c01 CHANGES: Update for 13.0.x 2025-02-11 14:57:18 +00:00
Kim Alvefur
271860a171 util.dnsregistry: Update using script 2025-02-09 16:27:28 +01:00
Kim Alvefur
df27bf0645 tools.dnsregistry: Comment out duplicate error codes
This has previously been done manually after running this script
2025-02-09 16:26:22 +01:00
Kim Alvefur
c1655a181f mod_storage_sql: Fix tests for SQLite3
Tests does not run the code that initializes `sqlite_version`
2025-02-08 12:55:40 +01:00
Matthew Wild
d6f8c4fe18 MUC: Don't inform people about the avatar hash when there is none 2025-02-07 10:19:36 +00:00
Kim Alvefur
b4e8a8c6c4 net.adns: Collect DNS lookup timing metrics
Nice to have this in OpenMetricts instead of debug logs
2025-02-07 09:22:52 +01:00
Matthew Wild
3d61988313 mod_vcard: Switch store name for MUC hosts (thanks lissine) 2025-02-06 17:37:59 +00:00
Matthew Wild
857c61ffd3 mod_muc: Integrate support for vcards/avatars on MUC rooms
This was previously served by a community module (mod_vcard_muc).

It can be disabled by setting `vcard_muc = false` in the config.
2025-02-06 17:08:46 +00:00
Matthew Wild
839498eb5d mod_vcard: Some support for handling vcards on components 2025-02-06 17:03:03 +00:00
Matthew Wild
eac45d938a mod_vcard: Fire event when vcard updated 2025-02-06 17:02:29 +00:00
Matthew Wild
810b59d50e mod_vcard: Add API to get hash of the vcard avatar 2025-02-06 17:02:02 +00:00
Matthew Wild
2fef4f5d9c prosodyctl: Fix check for whether to show init system warning
Overlooked from testing.
2025-02-06 15:43:23 +00:00