Skip to main content
helm chart · libredb-studio

LibreDB Studio

Web-based SQL IDE for PostgreSQL, MySQL, MongoDB, Redis and other databases, with an AI query assistant

Latest version
v0.0.1
Chart type
Application
Requires
Helm 3+

Install

Deploy LibreDB Studio with ZopDay. It can provision the cluster in your cloud account for you.

Or add the zop.dev chart repository and install libredb-studio yourself.

helm repo add zopdev https://helm.zop.dev
helm repo update
helm install studio zopdev/libredb-studio --version v0.0.1

LibreDB Studio is an open-source, web-based SQL IDE. It connects to PostgreSQL, MySQL, SQL Server, Oracle, MongoDB, Redis, ClickHouse, Elasticsearch, Kafka and more from one workspace, with an optional AI query assistant.

This chart runs one instance. Its own data (saved connections, queries, history, agent runs) lives in SQLite on a volume. The databases you connect to are not part of this chart.


Prerequisites

  • Kubernetes 1.26+
  • Helm 3+
  • A default StorageClass
  • The Prometheus Operator CRDs, only with alerts.enabled=true

Install

Terminal window
helm repo add zopdev https://helm.zop.dev
helm repo update
helm install studio zopdev/libredb-studio

Open it with a port-forward:

Terminal window
kubectl port-forward svc/studio-libredb-studio 3000:80

Then go to http://localhost:3000 and sign in as admin@libredb.org. The password is generated on install:

Terminal window
kubectl get secret studio-libredb-studio -o jsonpath='{.data.ADMIN_PASSWORD}' | base64 -d; echo

Configuration

KeyDefaultDescription
version0.17.0LibreDB Studio release, the tag of ghcr.io/libredb/libredb-studio.
service.typeClusterIPKubernetes Service type: ClusterIP, NodePort or LoadBalancer.
service.port80Service port.
auth.adminEmailadmin@libredb.orgEmail the admin signs in with.
auth.existingSecret""Secret with JWT_SECRET (32+ characters) and ADMIN_PASSWORD. Empty generates one.
auth.insecureCookiefalseSession cookie without the Secure flag. See below.
diskSize1GiVolume for the SQLite store and agent runs, on the default StorageClass. Fixed after install.
ingress.enabledfalseCreate an Ingress. Needs ingress.host.
ingress.className""IngressClass.
ingress.host""Hostname.
ingress.annotations{}Ingress annotations.
ingress.tlsSecretName""TLS Secret for the host.
alerts.enabledfalsePrometheusRule on kube-state-metrics.
resources100m / 256Mi, limit 512MiPod resources.
env{}Plain environment variables.
extraEnvFrom[]Existing Secrets loaded as environment variables.
nodeSelector, tolerations, affinityemptyPod scheduling.

Variables the chart sets itself (storage, auth, port, bind address) are refused in env, so a typo cannot quietly switch the storage off.

Secrets

The generated Secret holds JWT_SECRET and ADMIN_PASSWORD. JWT_SECRET also seals the passwords of saved connections, so it never changes on upgrade. To choose your own values, create a Secret with those two keys and set auth.existingSecret.

AI assistant

Off until a model is configured. Put the key in a Secret and the rest in env:

Terminal window
kubectl create secret generic studio-llm --from-literal=LLM_API_KEY=sk-...
Terminal window
env:
LLM_PROVIDER: openai
LLM_MODEL: gpt-4o
extraEnvFrom:
- secretName: studio-llm

Providers and every other variable: .env.example.

The session cookie is marked Secure. Over https, including TLS terminated at a load balancer, nothing needs changing. If the browser reaches Studio over plain http on a host other than localhost, the browser drops that cookie and login loops back to /login. Serve TLS, or on a trusted network set auth.insecureCookie=true.


Uninstall

Terminal window
helm uninstall studio

The volume and the generated Secret are kept, so a later install with the same release name picks up the same data and the same passwords. Delete both by hand to remove everything:

Terminal window
kubectl delete pvc,secret studio-libredb-studio

Notes

  • One replica, by design: SQLite on a ReadWriteOnce volume and the agent’s on-disk run ledger both need a single pod. Updates use the Recreate strategy.
  • The pod runs as uid 1001 with a read-only root filesystem and no service account token.
  • /api/db/health backs all three probes. It answers without touching any database.

License

This project is licensed under the LICENSE. LibreDB Studio itself is MIT licensed.

See it fire on your bill.

Connect an account read-only in about five minutes. Findings start with the first scan.

472 rule families across 353 resource types on 22 platforms. Every threshold, metric, and IAM action is documented on these pages before you grant anything.

472 rule families documented
353 resource types covered
read-only default access level
Multi-cloud automation· Production-ready in 30 min· SOC 2 · ISO 27001· 20–60% off the bill, first month· 4 platforms · 1 console· Multi-cloud automation· Production-ready in 30 min· SOC 2 · ISO 27001· 20–60% off the bill, first month· 4 platforms · 1 console·