Commit 8a8784b
feat(web.azure): port read-only pages (DeviceList, DeviceDetail, Audit, Settings) + WorkerStatusBadge
Phase 2 of the Web.Azure portal port. Mirrors the on-prem dashboard structure
so operators see the same UI when looking at Azure SQL data.
Pages ported (with minimal Azure adaptation):
- /devices (DeviceList) — paginated/filtered consistency view
- /devices/{id} (DeviceDetail) — keys comparison + admin-gated reveal that
re-checks AdminOnly server-side, decrypts via DataKeyService,
and audit-logs each reveal.
- /audit (Audit) — paginated/filtered audit log + CSV export with
spreadsheet-formula-injection neutralization. AdminOnly.
- /settings (Settings) — RuntimeConfig editor + passphrase. AdminOnly.
The on-prem "Run scan now" section is removed: the Azure
deployment has no scan Worker yet, so the trigger would
have no consumer.
Layout / shell:
- MainLayout.razor replaced with the on-prem sidebar layout (nav links gated
by AuthorizeView AdminOnly / ViewerOrAdmin, sign-in/sign-out links, version).
- Components/Shared/WorkerStatusBadge.razor — graceful degradation: when no
Worker writes WorkerHeartbeats (the default on Azure today) the badge
renders "Worker: nessun heartbeat" instead of red-alarming Offline.
- Routes.razor — RouteView replaced with AuthorizeRouteView so the per-page
[Authorize(Policy="AdminOnly")] attributes are actually enforced.
- _Imports.razor — added Core.Security, Core.Services, Core.Services.Interfaces,
Web.Azure.Components.Shared usings.
- wwwroot/app.css — copied from on-prem (10 KB) so .dashboard-grid, .card,
.badge, .filters, .worker-badge etc. render correctly.
Build green (Azure solution: Shared, Core, HybridAgent, Web.Azure, Functions
all built). Tests green: 86 Core + 8 HybridAgent + 15 Functions = 109 passed.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 2be4984 commit 8a8784b
12 files changed
Lines changed: 2024 additions & 300 deletions
File tree
- src/BitLockerKeyMonitor.Web.Azure
- Components
- Layout
- Pages
- Devices
- wwwroot
Lines changed: 49 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
11 | 34 | | |
| 35 | + | |
12 | 36 | | |
13 | | - | |
14 | | - | |
15 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
16 | 42 | | |
17 | 43 | | |
18 | 44 | | |
| |||
21 | 47 | | |
22 | 48 | | |
23 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
Lines changed: 0 additions & 98 deletions
This file was deleted.
Lines changed: 0 additions & 41 deletions
This file was deleted.
Lines changed: 0 additions & 105 deletions
This file was deleted.
0 commit comments