Skip to content

Remove sqlx features due to a bug in rustls/webpki failing to resolve IP addresses  #2391

@aadityadhruv

Description

@aadityadhruv

Description

Currently sqlx in db_pools uses runtime-tokio-rustls as its feature. This has a bug which results in a InvalidDNSNameError for raw IP addresses as a part of the url. This is being fixed, however, it would be nice to let the user choose their TLS back-end.

To Reproduce

Setting the database url to a raw IP address as follows:

mysql://foo:bar@<IP>:3306/baz

Expected Behavior

The IP shouldn't need any DNS resolution.

Environment:

  • OS Distribution and Kernel: [Fedora 36, Kernel 6.0.5]
  • Rocket Version: [0.5.0-rc.2]

Additional Context

A simple fix is to remove the feature from sqlx, and let the user choose the backend.

Metadata

Metadata

Assignees

No one assigned

    Labels

    deficiencySomething doesn't work as well as it couldupstreamAn unresolvable issue: an upstream dependency bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions