fix: Auth fails when client IP is empty on Postgres #33

Closed
opened 2025-07-08 08:38:04 -04:00 by AtHeartEngineer · 0 comments

Originally created by @ItalyPaleAle on 6/28/2025

Fixes #686

Auth fails with Postgres when the client IP is empty, for example when proxies connect to Pocket ID via a Unix Domain Socket (UDS).

This was due to the fact that in Postgres we store IPs with the INET column type, which doesn't accept empty values.

The fix involves making the field nullabe.

Additionally, improved error handling throughout the process.

*Originally created by @ItalyPaleAle on 6/28/2025* Fixes #686 Auth fails with Postgres when the client IP is empty, for example when proxies connect to Pocket ID via a Unix Domain Socket (UDS). This was due to the fact that in Postgres we store IPs with the INET column type, which doesn't accept empty values. The fix involves making the field nullabe. Additionally, improved error handling throughout the process.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pocket-id#33