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

feat: support config AddressResolverGroup in r2dbc-mysql #279

Merged
merged 8 commits into from
Jul 25, 2024

Conversation

hezhangjian
Copy link

Motivation:
Currently,AddressResolverGroup can't be configured. The DnsResolver default start address listen to "0.0.0.0", which may have some security risks.
also see netty/netty#11061

Modification:
Add AddressResolverGroup in Client's connect method

@hezhangjian
Copy link
Author

@jchrys PTAL, thanks :)

@jchrys jchrys added the enhancement New feature or request label Jul 25, 2024
@jchrys jchrys added this to the 1.2.0 milestone Jul 25, 2024
@hezhangjian
Copy link
Author

@jchrys Thank you for the reminder. I have fixed. However, I am still undecided on whether to name it resolver or resolverGroup. Do you have any preference?

@jchrys
Copy link
Collaborator

jchrys commented Jul 25, 2024

@jchrys Thank you for the reminder. I have fixed. However, I am still undecided on whether to name it resolver or resolverGroup. Do you have any preference?

Consider Reactor netty refers to it as resolver, I think sticking with resolver would be fine. :D

Copy link
Collaborator

@jchrys jchrys left a comment

Choose a reason for hiding this comment

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

Just one last detail: I believe we have one final step to complete. Could you please check the following?
MySqlConnectionConfiguration#equals
MySqlConnectionConfiguration#hashCode
MySqlConnectionConfiguration#toString

MySqlConnectionConfiguration#setup(ConnectionFactoryOptions)
Thank you!

hezhangjian and others added 3 commits July 25, 2024 16:21
…onConfiguration.java

Co-authored-by: jchrys <[email protected]>
Signed-off-by: ZhangJian He <[email protected]>
…hashCode,MySqlConnectionConfiguration#toString,MySqlConnectionConfigurationProvider#setup(ConnectionFactoryOptions)

Signed-off-by: ZhangJian He <[email protected]>
Signed-off-by: ZhangJian He <[email protected]>
@hezhangjian
Copy link
Author

@jchrys Thanks for your effort. PTAL again

Co-authored-by: jchrys <[email protected]>
Signed-off-by: ZhangJian He <[email protected]>
…onFactoryProvider.java

Co-authored-by: jchrys <[email protected]>
Signed-off-by: ZhangJian He <[email protected]>
hezhangjian and others added 2 commits July 25, 2024 19:23
…onConfiguration.java

Co-authored-by: jchrys <[email protected]>
Signed-off-by: ZhangJian He <[email protected]>
Copy link
Collaborator

@jchrys jchrys left a comment

Choose a reason for hiding this comment

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

@shoothzj
Thanks a lot! :D

@jchrys jchrys merged commit e37cbdd into asyncer-io:trunk Jul 25, 2024
26 checks passed
@hezhangjian hezhangjian deleted the support-resovler branch July 25, 2024 11:50
@jchrys jchrys modified the milestones: Next, 1.2.0 Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants