Skip to content

Conversation

@ansd
Copy link
Member

@ansd ansd commented Dec 19, 2024

Why?

To introduce AMQP over WebSocket, we will add gun to the Erlang AMQP
1.0 client. We want to add the latest version of gun for this new
feature. Since rabbitmq_peer_discovery_etcd depends on the outdated
eetcd 0.3.6 which in turn depends on the outdated gun 1.3.3, this commit
first upgrades eetcd and gun.

How?

See https://github.com/zhongwencool/eetcd?tab=readme-ov-file#migration-from-eetcd-03x-to-04x

Breaking Changes

This commit causes the following breaking change:
rabbitmq.conf settings

  • cluster_formation.etcd.ssl_options.fail_if_no_peer_cert
  • cluster_formation.etcd.ssl_options.dh
  • cluster_formation.etcd.ssl_options.dhfile

are unsupported because they are not valid ssl:tls_client_option().

See erlang/otp#7497 (comment)

@ansd ansd added this to the 4.1.0 milestone Dec 19, 2024
@mergify mergify bot added the make label Dec 19, 2024
@ansd ansd force-pushed the upgrade-gun branch 2 times, most recently from 7f213ef to ece49fc Compare December 19, 2024 12:52
 ## Why?

To introduce AMQP over WebSocket, we will add gun to the Erlang AMQP
1.0 client. We want to add the latest version of gun for this new
feature. Since rabbitmq_peer_discovery_etcd depends on the outdated
eetcd 0.3.6 which in turn depends on the outdated gun 1.3.3, this commit
first upgrades eetcd and gun.

 ## How?
See https://github.com/zhongwencool/eetcd?tab=readme-ov-file#migration-from-eetcd-03x-to-04x

 ## Breaking Changes

This commit causes the following breaking change:
`rabbitmq.conf` settings
* `cluster_formation.etcd.ssl_options.fail_if_no_peer_cert`
* `cluster_formation.etcd.ssl_options.dh`
* `cluster_formation.etcd.ssl_options.dhfile`

are unsupported because they are not valid `ssl:tls_client_option()`.

See erlang/otp#7497 (comment)
@ansd ansd marked this pull request as ready for review December 19, 2024 14:37
Copy link
Contributor

@lhoguin lhoguin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks fine BUT it would be much better if it had TLS tests to make sure.

@ansd ansd merged commit 143f4db into main Dec 19, 2024
271 checks passed
@ansd ansd deleted the upgrade-gun branch December 19, 2024 15:27
@ansd ansd mentioned this pull request Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants