powersync-ja / powersync-service

Other
123 stars 9 forks source link

feat: Postgres connection port (de)restrictions #116

Closed stevensJourney closed 3 days ago

stevensJourney commented 3 days ago

Overview

The currently restrict Postgres connections to ports in the range of [1024, 49151].

Certain local Postgres services, such as Supabase expose Postgres on port 54322 by default. This PR removes the restriction for connecting to "Ephemeral" ports (ports > 49151). This allows for easier local development with Supabase and potentially other databases.

The check for "Privileged" ports is still maintained.

changeset-bot[bot] commented 3 days ago

🦋 Changeset detected

Latest commit: f607509edf77359518362ea95ef6c82ddba573f2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages | Name | Type | | ------------------------ | ----- | | @powersync/service-core | Patch | | @powersync/service-image | Patch | | test-client | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR