WebSvc.SqliteAdmin
1.2.0
dotnet add package WebSvc.SqliteAdmin --version 1.2.0
NuGet\Install-Package WebSvc.SqliteAdmin -Version 1.2.0
<PackageReference Include="WebSvc.SqliteAdmin" Version="1.2.0" />
<PackageVersion Include="WebSvc.SqliteAdmin" Version="1.2.0" />
<PackageReference Include="WebSvc.SqliteAdmin" />
paket add WebSvc.SqliteAdmin --version 1.2.0
#r "nuget: WebSvc.SqliteAdmin, 1.2.0"
#:package WebSvc.SqliteAdmin@1.2.0
#addin nuget:?package=WebSvc.SqliteAdmin&version=1.2.0
#tool nuget:?package=WebSvc.SqliteAdmin&version=1.2.0
WebSvc.SqliteAdmin
Standalone web-based SQLite database admin UI — discover, browse, edit, query, and export SQLite
databases visually. Independent of WebSvc.CrudAdmin: its own package, its own login, its own
route prefix, no compiled dependency on CrudAdmin's assembly.
What it does
- Discovers and registers SQLite database files under one or more configured directories.
- Browses schema and rows per table, with paging, and an optional raw SQL console.
- Exports table data.
- Audit log of every login and administrative action.
- Own session and login (
/sqliteadmin/login), single configured operator credential (Username/PasswordHash, PBKDF2), with brute-force lockout (RateLimiter) on failed attempts. - Signed auto-login handoff (
/sqliteadmin/sso) — a Global Admin already signed into CrudAdmin can click straight into SqliteAdmin without retyping a credential. Global-Admin-only by design: SqliteAdmin has one shared login and no per-tenant/per-database scoping in its own API, so a tenant-scoped handoff token is rejected outright (seeServices/SqliteSsoService.cs) — accepting one would expose every other tenant's SQLite files.
Setup
builder.Services.AddSqliteAdmin(builder.Configuration);
// ...
app.UseSqliteAdmin();
// ...
app.MapSqliteAdmin();
Configuration (appsettings.json, section SqliteAdmin): RootPath (default /sqliteadmin),
DataDirectories (folders to discover .db files in), Username/PasswordHash (or Password
for local dev only), ReadOnly, AllowSqlConsole, AllowExport, MaxQueryRows, SessionHours,
RateLimit (MaxAttempts/WindowMinutes/LockoutMinutes).
To get the auto-login handoff working, also call AddCrudAdmin(...) in the same host —
SqliteAdmin injects whatever IDataProtectionProvider is already registered (CrudAdmin's
AddCrudAdmin() configures one, persisted to disk) rather than configuring its own, so the two
packages share a key ring automatically with zero extra wiring. No compiled dependency on
CrudAdmin either way.
Data persisted
Sessions are held in memory and persisted to sqliteadmin-sessions.json in the first configured
DataDirectories entry (survives app restarts); a password changed via the admin UI is written to
sqliteadmin-password.json alongside it, overriding the configured PasswordHash. Both are
per-deployment state — mount/persist that directory in any container deployment, or a restart
loses active sessions and any password change made through the UI.
Versions
- 1.1.0 — Global-Admin-only signed SSO handoff from CrudAdmin (
SqliteSsoService,/sqliteadmin/sso). - 1.0.1 — fixed a Razor shared-layout name collision that could misrender when installed
alongside
WebSvc.MySqlAdmin/WebSvc.PostgresAdminin the same host.
© Narender Kumar
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Microsoft.Data.Sqlite (>= 8.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.