Database Config
Database Configs live under a project. Create or select a project first, then add ClickHouse connections for that project’s environments. They are not a free-floating organisation-wide setting.
A Database Config is the ClickHouse connection Shield360 uses as its app store and default telemetry backend: host, port, database, credentials, environment label, and optional query params. Every project needs at least one before traces, dashboards, evals, or vault-backed features can load.
From env vars to Database Config
Section titled “From env vars to Database Config”| Before (deploy-time env) | After (product Database Config) |
|---|---|
INIT_DB_HOST | Host |
INIT_DB_PORT | Port |
INIT_DB_DATABASE | Database |
INIT_DB_USERNAME | Username |
INIT_DB_PASSWORD | Password |
| (often a single shared connection) | Config name + Environment per project |
What still uses env vars
Section titled “What still uses env vars”| Variable | Role today |
|---|---|
INIT_DB_* | Seed only — when the app first starts (or is seeded), Shield360 creates/updates a default Database Config if host and port are set. Changing these later does not automatically rewrite existing configs. |
SQLITE_DATABASE_URL | Location of the Shield360 control-plane SQLite DB (users, projects, Database Config rows, bindings). |
SHIELD360_DB_* / Compose secrets | Credentials for the ClickHouse container itself in Docker/K8s — infrastructure, not the UI connection picker. |
What to change when ClickHouse moves
Section titled “What to change when ClickHouse moves”- Open Organisation → Project → Database configurations (or Connectors → ClickHouse).
- Edit or add a Database Config with the new host/port/database/credentials.
- Mark it active for your user in that project (header Databases switcher).
- Optionally keep
INIT_DB_*in Compose only so new installs still seed a default — do not rely on them for day-2 connection changes.
Add a database configuration
Section titled “Add a database configuration”Configs live on the current project. Shield360’s Organisation → Projects tab states this explicitly: select a project before managing its Database Config. In Connectors, ClickHouse also appears as the built-in connector.

In the header, choose the project (and environment) that should own the configuration.
From Organisation → Projects, use Manage DB Config, or open Connectors → ClickHouse.
Enter Config Name, Environment, Username, Password, Host, Port, Database, and optional Query params.
Save, then mark the config active (list checkbox or header Databases switcher). Connectivity is verified when the config becomes active.
Fields
Section titled “Fields”| Field | Description |
|---|---|
| Config Name | Friendly label (unique per project + environment). |
| Environment | Logical env (for example production, staging) used with signal routing. |
| Host / Port | ClickHouse HTTP endpoint (commonly port 8123). |
| Database | ClickHouse database name Shield360 queries. |
| Username / Password | ClickHouse credentials. Password is masked after save. |
| Query params | Optional URL query string appended to the ClickHouse HTTP client. |
Selection behavior
Section titled “Selection behavior”- Active Database Config is scoped to the current user + project — teammates can select different configs in the same project.
- Switching projects changes the available configs; a config never crosses projects.
- Creating a config seeds default signal bindings (traces, logs, metrics, intelligence) to that ClickHouse for the environment when none exist yet.
Multiple databases and environments
Section titled “Multiple databases and environments”Use several Database Configs when you need separate ClickHouse clusters, retention tiers, or staging vs production without changing organisation. Pair each config’s Environment with connector bindings so telemetry routing stays consistent. See Environments.
How environments replace a single global connection.
Multiple databasesSwitch between ClickHouse configs inside a project.
Signal routingBind traces, logs, and metrics per environment.
Sharing
Section titled “Sharing”A Database Config can be shared with teammates by email with separate edit, delete, and re-share permissions — useful when someone needs the connection without full project admin rights.
Frequently asked questions
Section titled “Frequently asked questions”I changed INIT_DB_HOST in Docker — why is Shield360 still on the old host?
Runtime uses the Database Config row. Update the config in the UI (or create a new one and activate it). INIT_DB_* only seeds on first setup.
Can one Database Config be used by two projects?
No. Create a config in each project (they can point at the same ClickHouse cluster or database name).
Do I need ClickHouse if I only use Tempo + Loki + Prometheus?
Yes. External connectors serve raw telemetry reads. ClickHouse remains the app store for derived intelligence and vault-backed connector secrets.
Is the password visible after save?
No. It is masked in the API and UI; only submitting a new value overwrites it.