feat(infra): add pihole rule to infra scope

This commit is contained in:
Nabil Derouiche
2026-06-25 22:15:46 +01:00
parent be63b30285
commit 314f8603aa
32 changed files with 507 additions and 589 deletions
+8 -8
View File
@@ -4,26 +4,26 @@
<div class="mb-6 flex items-center justify-between">
<div>
<h1 class="text-3xl font-bold text-white">Audit Logs</h1>
<p class="text-gray-400 mt-2">History of API and MCP accesses by agents.</p>
<p class="dark:text-gray-400 text-gray-500 mt-2">History of API and MCP accesses by agents.</p>
</div>
<a href="/dashboard" class="text-gray-400 hover:text-white">&larr; Back to Dashboard</a>
<a href="/dashboard" class="dark:text-gray-400 text-gray-500 hover:text-white">&larr; Back to Dashboard</a>
</div>
<div class="bg-gray-800 rounded-lg shadow border border-gray-700 p-6">
<div class="dark:bg-gray-800 bg-gray-100 rounded-lg shadow border dark:border-gray-700 border-gray-200 p-6">
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-700">
<thead>
<tr>
<th class="px-4 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">Time</th>
<th class="px-4 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">Agent</th>
<th class="px-4 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">Scope / Action</th>
<th class="px-4 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">IP Address</th>
<th class="px-4 py-3 text-left text-xs font-medium dark:text-gray-400 text-gray-500 uppercase tracking-wider">Time</th>
<th class="px-4 py-3 text-left text-xs font-medium dark:text-gray-400 text-gray-500 uppercase tracking-wider">Agent</th>
<th class="px-4 py-3 text-left text-xs font-medium dark:text-gray-400 text-gray-500 uppercase tracking-wider">Scope / Action</th>
<th class="px-4 py-3 text-left text-xs font-medium dark:text-gray-400 text-gray-500 uppercase tracking-wider">IP Address</th>
</tr>
</thead>
<tbody class="divide-y divide-gray-700">
{% for log in logs %}
<tr class="hover:bg-gray-750 transition">
<td class="px-4 py-4 whitespace-nowrap text-sm text-gray-400">{{ log.timestamp }}</td>
<td class="px-4 py-4 whitespace-nowrap text-sm dark:text-gray-400 text-gray-500">{{ log.timestamp }}</td>
<td class="px-4 py-4 whitespace-nowrap text-sm font-medium text-gray-200">{{ log.agent_name }}</td>
<td class="px-4 py-4 whitespace-nowrap text-sm">
{% if 'FORBIDDEN' in log.scope %}