about summary refs log tree commit diff
path: root/nixos/tests/mosquitto.nix
AgeCommit message (Collapse)AuthorFilesLines
2023-10-22nixos/mosquitto: remove the bind_interface testpennae1-28/+0
bind_interface is the mosquitto way of trying to bind to all addresses on an interface, but it is unreliable (trying to bind to link-local v6 addresses *sometimes* but not always) and just prone to failure in general for reasons we have yet to discover. since this kind of automatic behavior isn't particularly necessary in a declarative system we may as well skip it.
2023-05-09nixos/mosquitto: use networkd for testspennae1-0/+1
the non-networkd backend does not wait for slaac to finish (ie, ipv6 addresses coming out of tentative state), and that breaks the mosquitto bind_interface test slightly. if slaac takes too long the test will run into mosquitto restart limits and fail.
2022-10-28nixos/mosquitto: fix testpennae1-4/+8
looks like stricter typing checks broke this one?
2022-05-15nixos/mosquitto: add missing listener option bind_interfacepennae1-0/+28
we expose it under settings instead of at the listener toplevel because mosquitto seems to pick the addresses it will listen on nondeterministically from the set of addresses configured on the interface being bound to. encouraging its use by putting it into the toplevel options for a listener seems inadvisable.
2021-10-24nixos/mosquitto: restore passwordless system featurepennae1-1/+23
during the rewrite the checkPasswords=false feature of the old module was lost. restore it, and with it systems that allow any client to use any username.
2021-10-24nixos/mosquitto: refactor test a littlepennae1-13/+6
2021-10-22nixos/mosquitto: rewrite the testpennae1-48/+146
expand the test to check all four forms of passwords, tls certificates (both server and client), and that acl files are formatted properly.
2021-10-22nixos/mosquitto: rewrite the modulepennae1-9/+11
mosquitto needs a lot of attention concerning its config because it doesn't parse it very well, often ignoring trailing parts of lines, duplicated config keys, or just looking back way further in the file to associated config keys with previously defined items than might be expected. this replaces the mosquitto module completely. we now have a hierarchical config that flattens out to the mosquitto format (hopefully) without introducing spooky action at a distance.
2021-05-01nixos/mosquitto: harden systemd unitMartin Weinelt1-1/+4
It can still network, it can only access the ssl related files if ssl is enabled. ✗ PrivateNetwork= Service has access to the host's network 0.5 ✗ RestrictAddressFamilies=~AF_(INET|INET6) Service may allocate Internet sockets 0.3 ✗ DeviceAllow= Service has a device ACL with some special devices 0.1 ✗ IPAddressDeny= Service does not define an IP address allow list 0.2 ✗ RootDirectory=/RootImage= Service runs within the host's root directory 0.1 ✗ RestrictAddressFamilies=~AF_UNIX Service may allocate local sockets 0.1 → Overall exposure level for mosquitto.service: 1.1 OK 🙂
2021-01-10treewide: simplify pkgs.stdenv.lib -> pkgs.libDominik Xaver Hörl1-1/+1
The library does not depend on stdenv, that `stdenv` exposes `lib` is an artifact of the ancient origins of nixpkgs.
2019-11-20nixos/mosquitto: Refactor integration test codeJacek Galowicz1-33/+28
2019-11-20nixos/mosquitto: Port integration test to pythonJacek Galowicz1-21/+28
2019-08-28treewide: remove redundant recvolth1-1/+1
2019-08-26treewide: remove redundant quotesvolth1-1/+1
2019-06-24nixos/mosquitto: make the tests runPeter Hoeg1-7/+26
2019-04-24nixos/mosquitto: add testPeter Hoeg1-0/+69