Skip to content

Configuring LeakLens

LeakLens can be configured through the web UI or by editing config/server_config.yml directly.

Navigate to Settings → Server Settings. Changes are written live to server_config.yml and take effect immediately.

SettingDescription
Server NameDisplay name shown in the UI header
Business IDIdentifier for your organisation (informational)
LocationPhysical or logical location label (informational)
Database IPHost of your MariaDB instance
Database PortMariaDB port (default 3306)
Backend DBDatabase name used for users and auth data
Breaches DBDatabase name used for breach data

The Update Record Counts button on Server Settings triggers a background scan of every breach table and updates the stored record counts. A progress bar shows each table as it is processed. Use this after bulk-importing data outside of the UI.

Navigate to Settings → Account Settings.

SettingDescription
AvatarUpload a profile image (JPEG or PNG)
UsernameChange your display name
PasswordChange your login password

You can create long-lived API tokens to access the REST API without a session cookie.

  1. Click Create Token and give it a name and expiry duration.
  2. Copy the token immediately — it is shown only once.
  3. Pass the token in the api-key request header for all API calls.

Tokens can be revoked at any time from the Account Settings page.

The config file is the source of truth for all runtime settings:

database:
host: 192.168.1.10
port: 3306
user: LeakLens
password: <generated>
breaches_db: breaches
backend_db: backend
api:
name: LeakLens
business_id: myorg
location: datacenter-1
version: 1.6.0
containers_to_monitor:
- nginx_server
- fastapi_server
- mariadb_server

containers_to_monitor controls which Docker container names appear on the dashboard stats panel. Remove mariadb_server from this list if you are using BYODB mode.