The mobile client of LibreDB Studio, for Android and iOS. Sign in with your organization's Keycloak account, see the databases Studio offers you, look inside them, and run SQL from your phone.
Studio stays the only place that holds database credentials and talks to the databases. The phone holds a Keycloak session and sends Keycloak's access token to Studio; under LibreDB Platform, Studio shows each person exactly the connections an admin granted them.
Milestones M2 to M5 are done, each checked end to end on the Android emulator against tool/studio-dev.
tool/studio-dev now runs Studio 1.1.0, the first release with the bearer channel the app needs.
M6, the first store release, is in progress: the app is not in a store yet.
The iOS build is still to be checked on macOS (#91, #199).
| Feature | Status |
|---|---|
| Sign-in through Keycloak (PKCE, refresh, logout) | Done |
| Studio API layer | Done |
| Connection list, with favorites, recent connections and a connection check | Done (M2) |
| Object browser, with search and a Redis key browser | Done (M3) |
| Result grid and data preview, with Studio's masking rules | Done (M4) |
| SQL editor, with a write confirmation, cancel, script runs, drafts and history | Done (M5) |
| App lock, screen capture protection, Remove my data and https only for a prod build | Done (M6) |
| Certificate pinning, off by default | Done (M6) |
| Release signing, obfuscation and a tag-driven pipeline to Play internal testing | Done (M6) |
| Store listing and a walkthrough on a physical phone | In progress (M6) |
| Editor power tools and admin on the go | Planned (M7, M8) |
| Grant a connection as an admin | Planned, needs Platform v1 |
The plan, milestone by milestone, is in docs/roadmap.md.
Phone (this app) Keycloak LibreDB Studio
─────────────── ──────── ──────────────
1. Sign in (PKCE) ───────────────▶ realm, client libredb-mobile
◀─────────────── ID token, access token, refresh token
2. API call ── Authorization: Bearer <access token> ─────▶ checks issuer, audience, client, role
◀──────────────────────────────────────────── connections, objects, query results
3. Token expired ── refresh ────▶ new tokens
Studio accepts the token through its bearer channel for native clients (OIDC_BEARER_AUDIENCE), which Studio 1.1.0 is the first release to carry: Studio 1.0.0 does not have it.
docs/architecture.md describes the layers of the app and the Studio contract they follow.
You need FVM, Docker with Compose v2.24.0 or newer, and an Android emulator or an iOS simulator.
fvm install && fvm flutter pub get
# Keycloak and Studio on https://localhost:8443 and https://localhost:9443
docker compose -f tool/studio-dev/docker-compose.yml up -d --wait