Commit Graph

282 Commits

Author SHA1 Message Date
Douglas Barone
57859bcf38 Added user field 2021-01-15 10:50:56 -04:00
Douglas Barone
c306c4f7a1 Remove unused imports 2021-01-15 08:01:14 -04:00
Douglas Barone
1ab330de60 Improve logging 2021-01-15 07:03:47 -04:00
Douglas Barone
641d29982d Remove unused argument 2021-01-15 06:57:28 -04:00
Douglas Barone
ed20881d36 Remove unused import 2021-01-15 06:54:55 -04:00
Douglas Barone
84152915d2 Added pAHosts query 2021-01-14 19:20:01 -04:00
Douglas Barone
d674a1877c Remove unused var 2021-01-14 16:22:15 -04:00
Douglas Barone
482443ee8f Switch basic auth with key auth and use DB for PA hosts 2021-01-14 16:18:17 -04:00
Douglas Barone
b9805d496b Upsert PA host OK 2021-01-14 15:51:40 -04:00
Douglas Barone
80f81b4013 Add PA Host OK 2021-01-14 15:12:37 -04:00
Douglas Barone
681b83188b Initial PanOS db support 2021-01-14 13:04:41 -04:00
Douglas Barone
a8a4bf7f6a Refactor 2021-01-14 10:07:29 -04:00
Douglas Barone
00097c68d2 Add PanOS 2021-01-14 10:07:19 -04:00
Douglas Barone
14115749a8 Better role management 2021-01-12 09:47:09 -04:00
Douglas Barone
8522abdca0 Added String.prototype.contains 2021-01-11 20:23:02 -04:00
Douglas Barone
c1752f41e0 Improved search 2021-01-11 16:26:33 -04:00
Douglas Barone
fe8a3e2217 Save devices without user binding 2021-01-11 15:47:22 -04:00
Douglas Barone
6707c31228 Clean startup logs 2021-01-08 15:26:26 -04:00
Douglas Barone
e2542091f8 Use funtion to run tasks 2021-01-08 13:53:33 -04:00
Douglas Barone
9abba52d7d Remove unused variable 2021-01-08 13:50:25 -04:00
Douglas Barone
d97dd315f8 Check data before log 2021-01-07 09:55:21 -04:00
Douglas Barone
9de555c361 Log error 2021-01-07 09:23:09 -04:00
Douglas Barone
10ee9667bd Added cycle.js 2021-01-07 09:21:57 -04:00
Douglas Barone
80308b6e8d Improved tagging 2021-01-05 14:23:28 -04:00
Douglas Barone
51b0ba668b Update to prisma 2.14 2021-01-05 11:54:31 -04:00
Douglas Barone
ffd2169fbc Use prisma's transaction api 2021-01-04 17:39:15 -04:00
Douglas Barone
d77f1a96b2 Remove unecessary check 2021-01-04 15:07:38 -04:00
Douglas Barone
ce1ce11877 Always limit 2021-01-04 15:04:00 -04:00
Douglas Barone
d2ef43f2bb Remove dev condition 2021-01-04 10:31:52 -04:00
Douglas Barone
786197f115 Added flag to opt-out db storing 2021-01-04 10:31:01 -04:00
Douglas Barone
eb36ea8ce4 Remove unused imports 2020-12-29 10:31:02 -04:00
Douglas Barone
734032186c Make dateIn optional 2020-12-23 17:36:40 -04:00
Douglas Barone
b69a951b05 Added log search 2020-12-23 17:30:34 -04:00
Douglas Barone
c138047be5 Remove old commented code 2020-12-23 11:12:30 -04:00
Douglas Barone
ccaeb50d3e Fix Upper case users 2020-12-23 10:43:10 -04:00
Douglas Barone
ca8a5e91f3 Remove redundant data 2020-12-23 10:42:50 -04:00
Douglas Barone
7020d53252 Include offline users on IP search 2020-12-23 08:55:48 -04:00
Douglas Barone
e7afddad8d Added env var to control sleeps 2020-12-23 08:29:10 -04:00
Douglas Barone
9feb7da676 Fix mocking 2020-12-22 16:00:14 -04:00
Douglas Barone
07744878ed Better filtering 2020-12-22 12:30:31 -04:00
Douglas Barone
f5d06f8782 Remove error data from log 2020-12-22 11:51:01 -04:00
Douglas Barone
fc4fa88295 Decouple DB from console.log 2020-12-22 11:50:21 -04:00
Douglas Barone
f69165dd77 Update docs 2020-12-21 15:27:24 -04:00
Douglas Barone
a74081fefd Fix: do things in the right order 2020-12-21 14:56:59 -04:00
Douglas Barone
778384e04b Bump node version 2020-12-21 13:38:17 -04:00
Douglas Barone
0a843cab31 Mocking hostname 2020-12-21 13:24:07 -04:00
Douglas Barone
1f7a0efab5 Removo mocking 2020-12-21 13:07:21 -04:00
Douglas Barone
12876b5385 Fix refactor import error 2020-12-21 11:48:36 -04:00
Douglas Barone
eb22315aca Remove default for login fields 2020-12-21 11:33:35 -04:00
Douglas Barone
44b142e752 Reset database migrations 2020-12-21 10:45:20 -04:00
Douglas Barone
bb894c04e0 Improve sorting 2020-12-21 10:24:25 -04:00
Douglas Barone
5d462431d4 Added hostname mocking 2020-12-21 10:17:25 -04:00
Douglas Barone
99f4b7746b Update const 2020-12-21 10:06:07 -04:00
Douglas Barone
e8d310ebda Rename parent var 2020-12-21 09:24:58 -04:00
Douglas Barone
ee651c9ee4 Organize Mutations and Subscriptions in folders 2020-12-21 09:02:47 -04:00
Douglas Barone
8e4e4e7da9 Organize queries into individual files 2020-12-21 08:39:59 -04:00
Douglas Barone
dcbbceb685 Fix: Cannot read property 'context' of undefined 2020-12-21 08:28:01 -04:00
Douglas Barone
26429f6968 Created tasks 2020-12-21 08:14:15 -04:00
Douglas Barone
784b4fbaf8 Fix: caching now works again 2020-12-19 10:39:53 -04:00
Douglas Barone
c61894894e Fix typeDefs 2020-12-19 09:06:40 -04:00
Douglas Barone
2f8f76870f Initial log funcionality 2020-12-18 16:31:10 -04:00
Douglas Barone
64a4ed2dfa Fix: import users from domain machines 2020-12-18 14:44:09 -04:00
Douglas Barone
706660f73e Added logger 2020-12-18 14:33:34 -04:00
Douglas Barone
8e1e4b0131 Omit error message from log 2020-12-18 12:10:07 -04:00
Douglas Barone
6332f297cb Replaced all console.log with new logger function 2020-12-18 12:07:33 -04:00
Douglas Barone
4d836c2260 Log function created 2020-12-18 10:53:04 -04:00
Douglas Barone
6aaad16a78 Bugfix 2020-12-18 10:00:45 -04:00
Douglas Barone
4928dd3a73 Refatored UserPrecense functionality 2020-12-17 17:45:12 -04:00
Douglas Barone
9945b58fb1 Added RECENT status 2020-12-17 16:28:09 -04:00
Douglas Barone
ea5e698264 v2.5.0 DB schema 2020-12-17 13:47:43 -04:00
Douglas Barone
b4d0f7af13 Use same date for all entries 2020-12-17 13:15:47 -04:00
Douglas Barone
79d3bc47b9 Extract method 2020-12-17 13:15:22 -04:00
Douglas Barone
a47f05ab18 Handle the zero device case 2020-12-17 13:04:38 -04:00
Douglas Barone
cf21f1534d Better log message 2020-12-17 13:04:06 -04:00
Douglas Barone
738bae1a15 Better filtering 2020-12-17 08:57:38 -04:00
Douglas Barone
ed65680a3b Fix: properly sort itens 2020-12-16 11:24:52 -04:00
Douglas Barone
acbe13a0b1 Sort result 2020-12-16 11:18:45 -04:00
Douglas Barone
37d7f94141 Added prisma-dev script 2020-12-16 09:34:05 -04:00
Douglas Barone
f7cc0f3f07 Update prisma migration 2020-12-15 16:01:39 -04:00
Douglas Barone
9c1c78a4b3 Update prisma 2020-12-15 11:35:45 -04:00
Douglas Barone
c605734d8f Refactor 2020-12-15 11:13:18 -04:00
Douglas Barone
c39c2a7d3a Rename folder 2020-12-14 16:51:43 -04:00
Douglas Barone
d77e131385 Code refactoring 2020-12-14 16:42:38 -04:00
Douglas Barone
58369b0df6 Fix sessionId for cache 2020-12-14 16:22:36 -04:00
Douglas Barone
e872afaf35 Organize project struture 2020-12-14 16:18:28 -04:00
Douglas Barone
6bd6049c02 Fix: set working state properly 2020-12-14 10:42:35 -04:00
Douglas Barone
6ee96e7f16 Bump version to 2.4.0 2020-12-11 11:59:41 -04:00
Douglas Barone
58a7a70040 Optimize query 2020-12-10 20:18:06 -04:00
Douglas Barone
dae45fe928 Extract timeout from entry 2020-12-10 20:09:02 -04:00
Douglas Barone
b77716ebc6 Clean unused variables 2020-12-10 19:56:05 -04:00
Douglas Barone
a7322693d3 Improve Palo Alto user-id mapping using a single POST req 2020-12-10 16:29:14 -04:00
Douglas Barone
3200b8624b Added StatsWidget 2020-12-10 10:11:36 -04:00
Douglas Barone
1cd561bd62 Initialize var properly 2020-12-10 08:28:07 -04:00
Douglas Barone
12db9c49b2 Prevent unnecessary user-id update 2020-12-09 08:30:17 -04:00
Douglas Barone
6599707386 Added totalWifiDevices to stats query. 2020-12-07 14:13:11 -04:00
Douglas Barone
a9d515d1f4 Rename vars 2020-12-05 13:11:59 -04:00
Douglas Barone
f38f358fca Debounce upsertUser 2020-12-05 12:11:44 -04:00
Douglas Barone
05db879b27 Added authUpdated subscription 2020-12-04 18:40:47 -04:00
Douglas Barone
30422ccb24 Adjust userPresence slice 2020-12-04 10:55:12 -04:00
Douglas Barone
2e454ea88f Added onlineUsers to Stats 2020-12-04 10:38:08 -04:00
Douglas Barone
472982a97f Bumped version to 2.3.0 2020-12-03 18:27:51 -04:00
Douglas Barone
023dc39076 UserPresence subscription OK 2020-12-03 17:50:25 -04:00
Douglas Barone
43a2638d18 Refactor authorization extraction 2020-12-03 17:30:35 -04:00
Douglas Barone
fea7befa8a Added support to Subscriptions 2020-12-03 17:27:03 -04:00
Douglas Barone
3f1355c8b8 Added env var 2020-12-03 16:10:20 -04:00
Douglas Barone
87f7ed4cd8 Decouple updateDevicesInfo: delegate to cronTasks 2020-12-02 15:54:49 -04:00
Douglas Barone
5de1bb4f0b Bump version to 2.2.0 2020-12-02 13:54:40 -04:00
Douglas Barone
eccdca4f29 Initial support for user-id mappings 2020-12-02 11:20:27 -04:00
Douglas Barone
52d561f396 Minimal refactoring 2020-12-01 15:19:03 -04:00
Douglas Barone
04a2fb01cb Optimized AD user import 2020-12-01 14:56:20 -04:00
Douglas Barone
95364dc8a7 Removo TODO 2020-11-30 14:56:05 -04:00
Douglas Barone
72a6e577bc Added a cron task to update OUIs 2020-11-30 14:53:43 -04:00
Douglas Barone
73fb2c49ae Added isOnline property to WifiDevice 2020-11-30 14:30:50 -04:00
Douglas Barone
adb6289e99 Wifi views OK 2020-11-30 14:15:19 -04:00
Douglas Barone
94773e52bf Added wifiUsers query 2020-11-27 15:01:55 -04:00
Douglas Barone
d2d6a3a28a WiFi devices page OK 2020-11-27 10:37:28 -04:00
Douglas Barone
63126777cf Minimal refactoring 2020-11-27 08:19:34 -04:00
Douglas Barone
31d067f99d Update Prisma. Bugfix: set user correct in non identified devices 2020-11-26 14:56:01 -04:00
Douglas Barone
8891e40250 Added OUI finder 2020-11-25 14:41:18 -04:00
Douglas Barone
98c743a296 Added fallback firstSeen on create 2020-11-23 15:01:46 -04:00
Douglas Barone
40f6e2875c Bump version 2020-11-20 16:28:45 -04:00
Douglas Barone
4e0d244477 Added initial support to wifi devices listing 2020-11-20 16:17:35 -04:00
Douglas Barone
2abc723d00 Added filtering by IP address 2020-11-20 15:21:23 -04:00
Douglas Barone
b1594643c2 Rename User relation wifiDevices 2020-11-20 15:16:38 -04:00
Douglas Barone
cb6ba1999f Refactor filtering 2020-11-20 15:07:04 -04:00
Douglas Barone
c65b1530b9 Improve wifiDevices query 2020-11-20 11:21:45 -04:00
Douglas Barone
5f9861d932 Added sAMAccountName search to userPresence query 2020-11-20 10:38:48 -04:00
Douglas Barone
de32791c97 Update Babel 2020-11-20 10:19:31 -04:00
Douglas Barone
7ff8a74143 Install correct dependencies 2020-11-20 09:53:52 -04:00
Douglas Barone
639961a73d Replace Puppeteer method for a configured axios 2020-11-20 09:50:57 -04:00
Douglas Barone
f8df9a96b2 Minimal refactor 2020-11-19 15:38:49 -04:00
Douglas Barone
210e5a9b93 Added debounce time constant 2020-11-19 11:38:44 -04:00
Douglas Barone
259678e100 Catch all 2020-11-19 11:34:31 -04:00
Douglas Barone
10a990c5e3 User presence improvements 2020-11-19 11:23:31 -04:00
Douglas Barone
bfa7ec4573 Update README.md 2020-11-19 08:54:27 -04:00
Douglas Barone
86c37cc0b5 Debounce wifiDevices updates 2020-11-18 19:51:16 -04:00
Douglas Barone
72161ff4d0 Improve filtering 2020-11-18 19:43:18 -04:00
Douglas Barone
0431ec1db6 Cisco controller listing OK 2020-11-18 18:34:21 -04:00
Douglas Barone
419d91950b Added initial support to Cisco controller 2020-11-18 17:25:57 -04:00
Douglas Barone
dc442f6d26 Updated READMEs 2020-11-17 17:01:41 -04:00
Douglas Barone
52f39c0fdf Release: 2.0.0 2020-11-17 16:25:00 -04:00
Douglas Barone
61792a0dc5 Minor changes 2020-11-17 15:59:16 -04:00
Douglas Barone
674b66ff19 Change Dockerfile build order 2020-11-17 14:59:50 -04:00
Douglas Barone
76a276fb99 Updated Dockerfile 2020-11-17 14:41:14 -04:00
Douglas Barone
a635589b19 Fix typo 2020-11-17 14:09:16 -04:00
Douglas Barone
5eeb3cdf67 Reflect new enviorement 2020-11-17 12:15:01 -04:00
Douglas Barone
12a3086a22 Added captain-definition file 2020-11-17 11:25:56 -04:00
Douglas Barone
a82f3e037d Fix typos 2020-11-17 10:57:13 -04:00
Douglas Barone
80f9460e52 Catch wifiDevice update inconcistencies 2020-11-16 16:04:21 -04:00
Douglas Barone
5b5dbf61d6 Fix incorrect timestamp 2020-11-16 11:14:22 -04:00