cloudflare / cloudflare/developer-platform

🐛 BUG: SECP521R1 not supported for Hyperdrive

Đang mở
#7 5 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
1
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Which Cloudflare product(s) does this pertain to?

Other

### What versions are you using?

4.4.0 [Wrangler], 16.8 [PostgreSQL]

### What operating system and version are you using?

Windows 10 21H2 (Wrangler) | Alpine 14.2.0 (PostgreSQL)

### Please provide a link to a minimal reproduction

_No response_

### Describe the Bug

SSL support for databases has recently been added to Coolify, but it seems like the signature algorithm provided by CloudFlare Hyperdrive doesn't work with a PostgreSQL docker image with SSL configured by Coolify; Coolify signs the certificates using SECP521R1.

## Steps to reproduce the error
1. Create a PostgreSQL v16 Database on Coolify; uses `postgres:16-alpine` by default
2. Enable SSL and set TLS mode to `require`
3. Start service & proxy database to make it publicly available
4. Copy the public URL and paste onto Wrangler
5. Review the logs on Wrangler and PostgreSQL container

```sh
# wrangler logs
Failed to connect to the provided database: Internal error. [code: 2015]

# postgres16-alpine logs
2025-03-25 19:31:22.565 UTC [872] LOG: could not accept SSL connection: no suitable signature algorithm
```
---

This issue seems to also affect other Docker images such as `postgres:16-bookworm`, and `postgres-15-bookworm`. I haven't bothered testing any other images yet, but it seems like the issues are consistent regardless of the image.

As stated, I assume that this error comes from CF as SECP521R1 may not be supported by CloudFlare. In case if it helps, find below the implementation here: coollabsio/coolify#5027

### Please provide any relevant error logs

_No response_

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện kết nối qua Hyperdrive/Wrangler bằng thiết lập PostgreSQL 16 Alpine và chế độ TLS `require`, sau đó so sánh các log của Wrangler và PostgreSQL. Đọc triển khai Coolify được liên kết và xác minh liệu khả năng tương thích với SECP521R1 có phải là ranh giới đang gây lỗi hay không; được xem là hoàn tất khi kết nối được báo cáo thành công hoặc sự không tương thích được xác nhận rõ ràng và được bao phủ bởi một kiểm tra hồi quy phù hợp.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
docker, postgresql
Lĩnh vực
cloud, databases, security
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.