wulf-pulse/migrations
lorentz ed6c4a8b65 feat: Add SentinelOne integration
- Add SentinelOne API client (lib/services/sentinelone-client.ts)
  - Paginated fetching for sites, agents, threats
  - JWT token auth via S1_API_URL / S1_API_TOKEN env vars

- Add SentinelOne sync service (lib/services/sentinelone-sync-service.ts)
  - Full sync: sites, agents, threats into s1_* tables
  - Sync history tracking with per-entity results

- Add DB migration 038: s1_sites, s1_agents, s1_threats,
  s1_company_mappings, s1_sync_history tables

- Add API routes:
  - POST/GET /api/sentinelone/sync
  - GET/POST/DELETE /api/sentinelone/company-mappings
  - GET /api/sentinelone/coverage (fixed Cartesian product bug)

- Add UI pages:
  - /admin/sync/sentinelone — sync admin with history + stats
  - /sentinelone/coverage — AV coverage report per site
  - /sentinelone/mappings — map S1 sites to Autotask companies

- Wire SentinelOne into admin sync overview card grid
- Add SentinelOne Sync to app navigation
- Fix docker-compose: remove explicit S1 env var entries that
  were overwriting env_file values with empty strings
2026-02-27 05:31:31 -05:00
..
001_initial_schema.sql Add comprehensive admin features and multi-system integration 2025-11-19 14:18:16 -05:00
002_add_indexes.sql Add comprehensive admin features and multi-system integration 2025-11-19 14:18:16 -05:00
002_relax_foreign_keys.sql Add comprehensive admin features and multi-system integration 2025-11-19 14:18:16 -05:00
003_fix_resource_type.sql Add comprehensive admin features and multi-system integration 2025-11-19 14:18:16 -05:00
004_fix_contacts_company_id.sql Add comprehensive admin features and multi-system integration 2025-11-19 14:18:16 -05:00
004_webhook_support.sql feat: add IP address logging to webhooks for whitelisting 2026-01-24 17:28:56 -05:00
005_add_webhook_ip_logging.sql feat: add IP address logging to webhooks for whitelisting 2026-01-24 17:28:56 -05:00
005_fix_tickets_company_id.sql Add comprehensive admin features and multi-system integration 2025-11-19 14:18:16 -05:00
006_add_time_entries_table.sql Add comprehensive admin features and multi-system integration 2025-11-19 14:18:16 -05:00
007_remove_time_entries_foreign_keys.sql Add comprehensive admin features and multi-system integration 2025-11-19 14:18:16 -05:00
008_relax_tickets_resource_constraints.sql Add comprehensive admin features and multi-system integration 2025-11-19 14:18:16 -05:00
009_create_auvik_tenant_mappings.sql Add comprehensive admin features and multi-system integration 2025-11-19 14:18:16 -05:00
009_relax_configuration_items_constraints.sql Add comprehensive admin features and multi-system integration 2025-11-19 14:18:16 -05:00
009_restore_deleted_tickets.sql Add comprehensive admin features and multi-system integration 2025-11-19 14:18:16 -05:00
010_create_rmm_site_mappings.sql Add comprehensive admin features and multi-system integration 2025-11-19 14:18:16 -05:00
011_create_addigy_org_mappings.sql Add comprehensive admin features and multi-system integration 2025-11-19 14:18:16 -05:00
012_create_auth_tables.sql feat: add authentication, user management, and admin features 2026-01-31 12:43:14 -05:00
013_create_role_tables.sql feat: add authentication, user management, and admin features 2026-01-31 12:43:14 -05:00
014_create_admin_settings.sql feat: add authentication, user management, and admin features 2026-01-31 12:43:14 -05:00
015_expand_resources_fields.sql feat: expand Resources entity to include all Autotask API fields 2026-01-26 14:28:51 -05:00
016_add_missing_tickets_fields.sql feat: add missing Tickets entity fields from Autotask API 2026-01-26 15:26:34 -05:00
017_create_auvik_tenants.sql feat: create auvik_tenants and rmm_sites tables for accurate dashboard stats 2026-02-02 23:01:54 -05:00
018_create_rmm_sites.sql feat: create auvik_tenants and rmm_sites tables for accurate dashboard stats 2026-02-02 23:01:54 -05:00
019_create_kiosk_settings.sql feat: add kiosk settings UI and co-managed client filtering 2026-02-03 08:32:42 -05:00
020_add_company_classification.sql feat: add classification-based filtering and fix company name display 2026-02-03 09:17:07 -05:00
021_create_company_classifications_table.sql feat: add classification icons sync from Autotask 2026-02-03 20:48:08 -05:00
022_populate_classifications.sql fix: pre-populate classifications instead of syncing from Autotask API 2026-02-03 20:54:35 -05:00
023_create_veeam_tables.sql feat: Veeam VSPC backup integration - sync, compliance, UI 2026-02-11 21:04:28 -05:00
024_add_backup_type_udf.sql feat: Veeam VSPC backup integration - sync, compliance, UI 2026-02-11 21:04:28 -05:00
025_create_ticket_notes.sql feat: Autotask webhook integration, TicketNotes, Datto RMM, workflow engine, Veeam agents/alarms, AI triage, misc improvements 2026-02-20 10:28:15 -05:00
026_create_queues_table.sql feat: Autotask webhook integration, TicketNotes, Datto RMM, workflow engine, Veeam agents/alarms, AI triage, misc improvements 2026-02-20 10:28:15 -05:00
027_create_datto_rmm_tables.sql feat: Autotask webhook integration, TicketNotes, Datto RMM, workflow engine, Veeam agents/alarms, AI triage, misc improvements 2026-02-20 10:28:15 -05:00
028_create_device_lifecycle_policies.sql feat: Autotask webhook integration, TicketNotes, Datto RMM, workflow engine, Veeam agents/alarms, AI triage, misc improvements 2026-02-20 10:28:15 -05:00
028_create_veeam_agents_alarms.sql feat: Autotask webhook integration, TicketNotes, Datto RMM, workflow engine, Veeam agents/alarms, AI triage, misc improvements 2026-02-20 10:28:15 -05:00
029_create_priorities_ticket_categories.sql feat: Autotask webhook integration, TicketNotes, Datto RMM, workflow engine, Veeam agents/alarms, AI triage, misc improvements 2026-02-20 10:28:15 -05:00
030_create_workflow_engine_tables.sql feat: Autotask webhook integration, TicketNotes, Datto RMM, workflow engine, Veeam agents/alarms, AI triage, misc improvements 2026-02-20 10:28:15 -05:00
038_create_sentinelone_tables.sql feat: Add SentinelOne integration 2026-02-27 05:31:31 -05:00