changelog

LogTide 0.8 release notes

8 releases in the 0.8 line, newest first. MongoDB storage adapter for @logtide/reservoir, browser and frontend SDKs with source maps and Core Web Vitals, and OTLP metrics dashboards with cross-signal correlation.

v0.8.7 Released Fix

Ingestion Schema, Sigma Log Noise & Admin Bootstrap Fixes

Quick Start cURL example now validates without a manual timestamp, Sigma worker no longer floods logs on empty detection batches, and fresh instances without INITIAL_ADMIN_* env vars auto-promote the first registered user to admin.

  • logSchema now defaults time to current ISO string so minimal payloads and copy-paste examples validate
  • Sigma worker [SigmaDetection] No matches found log gated behind DEBUG_SIGMA=true
  • First registered user is auto-promoted to admin when no INITIAL_ADMIN_* is set and no admin exists

Fixed

  • Quick Start cURL example failed validation: the empty-state code snippet sent {logs: [{level, service, message}]} without a time field, but logSchema required it for the standard ingestion path (only the array-format path ran normalizeLogData). The schema now defaults time to the current ISO string when missing, so copy-paste examples and minimal payloads validate without requiring users to inject a timestamp.
  • Noisy Sigma worker logs: [SigmaDetection] No matches found was emitted at info level on every batch with no detections, flooding worker output in normal operation. The line is now gated behind DEBUG_SIGMA=true so it only appears when explicitly opted in.
  • *No admin user when INITIAL_ADMIN_ not set (#188)**: on a fresh instance without INITIAL_ADMIN_EMAIL/INITIAL_ADMIN_PASSWORD, no usable admin existed and admin settings were unreachable. The bootstrap no longer creates a system fallback user; instead, the first user to register (via /register or external auth provider) is automatically promoted to admin if no admin exists yet.
v0.8.6 Released Fix

ClickHouse Data-Availability & Session Validation Fixes

Fixed ClickHouse traces/metrics data-availability queries failing due to raw epoch date parameters, and resolved stale dashboard sessions after volume resets.

  • ClickHouse traces/metrics data-availability queries now use toDateTime64() clamp instead of raw epoch dates
  • Dashboard validates session token against backend on load and auto-logs out on invalid session

Fixed

  • ClickHouse traces/metrics data-availability always empty: queryTraces and queryMetrics passed raw 0 for epoch dates as DateTime64(3) parameter, which ClickHouse can’t parse; now uses the same toDateTime64() clamp used by log queries
  • Stale session after volume reset: dashboard only checked localStorage for a token without validating it against the backend; now calls /auth/me on load and auto-logs out if the session is invalid
v0.8.5 Released Fix

Security Hardening, SSE Fixes & Memory Leak Cleanup

Five cross-org and auth security fixes, corrected SSE real-time streams, resolved 20+ Svelte memory leaks on navigation, and multiple bug fixes across SIEM, incidents, webhooks, and retention jobs.

  • Cross-org isolation and auth bypass fixes in SIEM and pattern routes
  • SSRF protection for legacy webhook path and disabled-user login blocked
  • SSE real-time events and log stream duplicate emission fixed
  • 20+ Svelte memory leaks from unsubscribed auth stores resolved
  • Docker config sync and dependency security bumps (picomatch, brace-expansion, fast-xml-parser)

Security

  • Cross-org isolation fix in SIEM: linkDetectionEventsToIncident now scopes detection events to the requesting organization, preventing cross-tenant data corruption via crafted API calls
  • Cross-org auth bypass in pattern routes: PUT and DELETE handlers for correlation patterns now verify organization membership before mutating data (same check GET/POST already had)
  • SSRF protection for legacy webhook path: the alert-notification job’s direct fetch() call now validates URLs against private/internal IP ranges, matching the WebhookProvider safeguard
  • Disabled user login blocked: POST /login now checks the disabled flag before creating a session, preventing disabled accounts from obtaining tokens
  • Expired invitation info leak: getInvitationByToken now filters on expires_at > NOW(), preventing enumeration of expired invitation details

Fixed

  • SIEM dashboard timeline crash: time_bucket() call was missing ::interval cast on the parameterized bucket width, causing a PostgreSQL type error that broke the timeline widget for all users
  • SSE real-time events broken: SIEM store and incident detail page read auth token from localStorage('session_token') (wrong key), so the SSE connection never authenticated; now uses getAuthToken() from the shared auth utility
  • SSE log stream duplicate emission: when multiple logs shared the same timestamp, the inclusive from bound caused them to be re-sent on every poll tick; stream now tracks sent log IDs to deduplicate
  • Incident severity auto-grouping wrong: MAX(severity) used PostgreSQL alphabetical ordering (medium > critical), producing incorrect severity on auto-grouped incidents; now uses ordinal ranking
  • Sigma notification failures silent: notification job payload was missing organization_id and project_id, and markAsNotified was called with null historyId; both now handled correctly
  • Incidents pagination total always zero: loadIncidents in the SIEM store never wrote response.total to incidentsTotal
  • Memory leaks on navigation: 20+ Svelte components called authStore.subscribe() without cleanup; all now store the unsubscribe function and call it in onDestroy
  • offset=0 silently dropped: API client functions used if (filters.offset) which is falsy for zero, so page-1 requests never sent the offset parameter; changed to if (filters.offset != null)
  • Search debounce timer leak: searchDebounceTimer was not cleared in onDestroy, causing post-unmount API calls when navigating away mid-search
  • verifyProjectAccess double call: when projectId is an array, the first element was verified twice (once before the loop, once inside it); consolidated into a single loop
  • updateIncident silent field skip: title, severity, and status used truthy checks (&&) instead of !== undefined, inconsistent with description and assigneeId
  • Webhook error messages empty: response.statusText is empty for HTTP/2; error now reads the response body for useful detail
  • Retention job crash on empty orgs: Math.max(...[]) returns -Infinity, cascading to an Invalid Date in the drop_chunks call; early return added when no organizations exist
  • escapeHtml DOM leak: PDF export’s escapeHtml created orphaned DOM nodes in the parent document; replaced with pure string replacement
  • Webhook headers validation missing: CreateChannelDialog silently swallowed invalid JSON in the custom headers field; now validates on submit
  • getIncidentDetections no org scope: query now accepts optional organizationId for defense-in-depth filtering
  • Stale shared package types: dist contained outdated Project and Incident interfaces with phantom fields (slug, statusPageVisibility, source, monitorId); rebuilt from source

Changed

  • Docker config sync: docker-compose.build.yml now matches docker-compose.yml with all environment variables (MongoDB, TRUST_PROXY, FRONTEND_URL, INTERNAL_DSN, DOCKER_CONTAINER), MongoDB service, and fluent-bit-metrics service
  • NODE_ENV for backend: production docker-compose.yml now sets NODE_ENV: production on the backend service (worker and frontend already had it)
  • docker/.env.example: added STORAGE_ENGINE, ClickHouse, and MongoDB configuration sections

Dependencies

  • picomatch 4.0.3 → 4.0.4 (fix ReDoS via extglob quantifiers + POSIX character class method injection)
  • brace-expansion 5.0.2 → 5.0.5 (fix zero-step sequence DoS)
  • fast-xml-parser 5.5.6 → 5.5.9 (fix entity expansion limits bypass)
  • fastify bumped via dependabot
  • kysely bumped via dependabot
v0.8.4 Released Feature

Skeleton Loaders, Helm Auto-Release & Performance Fixes

All dashboard pages now show content-shaped skeleton loaders, automated Helm chart releases on every stable Docker image, and multiple performance and correctness fixes for API endpoints and admin pages.

  • Skeleton loaders and loading overlays on all dashboard pages
  • Automated Helm chart releases triggered on every stable Docker image release
  • API 400 responses now include field-level validation errors
  • Fixed admin pages returning 502 on direct load/reload
  • POST /api/v1/logs/identifiers/batch performance: bypasses storage engine, one PostgreSQL query
  • GET /api/v1/logs/hostnames 8+ second queries fixed with engine-specific indexes and a 6h window cap

Added

  • Skeleton loaders and loading overlays: all dashboard pages now show content-shaped loading states instead of blank spinners
    • New Skeleton, SkeletonTable, and TableLoadingOverlay components (src/lib/components/ui/skeleton/)
    • Directional shimmer animation via @keyframes shimmer using design tokens - works in light and dark mode, disabled for prefers-reduced-motion
    • Initial load (no data yet): animated skeleton rows mirroring the page layout - stat cards on /dashboard, project cards on /dashboard/projects, table rows on search, traces, errors, admin tables, incidents, alerts history, and members
    • Re-fetch (filter change, pagination): existing content dims with a translucent overlay and centered spinner, preventing layout shift and context loss
    • Pages updated: /dashboard, /dashboard/search, /dashboard/projects, /dashboard/alerts, /dashboard/errors, /dashboard/traces, /dashboard/security, /dashboard/security/incidents, /dashboard/admin/organizations, /dashboard/admin/users, /dashboard/admin/projects, /dashboard/settings/members
  • Automated Helm chart releases: every stable Docker image release now triggers a repository_dispatch to logtide-dev/logtide-helm-chart, which auto-bumps appVersion and chart version (patch), commits, and publishes a new chart release to the Helm repo on GitHub Pages

Fixed

  • API 400 responses now include a details array with field-level validation errors instead of just a generic message. Covers both Fastify/AJV schema validation and Zod validation errors (including uncaught ZodError that previously returned 500)
  • Admin pages returned 502 Bad Gateway on direct load/reload: the admin layout ([email protected]) breaks out of the dashboard layout chain, so ssr = false was not inherited; added a dedicated +layout.ts to the admin section
  • /dashboard/admin/projects/[id] crashed with “Something went wrong” due to formatDate being called but not defined (function was named formatTimestamp)
  • POST /api/v1/logs/identifiers/batch slow: the route was calling reservoir.getByIds (hitting ClickHouse/TimescaleDB/MongoDB) only to verify project access, then querying log_identifiers (PostgreSQL) separately. Since log_identifiers already stores log_id → project_id + identifier data, the storage engine call is now bypassed entirely - one PostgreSQL query replaces the N×storage-engine-roundtrips loop. Added bloom filter skip index on id in ClickHouse and a standalone id index in TimescaleDB (migration 032) for getByIds used by findCorrelatedLogs
  • GET /api/v1/logs/hostnames taking 8+ seconds: the 6h window cap was only applied when from was absent - explicit from params (e.g. 24h range from the search page) bypassed it and triggered a full-range metadata scan; cap now clamps any window to 6h max. Added limit: 500 to the distinct call. Per-engine optimizations: ClickHouse adds a hostname materialized column (computed at ingest, eliminates JSONExtractString at query time) and uses it directly in distinct queries; TimescaleDB adds a composite expression index (project_id, (metadata->>'hostname'), time) (migration 032); MongoDB adds a sparse compound index on metadata.hostname. All three engines also now extract the metadata field in a subquery (once per row vs 3×)
v0.8.3 Released Feature

Comprehensive Audit Logging & OIDC Brand Icons

Major expansion of the audit trail system covering all critical platform actions for GDPR/SOC2 compliance, OIDC provider brand icons, and fixes for date formatting localization and data availability routing.

  • Audit logging for log access, auth events, identity management, provider config, settings, and sessions
  • OIDC login page shows brand icons for well-known providers (Google, Microsoft, GitHub, GitLab, Okta, Auth0, Keycloak, Authentik)
  • Backend auto-detects OIDC provider icon from issuer URL
  • Date/number formatting now respects user's browser/system locale
  • Fixed data-availability endpoint for ClickHouse and MongoDB storage engines

Added

  • Comprehensive Audit Logging: major expansion of the audit trail system to cover all critical platform actions for improved compliance (GDPR/SOC2) and security monitoring.
    • Log Access Auditing: every log search, trace view, context lookup, single log detail view, and live stream connection is now recorded with user identity, IP address, and query parameters.
    • External Authentication Auditing: successful logins via OIDC and LDAP providers are now tracked, including new user registration events.
    • Identity Management Auditing: linking and unlinking of external identities (Google, GitHub, LDAP, etc.) to user accounts is now recorded.
    • Authentication Provider Auditing: all administrative actions on auth providers (create, update, delete, reorder) are now fully audited with configuration change summaries.
    • System Settings Auditing: any changes to global platform settings (auth mode, signup status, default users) are now tracked with before/after metadata.
    • Session Auditing: viewing of active session lists and individual session event timelines is now recorded.
    • Audit metadata now includes detailed context like search queries (q), filter parameters, and updated keys for configuration changes.
  • OIDC login page now shows brand icons for well-known providers (Google, Microsoft/Azure, GitHub, GitLab, Okta, Auth0, Keycloak, Authentik); unknown providers fall back to the generic icon
  • Backend auto-detects the provider icon from the issuer URL when creating or updating an OIDC provider, with name/slug matching as fallback for self-hosted setups

Fixed

  • Date and number formatting localization: removed hardcoded locales (it-IT, en-US) from the frontend (SIEM, Search, Admin, etc.) to ensure the application automatically respects the user’s browser/system language settings.
  • GET /api/v1/projects/data-availability returned logs: [] (and incorrect traces/metrics) when STORAGE_ENGINE=clickhouse or mongodb; the endpoint now routes all three checks through the reservoir so they hit the correct backend
v0.8.2 Released Fix

SigmaHQ Auto-Sync, Trace Links & Security Fixes

Daily auto-sync for SigmaHQ community rules, trace navigation from log detail panel, audit logs for alert rules, and security/robustness fixes for ingestion and admin endpoints.

  • SigmaHQ rules auto-sync daily at 2:30 AM
  • View Trace link in log detail panel when trace_id is present
  • Audit log entries for alert rule create/update/delete
  • Admin pagination capped at 200 to prevent oversized allocations
  • NDJSON lines exceeding 1MB rejected with HTTP 400
  • api_key_id removed from log metadata (information disclosure fix)

Added

  • SigmaHQ auto-sync: SigmaHQ community rules now auto-sync daily at 2:30 AM for organizations that have existing community rules enabled.
  • Trace link in log detail panel: The log detail panel now shows a “View Trace →” link that navigates directly to the trace timeline when a trace_id is present in the log.
  • Audit logs for alert rules: Create, update, and delete operations on alert rules now generate audit log entries.

Fixed

  • Admin pagination cap: The limit parameter on admin list endpoints is now capped at 200, preventing oversized result set allocation.
  • NDJSON ingestion size limit: Individual lines exceeding 1 MB in NDJSON payloads are now rejected with HTTP 400 instead of being silently processed.
  • Log metadata information disclosure: api_key_id is no longer stored in log metadata. It was previously injected in v0.8.1 for exception log display but exposed sensitive data; the display now resolves the key name at read time instead.
v0.8.1 Released Breaking

Project Visibility in Errors & Storage Engine Fix

Project name display in error pages, API Key visibility in exception logs, and a fix for data-availability routing when using ClickHouse or MongoDB.

  • All existing API Keys have been invalidated - regenerate your keys
  • Project name shown in Exceptions list and error group detail pages
  • API Key name visible in recent exception logs
  • Data-availability endpoint now respects storage engine selection
  • Search page project filter fixed for empty logs array

Breaking Changes

  • All API Keys have been invalidated: All existing API Keys were deleted as part of this release. You must regenerate your API Keys from the dashboard and update your SDKs and ingestion clients accordingly.

Added

  • Project visibility in Exceptions: The /dashboard/errors list and the individual error group detail pages now explicitly display the name of the project that generated the error.
  • API Key visibility in Exception logs: The recent logs tab within an error group detail page now displays the specific API Key name used to ingest the log. Ingestion now injects the api_key_id into log metadata.

Fixed

  • Project data-availability ignoring storage engine: GET /api/v1/projects/data-availability was always querying the PostgreSQL logs table via Kysely, returning logs: [] when STORAGE_ENGINE was set to clickhouse or mongodb. The logs check now uses reservoir.distinct() which routes to the correct storage backend.
  • Search page showing no projects when logs is empty array: the project filter guard logsProjectIds ? was truthy for [], filtering out all projects. Changed to logsProjectIds?.length so an empty array correctly falls back to showing all projects.
v0.8.0 Released Feature

MongoDB Adapter, Browser SDKs & Metrics Dashboards

MongoDB storage adapter for @logtide/reservoir, browser and frontend SDKs with source maps and Core Web Vitals, and OTLP metrics dashboards with cross-signal correlation.

  • MongoDB storage adapter for @logtide/reservoir
  • Browser/Frontend SDKs with session tracking & source maps
  • Core Web Vitals and network breadcrumbs
  • OTLP Metrics rollups & Golden Signals (P50/P95/P99)
  • Correlation across logs, traces, and metrics

Added

  • Browser & Frontend SDK Enhancements - Sentry-level browser observability across all frontend framework SDKs.
    • @logtide/browser: Dedicated browser SDK with session tracking, Web Vitals, and offline resilience.
    • Source Maps: @logtide/cli for source map uploads and backend un-minification service.
    • Frameworks: Deep integrations for Next.js, Nuxt, SvelteKit, and Angular.
  • Metrics Dashboard & Rollups - Redesigned metrics page with pre-aggregated rollups for TimescaleDB and ClickHouse.
  • MongoDB Storage Adapter - Full MongoDB backend for the @logtide/reservoir storage layer.
  • Golden Signals with Percentiles - P50/P95/P99 percentile aggregation across all storage engines.
  • Smart Project Selectors - Dropdowns now only show projects that have data in the relevant category.

Optimized

  • TimescaleDB Skip-Scan - Recursive CTEs for instant distinct queries on high-cardinality fields.
  • Intelligent Volume Estimation - countEstimate support for instant dashboard loads on high-volume projects.
  • Batch Ingestion - Ordered-false inserts and tuned connection pools for maximum throughput.
  • ClickHouse Projections - Faster query execution for common search patterns.

Fixed

  • Internal Logging Plugin - Fixed DSN passing to @logtide/fastify for self-monitoring.
  • Backend Self-Monitoring - Improved DSN construction and verbose startup logging.
  • Docker Compose - Fixed missing environment variables and worker health check race conditions.
  • Admin Dashboard - Fixed missing metrics series in platform activity chart.