LibSQL JWT token support

Đang mở
#5,645 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
68/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
docker, sql, typescript

Hướng nghiên cứu

Start with Dokploy's LibSQL server implementation and compare its authentication configuration with the LibSQL DOCKER.md guidance linked in the issue. Identify how sqld is configured in Docker, then support the documented JWT key path or SQLD_AUTH_JWT_KEY environment variable. Done means LibSQL can be started with JWT authentication and compatible drivers can connect without the basic-auth workaround; the issue does not name specific tests or files.

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

Mô tả

enhancement
What problem will this feature address?

Currently Dokploy's LibSQL server implementation only supports basic auth, some drivers do not support or do not work correctly with this auth method.

Describe the solution you'd like

According to https://github.com/tursodatabase/libsql/blob/a57ad4a2742c1cefb25d3288b33ed25c6570e0d2/docs/DOCKER.md?plain=1#L67

Http auth is a legacy option, and it would be better to either migrate to, or be able to offer JWT based authentication.

As per https://github.com/tursodatabase/libsql/blob/a57ad4a2742c1cefb25d3288b33ed25c6570e0d2/docs/DOCKER.md?plain=1#L72 this can be done by either providing a path to a JWT decoding key, or you can also pass the key directly in the env variable SQLD_AUTH_JWT_KEY.

Describe alternatives you've considered

Some drivers simply refuse to work in "turso"/"libsql" mode without an auth token... this can be worked around by manually creating a sqld docker instance, but then you loose the advantage of it not "just being another docker container in your projects" instead of being an actual "database" project.

Additional context

This was also discussed in the initial implementation PR: https://github.com/Dokploy/dokploy/pull/2601#issuecomment-3311267894

Will you send a PR to implement it?

No

Ngôn ngữ chính
TypeScript
Star
38.3k
Fork
3.2k
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
71

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Dokploy/dokploy

Tất cả issue của Dokploy/dokploy

Issue tương tự

Thêm issue về TypeScript

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.