Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | mod_admin_shell, util.prosodyctl.shell: Process command-line args on ↵ | Matthew Wild | 6 days | 1 | -11/+1 |
| | | | | | | | | | | | | server-side, with argparse support This allow a shell-command to provide a 'flags' field, which will automatically cause the parameters to be fed through argparse. The rationale is to make it easier for more complex commands to be invoked from the command line (`prosodyctl shell foo bar ...`). Until now they were limited to accepting a list of strings, and any complex argument processing was non-standard and awkward to implement. | ||||
* | prosodyctl: check features: Fix traceback for components with no recommended ↵ | Matthew Wild | 6 days | 1 | -13/+15 |
| | | | | modules (thanks Menel, riau) | ||||
* | util.prosodyctl.check: Recognise http_upload_external as a file upload service | Matthew Wild | 7 days | 1 | -1/+1 |
| | |||||
* | util.prosodyctl.check: Fix typo in informational message | Matthew Wild | 7 days | 1 | -1/+1 |
| | |||||
* | prosodyctl: check features: check for mod_muc_mam on MUC components | Matthew Wild | 7 days | 1 | -4/+64 |
| | |||||
* | prosodyctl: check: Fix variable name (thanks luacheck) | Matthew Wild | 8 days | 1 | -1/+1 |
| | |||||
* | prosodyctl: check: Skip DNS checks for known invalid domains (fixes traceback) | Matthew Wild | 8 days | 1 | -1/+5 |
| | |||||
* | prosodyctl: check features: Check for recommended feature availability | Matthew Wild | 8 days | 1 | -0/+232 |
| | | | | | | Inspired by mod_compliance_*, this command will help people (especially those with older configs, upgrading from previous releases) learn what features their Prosody configuration may be missing. | ||||
* | util.prosodyctl.check: Sort hosts in iterator for more stable output | Matthew Wild | 8 days | 1 | -1/+1 |
| | |||||
* | prosodyctl: check: Fix indentation in warning message | Matthew Wild | 8 days | 1 | -2/+2 |
| | |||||
* | prosodyctl: check: Warn about deprecated mod_posix | Matthew Wild | 10 days | 1 | -0/+6 |
| | |||||
* | util.prosodyctl.shell: Export function to check for availability of admin socket | Matthew Wild | 2025-02-06 | 1 | -0/+8 |
| | |||||
* | util.prosodyctl.shell: Remove non-existent export [luacheck] | Kim Alvefur | 2025-01-08 | 1 | -1/+0 |
| | |||||
* | util.prosodyctl.shell: Support for requesting special inputs, e.g. passwords | Matthew Wild | 2025-01-07 | 1 | -0/+17 |
| | | | | | This lets the server signal to the client that a special input is requested. Currently we support the "password" type only. | ||||
* | Merge 0.12->trunk | Matthew Wild | 2024-12-20 | 1 | -4/+14 |
|\ | |||||
| * | util.prosodyctl.check: Improve error handling of UDP socket setup (for #1803)0.12.5 | Matthew Wild | 2024-12-20 | 1 | -4/+14 |
| | | | | | | | | Not necessarily a fix, but may give us more information about failure cases. | ||||
* | | Merge 0.12->trunk | Kim Alvefur | 2024-08-30 | 1 | -1/+1 |
|\| | |||||
| * | util.prosodyctl.cert: Ensure old cert is moved out of the way | Kim Alvefur | 2024-08-30 | 1 | -1/+1 |
| | | | | | | | | This should make it visible if the move fails | ||||
* | | prosodyctl shell: Fix invocation with 3+ command arguments | Matthew Wild | 2024-04-24 | 1 | -1/+1 |
| | | | | | | | | | | | | | | The code correctly inserted the ',' when there was already a "%q" in the format string, but then the next argument would fail to match because it inserted ", %q" instead of "%q". The code now matches both, ensuring the generated code will not produce a syntax error with multiple arguments. | ||||
* | | Merge 0.12->trunk | Matthew Wild | 2024-03-27 | 1 | -0/+51 |
|\| | |||||
| * | prosodyctl check: Warn about invalid domain names in the config file | Matthew Wild | 2024-03-27 | 1 | -0/+51 |
| | | | | | | | | | | This ensures that domain names of virtual hosts and components are valid in XMPP, and that they are encoded correctly. | ||||
* | | util.prosodyctl.shell: Fix lint [luacheck] | Kim Alvefur | 2023-12-09 | 1 | -1/+0 |
| | | |||||
* | | util.prosodyctl.shell: Add :method syntax to make e.g. MUC commands easier | Kim Alvefur | 2023-12-09 | 1 | -2/+11 |
| | | | | | | | | | | e.g. prosodyctl shell muc room room@muc.example.com :set_name "This Room" | ||||
* | | util.prosodyctl.check: Disable https cert check if http_external_url set | Kim Alvefur | 2023-11-13 | 1 | -0/+4 |
| | | | | | | | | | | This would indicate that a reverse proxy is used, which gets to be responsible for that since it probably holds the actual cert. | ||||
* | | util.prosodyctl.check: Check cert for HTTPS if http module enabled | Kim Alvefur | 2023-11-13 | 1 | -3/+13 |
| | | |||||
* | | util.prosodyctl.check: Update conditions for s2s cert checks | Kim Alvefur | 2023-11-13 | 1 | -3/+3 |
| | | | | | | | | | | | | The 'anonymous_login' setting is deprecated and prosodyctl check config will tell you to change it to 'authentication = "internal_hashed"', so we shouldn't need to care about here anymore. | ||||
* | | util.prosodyctl.check: Simplify conditions for c2s and s2s cert checks | Kim Alvefur | 2023-11-13 | 1 | -3/+3 |
| | | | | | | | | This code is hard to follow and in need of some refactoring. | ||||
* | | util.prosodyctl.check: Try to clarify check for misplaced k=v in ↵ | Kim Alvefur | 2023-11-11 | 1 | -2/+2 |
| | | | | | | | | modules_enabled (thanks aab and Menel) | ||||
* | | util.prosodyctl.check: Print DANE TLSA records for certificates | Kim Alvefur | 2023-11-03 | 1 | -0/+10 |
| | | | | | | | | Not the prosodyctl check dane I wanted to make but a start. | ||||
* | | util.prosodyctl.check: Wrap each check in a function | Kim Alvefur | 2023-11-03 | 1 | -13/+29 |
| | | | | | | | | | | | | | | One small refactor but one huge step in the right direction Mostly because adding another check would make the line checking for a valid check exceed the column limit. | ||||
* | | Merge 0.12->trunk | Kim Alvefur | 2023-08-30 | 1 | -1/+1 |
|\| | |||||
| * | util.prosodyctl.check: Correct modern replacement for 'disallow_s2s'0.12.4 | Kim Alvefur | 2023-08-27 | 1 | -1/+1 |
| | | | | | | | | | | The code would have suggested adding to modules_enabled instead of modules_disabled | ||||
* | | Merge 0.12->trunk | Kim Alvefur | 2023-07-17 | 1 | -0/+5 |
|\| | |||||
| * | util.prosodyctl.check: Hint about the 'external_addresses' config option | Kim Alvefur | 2023-07-17 | 1 | -0/+5 |
| | | |||||
* | | Merge 0.12->trunk | Kim Alvefur | 2023-07-17 | 1 | -41/+82 |
|\| | |||||
| * | util.prosodyctl.check: Validate format of module list options | Kim Alvefur | 2023-07-17 | 1 | -0/+28 |
| | | | | | | | | Should detect things like misplaced settings inside modules_enabled | ||||
| * | util.prosodyctl.check: Get some config options via minimal moduleapi #896 | Kim Alvefur | 2023-07-17 | 1 | -41/+54 |
| | | | | | | | | | | | | The module API has certain coercion features that are useful. Fixes traceback reported in #1812 and other duplicates | ||||
* | | Merge 0.12->trunk | Kim Alvefur | 2023-05-31 | 1 | -4/+5 |
|\| | |||||
| * | util.prosodyctl.check: Fix error where hostname can't be turned into A label | Kim Alvefur | 2023-05-31 | 1 | -4/+5 |
| | | | | | | | | | | | | | | | | | | Where gethostname or tohostname returns an invalid name, e.g. containing underscores or something, to_ascii would reject this and return nil, which triggers an error in the dns lookup. Reported by prova2 in the chat, for whom tohostname returned a long name containing underscores. | ||||
* | | util.prosodyctl.shell: Fix sending terminal width with single argument | Kim Alvefur | 2023-04-07 | 1 | -1/+1 |
| | | | | | | | | | | E.g. when you do 'prosodyctl shell "s2s:show()"', this is the case that triggers, and it was missing the @width argument, causing confusion. | ||||
* | | util.prosodyctl.shell: Coerce terminal width to string (for util.stanza) | Kim Alvefur | 2023-04-07 | 1 | -1/+1 |
| | | | | | | | | Fixes invalid attribute value: expected string, got number | ||||
* | | util.human.io: Prefer using the $COLUMNS environment variable if set (by ↵ | Kim Alvefur | 2023-04-07 | 1 | -1/+1 |
| | | | | | | | | | | | | readline) Feels like it should be faster. | ||||
* | | util.prosodyctl.shell: Use new term_width() for width | Kim Alvefur | 2023-04-07 | 1 | -1/+2 |
| | | | | | | | | | | Kicks in if/when readline hasn't set $COLUMNS, e.g. when using the `prosodyctl shell command like this` form. | ||||
* | | util: Prefix module imports with prosody namespace | Kim Alvefur | 2023-03-17 | 3 | -40/+40 |
| | | |||||
* | | Merge 0.12->trunk | Kim Alvefur | 2023-02-22 | 1 | -2/+2 |
|\| | |||||
| * | util.prosodyctl.check: Suggest 'http_cors_override' instead of older CORS ↵ | Kim Alvefur | 2023-02-22 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | settings The cross_domain_* settings were added here prior to http_cors_override being added back in 17d87fb2312a, so for a time there was no replacement, but now there is. | ||||
* | | Merge 0.12->trunk | Kim Alvefur | 2023-01-22 | 1 | -2/+2 |
|\| | |||||
| * | util.prosodyctl.shell: Close state on exit to fix saving shell history | Kim Alvefur | 2023-01-22 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This ensures a last round of garbage collection and finalizers, which should include flushing the readline history file. Test procedure: ``` $ ./prosodyctl shell prosody> s2s:show() -- any command that is not the last in history ... output prosody> bye $ ./prosodyctl shell prosody> ^P ``` After this, the shell prompt should contain the last command from before the "bye". Before this patch, recent history is gone most of the time. | ||||
* | | Merge 0.12->trunk | Kim Alvefur | 2023-01-14 | 1 | -4/+8 |
|\| | |||||
| * | prosodyctl check dns: Check for Direct TLS SRV records even if not ↵ | Kim Alvefur | 2023-01-14 | 1 | -4/+8 |
| | | | | | | | | | | | | | | configured (fix #1793) Existing such records may cause timeouts or errors in clients and servers trying to connect, despite prosodyctl check saying all is well |