amq-protocol 2.9.0 → 2.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ChangeLog.md +16 -0
- data/lib/amq/protocol/version.rb +1 -1
- data/lib/amq/settings.rb +4 -4
- data/lib/amq/uri.rb +7 -5
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c9d86e9107594df07b07d144717a895fb0551f09274e7b02dd6d9133837a8b18
|
|
4
|
+
data.tar.gz: e7bfe990d54202a39787157e89fddbca53214a9045514cacf3e9055939171e9b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bb6d4dbd04ebd7526c4c12c13d2ad37e71912b7084b4459fc0694942c6e1cf814c9aa1315546e5b4e180145bb3a54c67e0c237250ddd1772e7fca5085e0eb5c1
|
|
7
|
+
data.tar.gz: 502a34f35b6dc6a6962f614a43bd0fa7a745bc1a46112174e544fbf151b8a6da5ddccbc76181ba5084510f4e6cefceb9121beca04d4b6049bfab6e55cd13399a
|
data/ChangeLog.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
## Changes between 2.9.0 and 2.10.0 (Nov 2, 2026)
|
|
2
|
+
|
|
3
|
+
### TLS Peer Verification Is No Longer Disabled by Default
|
|
4
|
+
|
|
5
|
+
An `amqps://` URI without `?verify=` no longer disables peer verification,
|
|
6
|
+
so clients such as Bunny apply their own default (`verify_peer: true` in Bunny's case).
|
|
7
|
+
Use `?verify=false` to opt out.
|
|
8
|
+
|
|
9
|
+
Brokers with self-signed or private-CA certificates now need `?cacertfile=`
|
|
10
|
+
in the URI.
|
|
11
|
+
|
|
12
|
+
Reported by Matthew Mongeau (Ruby Central).
|
|
13
|
+
|
|
14
|
+
GitHub advisory: [GHSA-499w-x7r4-fw7p](https://github.com/ruby-amqp/amq-protocol/security/advisories/GHSA-499w-x7r4-fw7p)
|
|
15
|
+
|
|
16
|
+
|
|
1
17
|
## Changes between 2.8.0 and 2.9.0 (Aug 26, 2026)
|
|
2
18
|
|
|
3
19
|
### amq-protocol Now Requires Ruby 3.2
|
data/lib/amq/protocol/version.rb
CHANGED
data/lib/amq/settings.rb
CHANGED
|
@@ -33,8 +33,8 @@ module AMQ
|
|
|
33
33
|
|
|
34
34
|
# ssl parameters
|
|
35
35
|
ssl: false,
|
|
36
|
-
verify:
|
|
37
|
-
fail_if_no_peer_cert:
|
|
36
|
+
verify: nil,
|
|
37
|
+
fail_if_no_peer_cert: nil,
|
|
38
38
|
cacertfile: nil,
|
|
39
39
|
certfile: nil,
|
|
40
40
|
keyfile: nil
|
|
@@ -57,8 +57,8 @@ module AMQ
|
|
|
57
57
|
# @option settings [Integer] :connection_timeout (nil) Time in milliseconds to wait while establishing a TCP connection to the server before giving up.
|
|
58
58
|
# @option settings [Fixnum] :channel_max (nil) Maximum number of channels to permit on this connection.
|
|
59
59
|
# @option settings [Array] :auth_mechanism ([]) SASL authentication mechanisms to consider when negotiating a mechanism with the server. This parameter can be specified multiple times to specify multiple mechanisms, e.g. `?auth_mechanism=plain&auth_mechanism=amqplain`.
|
|
60
|
-
# @option settings [Boolean] :verify (
|
|
61
|
-
# @option settings [Boolean] :fail_if_no_peer_cert (
|
|
60
|
+
# @option settings [Boolean] :verify (nil) Controls peer verification mode. nil means "not specified", leaving the default to the client.
|
|
61
|
+
# @option settings [Boolean] :fail_if_no_peer_cert (nil) When set to true, TLS connection will be rejected if client fails to provide a certificate.
|
|
62
62
|
# @option settings [String] :cacertfile (nil) Certificate Authority (CA) certificate file path.
|
|
63
63
|
# @option settings [String] :certfile (nil) Server certificate file path.
|
|
64
64
|
# @option settings [String] :keyfile (nil) Server private key file path.
|
data/lib/amq/uri.rb
CHANGED
|
@@ -17,8 +17,8 @@ module AMQ
|
|
|
17
17
|
connection_timeout: nil,
|
|
18
18
|
channel_max: nil,
|
|
19
19
|
auth_mechanism: [],
|
|
20
|
-
verify:
|
|
21
|
-
fail_if_no_peer_cert:
|
|
20
|
+
verify: nil,
|
|
21
|
+
fail_if_no_peer_cert: nil,
|
|
22
22
|
cacertfile: nil,
|
|
23
23
|
certfile: nil,
|
|
24
24
|
keyfile: nil
|
|
@@ -69,11 +69,13 @@ module AMQ
|
|
|
69
69
|
end
|
|
70
70
|
|
|
71
71
|
%w(verify fail_if_no_peer_cert).each do |tls_option|
|
|
72
|
-
|
|
72
|
+
# absent means "not specified" so that clients can apply their own (secure) defaults
|
|
73
|
+
next if query_params[tls_option].nil?
|
|
74
|
+
|
|
75
|
+
if uri.scheme == "amqp"
|
|
73
76
|
raise ArgumentError, "The option '#{tls_option}' can only be used in URIs that use amqps schema"
|
|
74
|
-
else
|
|
75
|
-
opts[tls_option.to_sym] = as_boolean(query_params[tls_option])
|
|
76
77
|
end
|
|
78
|
+
opts[tls_option.to_sym] = as_boolean(query_params[tls_option])
|
|
77
79
|
end
|
|
78
80
|
end
|
|
79
81
|
|