Skip to content

Commit

Permalink
[REF. #62] Fill table ynhOsqueryRules with actual rules and display t…
Browse files Browse the repository at this point in the history
…hem on the UI side.
  • Loading branch information
csavelief committed Aug 21, 2024
1 parent 5e558a6 commit 1d92304
Show file tree
Hide file tree
Showing 4 changed files with 443 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/Http/Controllers/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use App\Models\YnhNginxLogs;
use App\Models\YnhOrder;
use App\Models\YnhOsquery;
use App\Models\YnhOsqueryRule;
use App\Models\YnhServer;
use App\Models\YnhSshTraces;
use App\User;
Expand Down Expand Up @@ -60,6 +61,12 @@ public function index(Request $request)
];
}

$security_rules = collect();

if ($tab === 'security_rules') {
$security_rules = YnhOsqueryRule::get();
}

$interdependencies = collect();

if ($tab === 'interdependencies') {
Expand Down Expand Up @@ -138,6 +145,7 @@ public function index(Request $request)
'memory_usage',
'disk_usage',
'security_events',
'security_rules',
'interdependencies',
'traces',
'pendingActions',
Expand Down
Loading

0 comments on commit 1d92304

Please sign in to comment.