Commit Graph

316 Commits (30d8d2ba6b211103c769e95194c2bd0cf11c6237)

Author SHA1 Message Date
Roger A. Light 40b402e64a Add the `global_plugin` option.
This gives global plugin loaded regardless of `per_listener_settings`.
4 years ago
Roger A. Light 49065f03a8 Merge remote-tracking branch 'origin/fixes' into develop 4 years ago
Roger A. Light ec895f2ad3 mosquitto_sub now only needs `-t` or `-U` to run
This means that `-t` is not required in all situations.
4 years ago
Roger A. Light 30b54ba124 Add platform limitations section to man page. 4 years ago
Abilio Marques d8090afbfb bridge: add support for TCP_USER_TIMEOUT
Signed-off-by: Abilio Marques <abiliojr@gmail.com>
4 years ago
Roger A. Light de0e275ccb mosquitto_sub `--watch` can now be called as `-w`. 4 years ago
Roger A. Light e4160b083a Add --watch to mosquitto_sub. 4 years ago
Roger A. Light 214feb8f6b Merge branch 'fixes' into develop 4 years ago
Roger A. Light 99833795f2 Man page improvements - document MQTT support. 4 years ago
Roger Light 0a90e62f93 CMake tidy. 4 years ago
Roger Light 160950dc73 Fix syntax error. 4 years ago
Roger Light 931c590a37
Merge pull request #2156 from abiliojr/improve_tls
add cipher settings for bridge, and support for TLS 1.3 ciphers
4 years ago
Roger Light a5eb2f25eb Add --tls-keylog argument. 4 years ago
Roger Light ef7662ca8e Merge branch 'master' into develop 4 years ago
Roger A. Light d3dd89da82 Fix man page typos. 5 years ago
Roger A. Light 8dbfdc0495 Add `--no-tls` option for all clients.
This disables all TLS options for that instance. This is useful for
negating TLS options provided in a config file, or to disable the
automatic use of TLS when using port 8883.

Closes #2180. Thanks to Elliott Balsley.
5 years ago
Roger Light efad820706 Add `-o` option for all clients loading options from a specific file. 5 years ago
Roger Light f1f0396d86 Fix links in man pages. 5 years ago
Roger A. Light 54df92cdc9 Add references to dynsec plugin in mosquitto.conf(5)
Closes #2089. Thanks to YerayAlonso.
5 years ago
Abilio Marques ec73636884 mention ciphers settings in documentation, minor sync of missing config settings
Signed-off-by: Abilio Marques <abiliojr@gmail.com>
5 years ago
Roger A. Light 3ac2c3ee09 Improve mosquitto_ctrl documentation. 5 years ago
Roger A. Light de9780343b Add support for MQTT v5 broker->client topic aliases.
This is on a first-come-first-served basis for now.
Also broker to bridge topic aliases.
5 years ago
Roger A. Light c11a2d5a8b Fix mosquitto_rr doc default version.
Closes #2032.
5 years ago
Roger A. Light fd036b9435 Merge branch 'fixes' into develop 5 years ago
Roger A. Light 5d6e6aa406 Man page entry for bridge_tcp_keepalive. 5 years ago
Roger A. Light 217b416a2d Fix man page building to not absolutely require xsltproc when using CMake.
This now handles the case where we are building from the released tar, or
building from git if xsltproc is available, or building from git if xsltproc
is not available.
5 years ago
Roger Light ad9a78dfc3 Note in the man pages that SIGHUP reloads TLS certificates.
Closes #2037. Thanks to Greg Troxel.
5 years ago
Roger A. Light 0a1ae7792f Fix closing tag. 5 years ago
Roger A. Light 0aecb51fcd Rename reload_type -> bridge_reload_type, plus doc updates. 5 years ago
Abilio Marques 008342c2f3 allow bridge configuration reload
Signed-off-by: Abilio Marques <abiliojr@gmail.com>
5 years ago
Roger A. Light e717b7f42c Merge branch 'Hallot-make-sure-xsltproc-installed' into fixes 5 years ago
Roger A. Light f7255ac3cf Merge branch 'make-sure-xsltproc-installed' of git://github.com/Hallot/mosquitto into Hallot-make-sure-xsltproc-installed 5 years ago
Roger Light 886ee6cd0c Fix `bind_interface` option.
Closes #1999. Thanks to Joerg55.
5 years ago
Roger Light 28c28fe707 Fix incorrect description in mosquitto_ctrl man page.
Closes #1995. Thanks to fyta2000.
5 years ago
Pierre Hallot 2cbb3e45ca
Look for xsltproc when needed; to fail early
Signed-off-by: Pierre Hallot <hallotpierre@gmail.com>
5 years ago
Roger A. Light 7fc472232c Merge branch 'fixes' 5 years ago
Roger A. Light 4a012aef06 Fix man pages not being built when using CMake.
Closes #1969. Thanks to phplpf.
5 years ago
Roger A. Light 0ec258d01f Fix incorrect string length calculation.
Closes #1963. Thanks to twegener-embertec.
5 years ago
Peter Stevenson 8a44e5940c Systemd service changes for updated pid path.
Signed-off-by: Peter Stevenson <pete@ihut.co.uk>
5 years ago
Roger A. Light 04c110183c Bridge support for MQTT v5 maximum-qos. 5 years ago
Roger A. Light 29c771cdd4 Add lib and client support for OS CA certs
- Add `MOSQ_OPT_TLS_USE_OS_CERTS` option, to instruct the client to load and  trust OS provided CA certificates for use with TLS connections.
- All clients now load OS provided CA certificates if used with `-L
  mqtts://...`, or if port is set to 8883 and no other CA certificates are
  used. Closes #1824.
- Add the `--tls-use-os-certs` option to all clients.

Closes #1824. Thanks to Jens Reimann.
5 years ago
Roger A. Light b7e6638fd8 Add `ciphers_tls1.3` option, to allow setting TLS v1.3 ciphersuites.
Closes #1825. Thanks to Valentin Dimov.
5 years ago
Roger A. Light 4667c9d5bc Change max_queued_messages default to 1000. 5 years ago
Roger A. Light 68f849f2af Fix slug 5 years ago
Roger A. Light a0c39b193b Fix description of `-e` and `-t` arguments in mosquitto_rr.
Closes #1881. Thanks to Arnav Singh.
5 years ago
Roger A. Light a3bff44a3e Split mosquitto_ctrl manpages by module. 5 years ago
Roger A. Light e95327789e Note that zero length retained messages are never retained.
Closes #1871. Thanks to James Kleeh.
5 years ago
Roger A. Light abbeb4494f Change `tls_version` option behaviour.
The `tls_version` option now defines the *minimum* TLS protocol version to
be used, rather than the exact version.

Closes #1258. Thanks to Daniele Sluijters.
5 years ago
Roger A. Light edee5aaf8d Add the `bridge_bind_address` option.
Closes #1311. Thanks to beville.
5 years ago
Roger A. Light d8f5aacd7f Add the `bridge_max_packet_size` option.
Closes #265.
5 years ago
Roger A. Light 987f7ff76a Make it clearer that `log_dest topic` doesn't include debug. 5 years ago
Roger A. Light fdff255916 New dynamic security plugin. 5 years ago
Roger A. Light 3506fe4099 Update docs for acl deny feature. 5 years ago
Roger A. Light f18f1a08a9 Merge branch 'feature/add-deny-option-for-acl' of git://github.com/BrandtHill/mosquitto into BrandtHill-feature/add-deny-option-for-acl 5 years ago
Roger A. Light 7c3a353616 Fix incorrect bridge_insecure description.
Closes #1837. Thanks to chegancasb.
5 years ago
Roger A. Light 94c4108977 The `pid_file` option will now always attempt to write a pid file.
This happens regardless of whether the `-d` argument is used when
running the broker.

Closes #1845. Thanks to habazut.
5 years ago
Roger A. Light c7f429cab2 Deprecation warnings. 5 years ago
Roger A. Light c90e49af1b Merge remote-tracking branch 'origin/fixes' into develop 5 years ago
Roger A. Light 54b9571516 Enable TLS with certfile+keyfile, not capath/cafile. 5 years ago
Roger A. Light 5371bd09d1 Add support for PBKDF2-SHA512 password hashing. 5 years ago
Roger A. Light 97bd527df0 Breaking: allow_anonymous defaults to false. 5 years ago
Roger A. Light d7d3087b04 Breaking: Bind to loopback if no listeners are configured. 5 years ago
Roger A. Light bab8cc2a6b mosquitto_sub now supports extra format specifiers.
These are for field width and precision for some parameters.
5 years ago
Roger A. Light 938e17a3d0 Fix incorrect authentication-method property type in mosquitto_sub man.
Closes #1801. Thanks to roebotron.
5 years ago
Brandt Hill 16eecfcbc5 Add 'deny' as an option for topics/patterns in acl file to allow certain topics to be explicitly denied when they might otherwise be allowed through a more open read/write/readwrite option. Example: 'topic readwrite test/#' and 'topic deny test/hello/#' may be added so that a user can read/write to all test/# topics, except for test/hello/#.
Signed-off-by: Brandt Hill <brandtlarsonhill@gmail.com>

Change variable name for clarity. Remember to initialize bool (I'm bad at C).

Signed-off-by: Brandt Hill <brandtlarsonhill@gmail.com>

Add documentation to config man page

Signed-off-by: Brandt Hill <brandtlarsonhill@gmail.com>

Add test case for deny option

Signed-off-by: Brandt Hill <brandtlarsonhill@gmail.com>

Add deny acls to top of the list to preserve early exit

Signed-off-by: Brandt Hill <brandtlarsonhill@gmail.com>

change comments

Signed-off-by: Brandt Hill <brandtlarsonhill@gmail.com>
5 years ago
Roger A. Light 9929ce0a26 All clients exit with an error exit code on CONNACK failure.
Closes #1778. Thanks to jflambert.
5 years ago
Roger A. Light 873e580a00 Spelling/grammar fixes. 5 years ago
Roger A. Light 2e32634a95 DLT logging is now configurable at runtime with `log_dest dlt`.
Closes #1735. Thanks to Brian Orpin.
5 years ago
Roger A. Light b726e2f1ec mosquitto_sub %j and %J timestamps are now in a ISO 8601 compatible format. 5 years ago
Roger A. Light 3e9eae401e Missing / in bridge remapping doc. 6 years ago
Karl Palsson 07d73c7e3a bridge: support bridge local clean session
This adds the ability to separating bridge clean session settings between
the local and remote endpoints.  Some broker implmentations refuse to allow
non-clean sessions, as they don't support storing messages to be sent to
the connecting broker.  However, this doesn't mean that the local
broker can't be queueing messages to send _out_ to the remote broker.

This PR adds a new bridge connection setting, local_cleansession, that
allows controlling this split. Naming is chosen to be local_ in keeping
with the other local_ settings for bridges.

A test for the six cases of queued/not queued messages in both
directions is added, but v5 testing is currently disabled.  The changes
to support the split are ~independent of protocol version.

Signed-off-by: Karl Palsson <karlp@etactica.com>
6 years ago
Roger A. Light 0da723c1ec Add `--random-filter` to mosquitto_sub. 6 years ago
Roger A. Light 3671a6dfdb Add `-x` argument to all clients.
This allows the session-expiry-interval property to be easily set for
MQTT v5 clients.
6 years ago
Roger A. Light d60e86d2a3 Add TCP_NODELAY support to lib and clients.
Closes #1526. Thanks to Felix Moessbauer.
6 years ago
Roger A. Light c0443637e8 Merge branch 'master'
Conflicts:
	ChangeLog.txt
	config.mk
	src/context.c
	src/loop.c
	src/subs.c
	test/broker/01-connect-bad-packet.py
	test/broker/02-subpub-qos1-bad-pubcomp.py
	test/broker/02-subpub-qos1-bad-pubrec.py
	test/broker/02-subpub-qos2-bad-puback-1.py
	test/broker/02-subpub-qos2-bad-puback-2.py
	test/broker/02-subpub-qos2-bad-pubcomp.py
	test/broker/02-subpub-qos2.py
	test/broker/07-will-null-topic.py
6 years ago
Roger A. Light 91961d93c4 Merge branch 'master' of git://github.com/basavesh/mosquitto into basavesh-master 6 years ago
Roger A. Light 3d92dcbbd9 Make documentation for `mosquitto_pub -l` match reality
Blank lines are sent as empty messages.

Closes #1474. Thanks to majekw.
6 years ago
Roger A. Light 2af260ba58 Add `bridge_outgoing_retain` option
This allows outgoing messages from a bridge to have the retain bit
completely disabled, which is useful when bridging to e.g. Amazon or
Google.
6 years ago
Roger A. Light d49988fa6f Rejig unix socket support. 6 years ago
Roger Light 1c6666b63a Add user-property output support to sub/rr. 6 years ago
Roger A. Light 59c0bfe6e1 Add support for v5 property printing to mosquitto_sub/rr in non-JSON mode. 6 years ago
Roger A. Light 9e4226622f Add `--pretty` option to mosquitto_sub/rr
If active, this produces formatted JSON output rather than the normal
minimised output.
6 years ago
Roger A. Light ad5c2e11d9 Use cJSON for producing JSON output in clients.
Closes #1222. Thanks to Ben Barbour.
6 years ago
Roger A. Light 27e81e9e13 Point libmosquitto documentation at the API pages. 6 years ago
Roger A. Light b660283e64 Basic MQTT v5 support for bridges.
This gives equivalent behaviour as for v3.1.1/v3.1 bridges, there is no extra functionality yet.
6 years ago
Roger A. Light 499e2f2e98 Add support for unix sockets to broker, lib, and clients. 6 years ago
Roger A. Light 54ed3c0fc9 Merge branch 'master' into develop 6 years ago
Roger A. Light da5ff1746c Don't use `/` in auto client ids.
Also update client documentation about automatic client ids.
6 years ago
Roger A. Light 01530a3f07 Improve message_size_limit and various max_* option docs.
Closes #448.
6 years ago
Roger A. Light c1e488cb88 Add timeout return code (27) for sub/rr using -W.
Closes #275.
6 years ago
Roger A. Light 14e1ae09dc max_packet_size applies to 3.1.1 and 3.1 clients as well 6 years ago
Roger A. Light 6f4e472260 Improve details on global/per listener options in the mosquitto.conf man page.
Closes #274.
6 years ago
Dan Langille c169ad6abb
$HOME/.config/mosquitto_sub or pub?
Should $HOME/.config/mosquitto_sub be $HOME/.config/mosquitto_pub? It seems to be that way based on my testing.

I think this is a copy/paste error.
6 years ago
Roger A. Light 570c3674fb Drop privs to nobody if mosquitto user does not exist. 6 years ago
Jonas Helgemo 1001569fa3
docs: Fix typo on man-page for mosquitto.conf
- man-page has a typo in the 'bridge_capath' section under SSL/TLS support

Signed-off-by: Jonas Helgemo <jhel@pm.me>
6 years ago
Roger A. Light 9dc319c183 Remove obsolete `store_clean_interval` from documentation. 6 years ago
Roger A. Light bd34d8c9cd Remove old man page references.
Thanks to Karl Palsson.

Closes #1266.
6 years ago
Roger A. Light b4dfeb3767 Fix MQTT v5 clients not being able to specify a password without a username.
Thanks to Erik Moqvist.

Closes #1274.
6 years ago
Roger A. Light 46d5aa9682 Improve documentation around the upgrading of persistence files.
Thanks to jsaak.

Closes #1276.
6 years ago
Roger A. Light 439575475c Use CMAKE_INSTALL_* variables when installing in CMake.
Closes #1049. Thanks to Greg Troxel.
7 years ago