Commit Graph
67 Commits
Author SHA1 Message Date
ypratama ab5bb1fd11 Fix: add pruneOutOfSubnetData() to auto-remove contaminated device/flow records after every collection cycle 2026-09-09 17:17:48 +07:00
ypratama b6bd0f42f6 Fix: override agents/list API in frontend to use protected_label from MongoDB directly 2026-09-09 16:10:34 +07:00
ypratama 0b824f8cd2 Fix: prioritize protected_label in agents/list API to prevent proxy overwrite bug on devices and view-as dropdown 2026-09-09 13:57:52 +07:00
ypratama bb429ba566 Fix: force SUPER_ADMIN site selector to all to prevent being stuck on tenant site 2026-09-09 13:24:11 +07:00
ypratama 77708fa8e6 Fix: online threshold 15m->1h, offline selalu tampilkan tanggal+jam lengkap 2026-09-09 10:12:05 +07:00
ypratama 773e654616 Fix: Add protected_label field immune to Proxy overwrites - UI always reads protected_label first 2026-09-08 17:35:43 +07:00
ypratama 90817cb2f8 Fix: Proxy NEVER overwrites custom label - two-step upsert approach 2026-09-08 17:25:11 +07:00
ypratama 0dcedf5d76 Fix: strictly filter flows by agent UUID to prevent org-level data pollution 2026-09-07 13:29:20 +07:00
ypratama 068435ffb9 Fix: strictly use active flows for online status (ignore dummy summaries) 2026-09-07 11:43:24 +07:00
ypratama f7ebd7a5c5 Feat: auto-cleanup duplicate agents on label edit 2026-09-07 11:26:41 +07:00
ypratama 6a23577b08 Fix: default uptime to 0 instead of 100 for inactive agents 2026-09-07 10:52:34 +07:00
ypratama f0d9a55a56 Fix: strict 15m online threshold for agents 2026-09-04 16:35:42 +07:00
ypratama 64f77187d8 Feat: Auto cleanup old devices/flows when Subnet Config is updated 2026-09-04 11:01:40 +07:00
ypratama 8a73d266d8 Fix: Prioritize custom label over dynamic account label on Map pins 2026-09-04 08:53:20 +07:00
ypratama bc30a8a0e4 Fix: Update Dockerfile.bun paths to be relative in backend/ 2026-09-04 08:02:12 +07:00
ypratama 6e891392a7 Fix: Separate devices by agent_uuid to prevent IP mixing across agents 2026-09-02 19:01:27 +07:00
ypratama 7bc28a6a37 Fix: Prioritize custom hardware label over account name in UI 2026-09-02 18:56:55 +07:00
ypratama a4dc705a3d Fix: Add missing IP and MAC filtering logic in Devices page 2026-09-02 18:50:06 +07:00
ypratama 1bb67e99dd Fix: Add aliases for API Key variables in Proxy 2026-09-02 18:28:48 +07:00
ypratama f4ec563a34 Fix: Bind proxy to 0.0.0.0 and fix Docker healthcheck ipv6 localhost bug causing crash loop 2026-09-02 18:12:16 +07:00
ypratama ac48bf4585 UI: Replace CARTO basemaps with OpenStreetMap to remove API KEY REQUIRED warning 2026-09-02 17:48:27 +07:00
ypratama 3c2dc831a1 UI: Remove No account yet badge from Agents table 2026-09-02 17:43:06 +07:00
ypratama 973ac7d264 UI: Remove (Total Bandwidth) text from Top Apps title 2026-09-02 17:33:36 +07:00
ypratama e4a484df45 Fix: Add type guard for possibly undefined mongoose connection db 2026-09-02 17:24:08 +07:00
ypratama 781826d934 Fix: Remove conflicting updateAgent and deleteAgent imports 2026-09-02 17:19:00 +07:00
ypratama 19197ea9fa Feat: Add Edit Label button to Agent Actions 2026-09-02 17:10:43 +07:00
ypratama 3524588e42 Feat: Add support for updating and deleting agents in local MongoDB 2026-09-02 16:57:49 +07:00
ypratama e7c9870e59 Fix: Properly handle global site_uuid and dynamic env for BACKONE_SITE_UUIDS 2026-09-02 16:48:55 +07:00
ypratama 8dd8432c29 Debug: Force Mongo DB connection bypassing sk_db_ check 2026-09-02 16:28:22 +07:00
ypratama 919e83331a Debug: Brute force V5 override 2026-09-02 16:25:07 +07:00
ypratama 7525375de9 Debug: Hardcode site UUID fallback to fix agents returning 4 and change text to V4 2026-09-02 16:13:12 +07:00
ypratama 56c208f7c9 Fix: Prevent Next.js env inlining and handle test-site in agentsMongo 2026-09-02 15:39:57 +07:00
ypratama 997df2bc6b Debug: Update Total Agents text to V3 to verify deployment 2026-09-02 15:20:36 +07:00
ypratama 03c9ce5482 Clean: Remove legacy test scripts and directories to improve security and repository cleanliness 2026-09-02 15:08:57 +07:00
ypratama 996f685065 Fix: Server action getAgents now correctly falls back to environment KNOWN_SITES when SITE_UUID is all 2026-09-02 13:55:23 +07:00
ypratama f61270ddc5 Clean: Remove temporary HTTP logger that was causing ENOENT in production 2026-09-02 12:12:48 +07:00
ypratama e28bfbb022 Fix: Fallback to singular BACKONE_SITE_UUID env var if plural is missing 2026-09-02 12:06:01 +07:00
ypratama 763970c774 Revert: Keep old INTERNAL_API_URL default to respect Swarm environment variable overrides 2026-09-02 11:53:14 +07:00
ypratama b34ea00bcd Fix: Update INTERNAL_API_URL to match compose service name, and fix KNOWN_SITES filtering for all agents 2026-09-02 11:50:09 +07:00
ypratama 68c176f972 Fix: Change localhost to 127.0.0.1 in backend healthchecks to bypass Node IPv6 resolution issue with 0.0.0.0 bind 2026-09-02 11:21:26 +07:00
ypratama d492adb1ff Feat: Auto-resolve backend API base URL so Swarm redeploys no longer break proxied requests (fetch failed) 2026-09-02 11:15:16 +07:00
ypratama 856acdb6da Fix: Unknown site_uuid no longer filters all data out, so overview dashboard always shows charts 2026-09-02 09:23:38 +07:00
ypratama 450a8a5daa Fix: Bind backend to 0.0.0.0 in Docker to fix healthcheck failures and frontend proxy connection refused errors 2026-09-01 11:27:59 +07:00
ypratama 35f1838c4e Fix: Combro resolved remaining bugs in summary.js and agents.js where site_uuid all was mishandled causing empty overview dashboards 2026-09-01 11:10:33 +07:00
ypratama cd93a40104 Fix: Prevent backend from returning empty data when site_uuid is all 2026-09-01 09:40:51 +07:00
ypratama 350234d379 Fix: Re-add NETIFY to BACKONE variable mapping in compose file so Portainer pulls work with old images 2026-09-01 09:17:03 +07:00
ypratama 0afcc07642 Fix: Revert MongoDB connection logic to respect API key prefix to avoid network isolation issues in Swarm deployments 2026-08-28 17:04:33 +07:00
ypratama 0d4802f14a Fix: Prevent getAgents Server Action from throwing to avoid Next.js Server Component render crashes 2026-08-28 16:59:18 +07:00
ypratama 2be8b08074 Feat: Natively support NETIFY environment variables and improve MongoDB detection based on URI presence 2026-08-28 16:43:00 +07:00
ypratama eedaa588b5 Fix: Add JWT_SECRET to frontend environment to fix authentication in Server Actions 2026-08-28 15:53:08 +07:00
ypratama 793624a330 Fix: Pass required backend environment variables to frontend service in docker-compose.prod.yml to prevent Server Components crash 2026-08-28 15:41:46 +07:00
ypratama beb80579f0 Fix: Ignore ALL .env files in Docker build to guarantee clean image 2026-08-28 11:50:39 +07:00
ypratama 7bfd1d831c Fix: Remove hardcoded rewrites in next.config.ts that hijacked API routes 2026-08-28 11:27:38 +07:00
ypratama 9c88561266 Fix: Add .dockerignore to prevent .env.local from polluting Docker build 2026-08-28 11:20:27 +07:00
ypratama 2115f406b8 Fix: use INTERNAL_API_URL for runtime backend URL (NEXT_PUBLIC_ is baked at build time) 2026-08-28 11:11:53 +07:00
ypratama 60cd973dc8 Add .env.production.example as setup guide 2026-08-28 11:01:11 +07:00
ypratama bfffd7f68a Secure docker-compose.prod.yml with variable substitution and add .env.production.example 2026-08-28 11:00:29 +07:00
ypratama e1406c20ca Add fe0 and be0 domains to CORS ALLOWED_ORIGINS 2026-08-28 10:43:02 +07:00
ypratama 62a91ed10a Hide API URL and DB credentials from docker-compose.prod.yml 2026-08-27 18:09:01 +07:00
ypratama a308f5f0c9 Update docker-compose.prod.yml for external domains and mongodb 2026-08-27 17:41:03 +07:00
ypratama d1ba95a9cc Update allowedOrigins for new domains 2026-08-27 17:29:09 +07:00
ypratama e8397bddc8 Fix TypeScript tuple array typing for GlobeMap lines 2026-08-27 15:57:46 +07:00
ypratama 9219035003 Fix TypeScript error for TopWidgets AppStat properties 2026-08-27 15:51:03 +07:00
ypratama 20e38ffdb3 Fix TypeScript index error in devices page 2026-08-27 15:37:08 +07:00
ypratama 0a991662b7 Upgrade Node.js to v20 for Next.js frontend build 2026-08-27 15:22:11 +07:00
ypratama 1dee901f21 Fix Dockerfile npm ci conflict and ENV syntax 2026-08-27 15:09:06 +07:00
ypratama 966058e2fe v1.1: Add CIDR subnet filtering and Agent filter in Devices page 2026-08-27 12:02:01 +07:00