Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(gw): use more conservative set of DTLS options #12180

Merged
merged 9 commits into from Dec 20, 2023

Conversation

keynslug
Copy link
Contributor

@keynslug keynslug commented Dec 15, 2023

Release version: v5.4

Summary

Exclude some options from the gateway listener DTLS options that have been breaking listener startup, even while being undefined in the config.

PR Checklist

Please convert it to a draft if any of the following conditions are not met. Reviewers may skip over until all the items are checked:

  • Added tests for the changes
  • Added property-based tests for code which performs user input validation
  • Changed lines covered in coverage report
  • Change log has been added to changes/(ce|ee)/(feat|perf|fix|breaking)-<PR-id>.en.md files
  • For internal contributor: there is a jira ticket to track this change
  • Created PR to emqx-docs if documentation update is required, or link to a follow-up jira ticket
  • Schema changes are backward compatible

Copy link
Collaborator

@id id left a comment

Choose a reason for hiding this comment

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

Add a changelog entry?

id
id previously approved these changes Dec 18, 2023
HJianBo
HJianBo previously approved these changes Dec 19, 2023
Currently, only certificate issuing and related utilities are there.
Thus ensuring full backward compatibility. Unsupported options
(`gc_after_handshake`, `ocsp`) are silently ignored now. Also make
sure that UDP configuration are part of DTLS option set, as expected
by `esockd`.
Comment on lines +21 to +24
-export([gen_cert/1]).
-export([write_cert/2]).
-export([write_cert/3]).
-export([write_pem/2]).
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Too late I found out about emqx_common_test_helpers:gen_ca/2 and friends. 😓

Also separate DTLS related MQTT-SN test config, so that it doesn't
leak into this test suite.
@keynslug keynslug merged commit f39af14 into emqx:release-54 Dec 20, 2023
162 checks passed
@keynslug keynslug deleted the fix/gw-dtls-opts branch December 20, 2023 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants