Feature request: support for SQLite's authorizer (sqlite3_set_authorizer)

Aperta
#1,429 1 commento 2 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
java, sqlite
Ambito
database

Direzione di ricerca

Start by reading the driver's existing busy handler, progress handler, and commit/update listener callback hooks, then trace how those hooks expose SQLite callbacks through JDBC. The issue gives no file or test paths; first locate those entry points and their tests. Done means the JDBC driver exposes SQLite's authorizer callback so callers can control reads and writes, including access through views, subqueries, and triggers.

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

Descrizione

enhancement:SQLite impacts:JNI
Summary

Please add support for SQLite's authorizer callback (sqlite3_set_authorizer) to the JDBC driver. As far as I can tell it isn't currently exposed in any form.

Use case

I'd like to enforce per-table access control on a single connection: deny both reads and writes to a set of privileged tables (e.g. a sys_ prefix) while allowing normal access to the rest. The authorizer is the SQLite mechanism designed for this — it gates reads as well as writes, pre-execution, and applies even when tables are accessed indirectly through views, subqueries, or triggers.

Note

This would follow the same precedent as the existing callback hooks already exposed by the driver (busy handler, progress handler, commit/update listeners).

Version: observed against 3.53.2.

Lingua principale
Java
Stelle
3.3k
Fork
676
Merge medio
1g 15h
PR unite (30g)
18

Preparare l'ambiente

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 xerial/sqlite-jdbc

Tutte le issue di xerial/sqlite-jdbc

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.