LibSQL JWT token support

Aperta
#5,645 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
docker, sql, typescript

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
TypeScript
Stelle
38.2k
Fork
3.1k
Merge medio
1g 15h
PR unite (30g)
72

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Dokploy/dokploy

Tutte le issue di Dokploy/dokploy

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.