Skip to content

Hyperdrive local does not seem to support SSL #10124

Closed

Description

@Mael-Abgrall

What versions & operating system are you using?

wrangler 4.26.1

Please provide a link to a minimal reproduction

No response

Describe the Bug

Hyperdrive does not seem to support SSL, when connecting to a public database.

I'm using Neon, Drizzle and the URL postgresql://user:pass@host.aws.neon.tech/neondb?sslmode=require&channel_binding=require

However, whenever I try to run a query, the code throws error: connection is insecure (try using sslmode=require)

I did try:

  • Set WRANGLER_HYPERDRIVE_LOCAL_CONNECTION_STRING_HYPERDRIVE in .env -> Doesn't work
  • Set localConnectionString in the json config -> Doesn't work

Please provide any relevant error logs

No response

Activity

  1. added theissue type on Jul 29, 2025
  2. drKreshel commented on Aug 13, 2025

    @drKreshel

    This makes hyperdrive unusable for me, because developing with --remote flag is not doable, lot of ping and no local debugger. It should be the first thing they at Neon website when using Hyperdrive. The have it at the very end as if not important "oh btw you cannot work locally if you use it"

  3. DGuang21 commented on Sep 8, 2025

    @DGuang21

    This issue makes it impossible for the local environment to match the server's environment exactly, which is unfortunate.

  4. added
    internalRequires support from the Cloudflare Platform
    product:hyperdriveRelating to Cloudflare Hyperdrive: https://developers.cloudflare.com/hyperdrive/
    on Sep 29, 2025
  5. edmundhung commented on Sep 29, 2025

    @edmundhung
    Member

    I have shared it with the internal team and track it in SQC-645.

  6. thomasgauvin commented on Sep 29, 2025

    @thomasgauvin
    Contributor

    We're aware of this issue and are considering approaches to make it possible to connect to a remote database. Note that the earliest timeline is in 2026 due to changes needed in workerd and Workers runtime

  7. moved this from Untriaged to Other in workers-sdkon Sep 29, 2025
  8. Mael-Abgrall commented on Sep 29, 2025

    @Mael-Abgrall
    Author

    for anyone still on the issue, so far the "fix" has been to use a conditional variable, on dev/test mode I'm using a direct connection to the postgres instance, eg:

    const url = env.isLocal ? env.DB_URL : env.HYPERDRIVE.connectionString
    const client = postgres(url, {
      fetch_types: false,
      max: 2,
    });
  9. changed the issue type fromtoon Sep 30, 2025
  10. locked and limited conversation to collaborators on Sep 30, 2025
  11. converted this issue into a discussion #10830 on Sep 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    internalRequires support from the Cloudflare Platformproduct:hyperdriveRelating to Cloudflare Hyperdrive: https://developers.cloudflare.com/hyperdrive/

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions