Debian Codegraph @

CHANGELOG.md

raw
1 # Changelog
2 ## [v0.17.0] 2026-07-24
3 ### Added
4 - Add `--ox-transfer-private-key` to transfer the encrypted private key to PEP to transfer it to other devices (requires go-xmpp >= v0.3.7).
5 - Add `--ox-receive-private-key` to receive the encrypted private key from PEP.
6 - Add config option `no_root_warning`.
7 - Add config option `no_legacy_pgp_warning`.
8 - Also disable legacy PGP when running as root (Ox was already disabled).
9 - Disable pinning for not using PLAIN when running as root.
10 - Add config option `ox_trust_mode` with settings `blind` and `tofu`.
11
12 ### Changed
13 - Due to new `tofu` trust mode for Ox, only one public key per contact is accepted for easier ID handling.
14 - Ox: Check that fingerprint of received key equals the advertised one.
15
16 ## [v0.16.0] 2026-06-20
17 ### Added
18 - Add Ox support to http-upload.
19 - Add Ox support for private group chats.
20 - Show error cause if joining MUCs failedi (requires go-xmpp >= v0.3.5).
21
22 ### Changed
23 - Fix `--ox-delete-nodes`.
24 - Fix receiving of 1-1 messages while joined in a MUC.
25 - Use go-sendxmpp + a random ID as fallback MUC alias.
26 - Strip leading "xmpp:" from recipients.
27 - Strip trailing "?join" from MUC JIDs.
28 - Add context for timeouts in stanza handling.
29 - Check ID for disco items reply (requires go-xmpp >= v0.3.6).
30 - Reduce channel buffer size to 1 where only one item will be returned.
31 - Deprecate legacy PGP.
32
33 ## [v0.15.8] 2026-05-12
34 ### Changed
35 - Fix windows build (windows doesn't support syscalls Setgid and Setuid).
36
37 ## [v0.15.7] 2026-05-12
38 ### Changed
39 - Fix http-upload with legacy PGP encryption.
40 - Fix reading of environment variables.
41 - Fix a bug in looking up host meta 2.
42 - Try to drop root privileges before connecting to the server.
43 - Fix crash if a config key has no value.
44 - Use a salt for stored FAST token.
45 - Increase scrypt iterations for storing FAST token from 32768 to 65536.
46 - Log a warning when `--no-tls-verify` or `-n` is set.
47
48 ## [v0.15.6] 2026-05-01
49 ### Added
50 - New config option `allow_plain`.
51
52 ### Changed
53 - Explain each configuration option in manpage go-sendxmpp(5).
54 - Improve config parsing robustness.
55 - Update link in manpage as Gitlab calls issues now work items.
56 - Recognize stanza size limit updates after authentication (via go-xmpp >= v0.3.3).
57 - Tell connection target in error message when failing to connect.
58
59 ## [v0.15.5] 2026-01-01
60 ### Changed
61 - Fix SASL SCRAM Downgrade Protection in case of server providing different mechanisms for SASL and SASL2 (requires go-xmpp >= v0.3.2).
62
63 ## [v0.15.4] 2025-12-22
64 ### Changed
65 - http-upload: Manually set content length for HTTP request (fixes issues with certain http modules/proxies).
66
67 ## [v0.15.3] 2025-12-11
68 ### Changed
69 - Fix PLAIN authentication for SASL2 (requires go-xmpp >= v0.3.1).
70
71 ## [v0.15.2] 2025-12-06
72 ### Changed
73 - Use UUIDv7 instead of UUIDv4 for stanza IDs (requires go-xmpp >= v0.2.19).
74 - Fix stanza syntax error for legacy PGP messages.
75 - Print error if legacy PGP and Ox are requested simultaneously.
76 - Reworked OOB file sending and http-upload to use new functions from go-xmpp library (requires go-xmpp >= v0.3.0).
77 - Try password login if FAST login fails.
78
79 ## [v0.15.1] 2025-10-18
80 ### Added
81 - Add XEP-0359 Origin-ID to messages (requires go-xmpp >= v0.2.18).
82
83 ### Changed
84 - HTTP upload: Ignore timeouts on disco IQs as some components do not reply.
85
86 ## [v0.15.0] 2025-08-18
87 ### Added
88 - Add flag `--verbose` to show debug information.
89 - Add flag `--recipients` to specify recipients by file.
90 - Add flag `--retry-connect` to try after a waiting time if the connection fails.
91 - Add flag `--retry-connect-max` to specify the amount of retry attempts.
92 - Add flag `--legacy-pgp` for using XEP-0027 PGP encryption with Ox keys.
93 - Add support for punycode domains.
94
95 ### Changed
96 - Update gopenpgp library to v3.
97 - Improve error detection for MUC joins.
98 - Don't try to connect to other SRV record targets if error contains 'auth-failure'.
99 - Remove support for old SSDP version (via go-xmpp v0.2.15).
100 - Http-upload: Stop checking other disco items after finding upload component.
101 - Increase default TLS version to 1.3.
102
103 ## [v0.14.1] 2025-01-24
104 ### Changed
105 - Use prettier date format for error messages.
106 - Update XEP-0474 to version 0.4.0 (requires go-xmpp >= 0.2.10).
107
108 ## [v0.14.0] 2024-12-27
109 ### Added
110 - Add `--fast-invalidate` to allow invalidating the FAST token.
111
112 ### Changed
113 - Don't create legacy Ox private key directory in `~/.local/share/go-sendxmpp/oxprivkeys`.
114 - Delete legacy Ox private key directory if it's empty.
115 - Show proper error if saved FAST mechanism isn't usable with current TLS version (requires go-xmpp >= 0.2.9).
116 - Print debug output to stdout, not stderr (requires go-xmpp >= 0.2.9).
117 - Show `RECV:` and `SEND:` prefix for debug output (requires go-xmpp >= 0.2.9).
118 - Delete stored fast token if `--fast-invalidate` and `--fast-off` are set.
119 - Show error when FAST creds are stored but non-FAST mechanism is requested.
120
121 ## [v0.13.0] 2024-12-14
122 ### Added
123 - Add `--anonymous` to support anonymous authentication (requires go-xmpp >= 0.2.8).
124
125 ### Changed
126 - Add `XEP-0480: SASL Upgrade Tasks` support (requires go-xmpp >= 0.2.8).
127 - Add support for `see-other-host` stream error (requires go-xmpp >= 0.2.8).
128
129 ### Changed
130 - Don't automatically try other auth mechanisms if FAST authentication fails.
131
132 ## [v0.12.1] 2024-11-17
133 ### Changed
134 - Print error instead of quitting if a message of type error is received.
135 - Allow upload of multiple files.
136
137 ### Added
138 - Add flag `--suppress-root-warning` to suppress the warning when go-sendxmpp is used by the root user.
139
140 ## [v0.12.0] 2024-11-03
141 ### Added
142 - Add possibility to look up direct TLS connection endpoint via hostmeta2 (requires xmppsrv >= 0.3.3).
143 - Add flag `--allow-plain` to allow PLAIN authentication (requires go-xmpp >= 0.2.5).
144
145 ### Changed
146 - Disable PLAIN authentication per default.
147 - Disable PLAIN authentication after first use of a SCRAM auth mechanism (overrides `--allow-plain`) (requires go-xmpp >= 0.2.5).
148
149 ## [v0.11.4] 2024-10-26
150 ### Changed
151 - Fix bug in SCRAM-SHA-256-PLUS auth (via go-xmpp >= 0.2.4).
152
153 ## [v0.11.3] 2024-10-25
154 ### Added
155 - Add go-xmpp library version to `--version` output (requires go-xmpp >= 0.2.2).
156
157 ### Changed
158 - Fix XEP-0474: SASL SCRAM Downgrade Protection hash calculation bug (via go-xmpp >= 0.2.3).
159 - [gocritic]: Improve code quality.
160
161 ## [v0.11.2] 2024-09-17
162 ### Changed
163 - Add Gopenpgp and Xmppsrv version to `--version` output (requires xmppsrv >= 0.3.2).
164 - Improve selection between StartTLS and DirectTLS.
165
166 ## [v0.11.1] 2024-07-11
167 ### Changed
168 - Fix Ox encryption in interactive mode (do not add the same recipient key to the keyring over and over again).
169 - Exit with error code if Ox encryption for one recipient fails.
170 - Improved handling of perl sendxmpp config files.
171
172 ## [v0.11.0] 2024-05-29
173 ### Changed
174 - Move private Ox key into JID folder in ~/.local/share/go-sendxmpp.
175 - Use `fmt.Errorf()` instead of `errors.New()` to create new error messages.
176
177 ### Added
178 - Add new parameter `--subject`.
179 - Added flag `--fast-off` to disable XEP-0484: Fast Authentication Streamlining Tokens (requires go-xmpp >= 0.2.1).
180
181 ## [v0.10.0] 2024-04-13
182 ### Changed
183 - Fixed a race condition in receiving stanzas (requires go-xmpp >= v0.1.5).
184
185 ### Added
186 - Add support for SASL2 and BIND2 (via go-xmpp >= v0.2.0).
187 - Add support for FAST authentication (via go-xmpp >= v0.2.0).
188 - Add a warning when run by the user *root*.
189
190 ## [v0.9.0] 2024-03-28
191 ### Changed
192 - Properly close stream if `Ctrl+C` is pressed in interactive mode.
193 - Properly close stream if `Ctrl+C` is pressed in listening mode.
194 - Print OS, architecture and go version for flag `--version`.
195 - Improve closing of connection (via go-xmpp v0.1.4).
196 - Don't send stanzas that exceed the size limit provided by XEP-0478 (requires go-xmpp >= v0.1.4).
197 - Fixed hanging forever in stream close if the server doesn't reply with a closing stream element (via go-xmpp >= v0.1.4).
198
199 ### Added
200 - New command line flag `ssdp-off` to disable XEP-0474: SASL SCRAM Downgrade Protection (requires go-xmpp >= v0.1.4).
201
202 ## [v0.8.4] 2024-03-09
203 ### Changed
204 - Properly handle lost connection.
205 - Better compatibility with perl sendxmpp config files.
206 - Improve file name for private Ox keys.
207 - Improve fallback behavior if no SRV records are provided.
208 - Remove 100ms sleep before closing the connection. This should be no more needed since go-xmpp commit 9684a8ff690f0d75e284f8845696c5057926d276.
209 - Return an error if there is no answer to an IQ within 60s.
210 - Check for errors after sending the auth message during SCRAM authentication (via go-xmpp v0.1.2).
211
212 ## [v0.8.3] 2024-02-17
213 ### Changed
214 - Use a human readable file name for private Ox keys.
215 - Fix specifying a message via command line flag `-m`.
216
217 ## [v0.8.2] 2024-01-19
218 ### Changed
219 - Fix an issue in look up of SRV records (via xmppsrv v0.2.6). Thx mtp.
220
221 ## [v0.8.1] 2024-01-16
222 ### Added
223 - Add support for `tls-server-end-point` channel binding (via go-xmpp commit 3f0cbac30767faa562ad198ee69f36055f5924bc).
224 - Add experimental support for SOCKS5 proxies using the `HTTP_PROXY` environment variable (requires go-xmpp commit 685570cbd85c31ea3b426bea34dd4af404aac8cf).
225
226 ### Changed
227 - http-upload: Improve error handling.
228
229 ## [v0.8.0] 2024-01-09
230 ### Added
231 - Add new parameter `--scram-mech-pinning`.
232
233 ### Changed
234 - Refuse to upload a file if upload slot doesn't provide https.
235 - Use XEP-0474 instead of SCRAM mechanism pinning to prevent downgrade attacks (requires go-xmpp commit 39f5b80375b6f6f266df37b4a4adcbeb606ffec2).
236
237 ## [v0.7.0] 2023-11-11
238 ### Added
239 - Reply to XEP-0092 software version requests.
240 - Add support for PLUS variants of SCRAM authentication mechanisms (requires go-xmpp commit 4c385a334c606e8bc387f0a3d4d84975802b3984).
241 - Add pinning of last used authentication mechanism if a SCRAM mechanism was used.
242
243 ### Changed
244 - Print every stanza in a new line (requires go-xmpp commit 31c7eb6919b67b18e901dc45a8e5681040ea7f31).
245
246 ## [v0.6.2] 2023-09-29
247 ### Changed
248 - Properly close connection to server if ^C is pressed in interactive mode.
249 - Replace invalid characters by UTF8 replacement char.
250 - Add warning that there is no Ox support for messages of type headline.
251 - Suppress warnings about reading from closed connection if go-sendxmpp closes the connection before exiting.
252 - Remove unnecessary newlines after stanzas.
253 - Fix segfault when authentication fails due to invalid username or password.
254
255 ## Removed
256 - Removed deprecated flag and config option `resource`.
257
258 ## [v0.6.1] 2023-07-25
259 ### Changed
260 - Properly close connection to server.
261
262 ## [v0.6.0] 2023-07-02
263 ### Added
264 - Add support for sending Out of Band Data (OOB).
265 - Add SCRAM-SHA-1, SCRAM-SHA-256 and SCRAM-SHA512 support (via go-xmpp commit bef3e54).
266 - Add support for messages of type headline.
267
268 ### Changed
269 - Print `--help` output to stdout instead of stderr.
270 - Print sent stanzas when `--debug` is used (via go-xmpp commit 9129a110df1b).
271 - Allow JIDs without localpart.
272 - Use single quotes for attributes in stanzas created by github.com/beevik/etree (vial etree v1.1.4).
273 - Fix SRV lookup when the domain has a CNAME (via xmppsrv v0.2.5).
274 - Fall back to directTLS on port 5223 (instead of StartTLS on port 5222) if no SRV records are provided and `-t` is set.
275 - Remove trailing newlines in interactive mode.
276
277 ## [v0.5.6] 2022-11-11
278 ### Added
279 - Add short option `-h` for http-upload.
280 ### Changed
281 - Fix Ox key generation.
282
283 ## [v0.5.5] 2022-10-16
284 ### Changed
285 - Improve interactive mode.
286
287 ## [v0.5.4] 2022-09-30
288 ### Changed
289 - Fix http-upload.
290
291 ## [v0.5.3] 2022-09-29
292 ### Changed
293 - Don't check for empty message when `--listen` is used.
294
295 ## [v0.5.2] 2022-09-29
296 ### Added
297 - Reply to `disco#info` queries.
298 - Send `service-unavailable` errors for all other IQs of type `get` and `set`.
299 - New config option and command line flag `alias` to uncouple MUC nickname/alias from resource.
300
301 ### Changed
302 - Ox: Improve error messages for failed key requests.
303 - Ox: Do not encrypt empty messages.
304 - Check for empty messages.
305 - Always look up CNAME before doing SRV lookups (via xmppsrv v0.2.3).
306 - Detect CNAME loops (max. 5 CNAMEs) (via xmppsrv >= v0.2.4).
307 - Deprecate resource config option and command line flag.
308 - Improve error handling in XML parsing.
309 - Don't connect to the XMPP server if the message is empty.
310
311 ## [v0.5.1] 2022-05-22
312 ### Changed
313 - Improve listening mode for groupchats.
314 - Fix nickname in MUCs if not manually set.
315
316 ## [v0.5.0] 2022-05-05
317 ### Added
318 - Add possibility to delete existing OpenPGP for XMPP nodes.
319
320 ### Changed
321 - Ox: Improve rpad generation.
322 - Rework receiving of stanzas.
323 - Ox: Improve private key import.
324
325 ## [v0.4.0] 2022-04-30
326 ### Added
327 - Experimental support for Ox (OpenPGP for XMPP) encryption.
328
329 ### Changed
330 - Shorter random ID for resource.
331 - Changed to the more flexible "github.com/beevik/etree" instead of encoding/xml for creating and interpreting stanzas.
332 - Changed to use message stamp, if provided, for printing the time stamp of received messages.
333
334 ## [v0.3.0] 2022-03-21
335 ### Added
336 - Added support for joining password protected MUCs.
337
338 ### Changed
339 - Removed invalid code points from input.
340 - Fixed crash when reading a config with wrong syntax.
341 - Fixed crash when a non-existing or non-readable config was supplied by `-f`.
342 - Changed config file location from `~/.config/go-sendxmpp/sendxmpprc` to `~/.config/go-sendxmpp/config`.
343 - Fixed blocking of go-sendxmpp if an IQ reply of type "error" is received (via go-xmpp v0.0.0-20220319135856-e773596ea0b0).
344
345 ## [v0.2.0] 2022-02-12
346 ### Added
347 - Added listening function.
348 - Added flag to configure connection timeout.
349 - Added flag to configure minimum TLS version.
350 - Added flag to show version.
351
352 ### Removed
353 - Removed deprecated option `-x`.
354
355 ## [v0.1.3] 2022-01-29
356 ### Changed
357 - Rename files to use a limited character set (alpha numerical and some extra characters) file name before uploading. Workaround for https://github.com/mattn/go-xmpp/issues/132
358
359 ## [v0.1.2] 2021-11-18
360 ### Changed
361 - Use xml.Marshal to safely build HTTP Upload request.
362 - Use salsa.debian.org/mdosch/xmppsrv for SRV look ups.
363
364 ## [v0.1.1] 2021-09-12
365 ### Changed
366 - Xml-escape file name in http-upload.
367 - Xml-escape mimetype in http-upload.
368
369 ## [v0.1.0] 2021-09-11
370 ### Added
371 - Initial release