Skip to content
@keylime-webtool

keylime-webtool

Keylime Monitoring Dashboard

A web-based security operations platform for centralized monitoring, management, and compliance of Keylime remote attestation infrastructure. The dashboard transforms Keylime from a CLI-driven security tool into a visual operations platform, reducing mean time to detect (MTTD) attestation failures from hours to seconds, centralizing policy and certificate lifecycle management, and providing tamper-evident audit trails for compliance reporting.

Target Audience

  • Security Operations (SecOps) teams -- real-time fleet attestation monitoring and alert triage
  • System Administrators -- agent lifecycle management, performance monitoring, capacity planning
  • Compliance Officers -- framework-mapped reports (NIST, PCI DSS, SOC 2, FedRAMP, CIS Controls)
  • DevSecOps Engineers -- policy authoring, integration pipelines, CI/CD gating

Architecture

                              +-------------------+
                              |   Browser (SPA)   |
                              |   React 19 + TS   |
                              |   Vite, Zustand,  |
                              |   TanStack Query  |
                              +--------+----------+
                                       |
                              TLS 1.3  |  WebSocket
                              (HTTPS)  |  (wss://)
                                       |
  +----------+           +-------------v--------------+          +-----------+
  | Keylime  |           |        Rust Backend        |          |  Keylime  |
  | Verifier <-----------|        Axum + Tokio        |----------> Registrar |
  | (v2/v3)  |   mTLS    |        JWT / RBAC          |   mTLS   |   (v2)    |
  +----------+ (rustls)  +-----+----------------+-----+ (rustls) +-----------+
                               |                |
                               |                |
                        +------v------+    +----v----+
                        | TimescaleDB |    |  Redis  |
                        |(time-series)|    | (cache) |
                        +-------------+    +---------+

The backend consumes Keylime's existing Verifier and Registrar REST APIs (v2 pull-mode and v3 push-mode) via mTLS without requiring any modification to Keylime components. It acts as a read-through cache and analytics aggregator, presenting a unified REST + WebSocket API to the frontend. The dashboard UI ships in two flavors -- this standalone React SPA and a Cockpit plugin -- both consuming the same backend.

Repositories

This organization contains eight repositories:

React 19 + TypeScript single-page application providing the dashboard UI (standalone flavor).

Stack React 19, TypeScript 7 (native compiler) + 6 (lint tooling), Vite 8, React Router v8, Zustand 5, TanStack Query 5, Axios, Recharts 3
Styling CSS Modules
Testing Vitest + React Testing Library
License Apache-2.0

10 navigation modules:

Module Route Purpose
Dashboard / Fleet KPIs, agent state distribution pie chart, recent alerts
Agents /agents, /agents/:id Agent list with search/filter/sort/bulk actions; 6-tab detail view (Timeline, PCR, IMA Log, Boot Log, Certificates, Raw Data)
Attestations /attestations Failure analytics, latency distribution, root cause suggestions
Policies /policies Unified IMA/MB policy list, versioning, two-person approval workflow
Certificates /certificates Certificate lifecycle, expiry tracking with tiered warnings
Alerts /alerts Alert lifecycle (New, Acknowledged, Investigating, Resolved)
Performance /performance Verifier cluster metrics, DB pool, circuit breaker status
Audit Log /audit Tamper-evident security event log, hash chain verification
Integrations /integrations Backend service connectivity status
Settings /settings Configuration, compliance framework reports

Key features: global search (UUID/IP/hostname), time range selector (1h - 30d), WebSocket real-time updates with exponential backoff reconnection, role-aware UI rendering (Viewer/Operator/Admin).

Cockpit plugin that embeds the dashboard in the Cockpit web console, providing a native Linux system administration experience. It serves the same feature set as the standalone SPA and talks to the same Rust backend via Cockpit-native transports.

Stack React 18 + TypeScript (strict), PatternFly 6, esbuild, Zustand, TanStack Query
Transport cockpit.http() + websocket-stream1; PAM authentication via Cockpit
Packaging RPM (cockpit-keylime-webtool) or symlinked dist/ for development
License Apache-2.0

Rust async backend built on Axum and Tokio, serving the REST API and WebSocket endpoint.

Stack Rust 2021 edition, Axum, Tokio, sqlx (TimescaleDB), redis, reqwest + rustls, jsonwebtoken, openidconnect
Observability tracing + tracing-subscriber, OpenTelemetry, Prometheus metrics
Testing cargo test unit tests, Mockoon integration tests simulating Keylime Verifier/Registrar, curl end-to-end tests
License Apache-2.0

79 REST endpoints across 12 handler modules (plus one WebSocket endpoint):

Module Endpoints Purpose
agents 14 Fleet list, search, detail, actions, timeline, PCR values, IMA log, boot log, certificates, raw data (backend/registrar/verifier), bulk actions
attestations 11 Summary, timeline, failures, incidents, rollback from incident, pipeline visualization, push/pull mode analytics, state machine
policies 11 CRUD, versioning, diff, rollback, impact analysis, assignment matrix, two-person approval
certificates 7 List, detail, expiry summary, timeline, PEM/DER download
alerts 10 List, summary, acknowledge, investigate, resolve, dismiss, escalate, thresholds, notifications
audit 3 Event list, hash chain verification, export
kpis 1 Real-time fleet KPIs
compliance 3 Framework listing, report generation, export
performance 6 Summary, verifier metrics, database stats, API response times, config drift, capacity planning
integrations 5 Verifier/Registrar health, SIEM, revocation channels, durable backends, SSH check
auth 4 OIDC login/callback, token refresh, logout
settings 4 Keylime and certificate settings (view/update)

WebSocket: /ws/events for real-time push updates (KPIs, agent state changes, alerts).

Keylime integration: Circuit breaker pattern (threshold: 5 failures, reset: 60s), concurrent log fetch semaphore (max 5 parallel requests), dual API version support (v2 pull + v3 push).

#![forbid(unsafe_code)] enforced at the crate root.

Deployment automation: Containerfiles, Podman Compose configuration, and helper scripts for plug-and-play provisioning of the full stack on any host with Podman.

Runtime Podman 4.0+ with podman-compose, OpenSSL 3.0+, GNU Make
Services frontend (nginx reverse proxy, TLS 1.3 on :8443), backend, TimescaleDB, Redis
Bootstrap make setup -- one command: prerequisite checks, .env, self-signed TLS certificates, OCI image build, service start
License Apache-2.0

See Deployment below for the one-command quick start.

Formal requirements and design documents produced with the Spec-Driven Development (SDD) methodology.

SRS Software Requirements Specification -- 93 functional, 28 non-functional, and 30 security requirements with Gherkin acceptance criteria
SDD Software Design Description (IEEE 1016-2009) -- architecture, component decomposition, data models, API contracts, state machines, deployment topology
License CC BY-SA 4.0

The SDD records implementation refinements (IR-001--IR-023) that emerged during development, cross-referenced from SRS Section 7.

BDD functional test suite validating the SRS requirements against the running system.

Stack Playwright + cucumber-js (TypeScript)
Profiles standalone (SPA + JWT), cockpit (plugin + PAM), api (browserless contract tests)
Traceability Scenarios tagged by requirement ID (@FR-NNN, @NFR-NNN, @SR-NNN); generates an HTML traceability matrix
License Apache-2.0

Presentation materials and project branding.

Build GNU Make + pdflatex (Beamer)
License CC BY-SA 4.0

Contents:

Path Description
slides/20260226-Keylime-Monitoring-Tool/ Technical presentation (Beamer/LaTeX) -- architecture, UI components, verification pipeline, security model.
slides/20260305-Keylime-Monitoring-Tool-Stakeholders/ Stakeholder-oriented presentation -- problem statement, solution overview, roadmap, benefits.
slides/20260424-FromIdeaToCode/ Project journey presentation -- from initial idea to working code.
icons/ Project branding assets.

The formal specifications (SRS and SDD) live in the spec repository.

keylime-webtool-org (this repository)

Organization-level profile and governance documentation, including a reusable GitHub Actions workflow that enforces Signed-off-by lines on every PR commit across the organization.

Tech Stack Summary

Layer Technology Purpose
Frontend React 19 + TypeScript Component-based SPA with type safety
Build Vite 8 Fast HMR dev server, optimized production builds
Routing React Router v8 Client-side routing with protected routes
Client State Zustand 5 Auth store (JWT, user role, permissions)
Server State TanStack Query 5 Caching, polling, mutation with automatic invalidation
HTTP Axios JWT interceptor, response envelope unwrapping, 401 redirect
Charts Recharts Agent state distribution, attestation analytics
Admin Console Cockpit + PatternFly 6 Native web console integration (cockpit-plugin)
Backend Rust (Axum + Tokio) Async HTTP/WebSocket server
Database TimescaleDB (PostgreSQL) Time-series attestation history and metrics
Cache Redis Tiered TTLs (agent list 10s, detail 30s, policies 60s, certs 300s)
TLS rustls + tokio-rustls TLS 1.3 browser-facing, mTLS to Keylime APIs
Auth OIDC/SAML + JWT 15-min token expiry, refresh rotation, server-side revocation
E2E Tests Playwright + cucumber-js BDD scenarios tagged by SRS requirement ID
Docs Beamer/LaTeX Presentation slides with Red Hat theme
CI GitHub Actions Unit tests, Mockoon + curl integration, BDD e2e, clippy, cargo-audit, shellcheck, npm audit

Security Model

Authentication and Authorization

  • Identity: OIDC/SAML via external identity provider (no local passwords)
  • Sessions: Short-lived JWT (15-minute expiry) with refresh token rotation and replay detection
  • MFA: Mandatory for Admin role (enforced at IdP, verified via token claim)
  • RBAC: Three-tier model enforced at the backend proxy layer
Capability Viewer Operator Admin
View fleet, analytics, policies, audit log Yes Yes Yes
Export reports (CSV/PDF) -- Yes Yes
Acknowledge/manage alerts -- Yes Yes
Reactivate/stop agents -- Yes Yes
Create/edit/delete policies -- -- Yes
Delete agents from verifier -- -- Yes
Configure alert thresholds -- -- Yes

Transport Security

  • Browser to Dashboard: TLS 1.3 minimum
  • Dashboard to Keylime: mTLS with rustls (private key via HSM/PKCS#11 or HashiCorp Vault -- never cleartext on disk)
  • Dashboard to Database/Cache: TLS encrypted

Data Protection

  • Raw TPM quotes, IMA logs, boot logs, and PoP tokens are never cached, stored, or logged -- pass-through only
  • Cache entries are signed (HMAC) with TTLs to mitigate poisoning
  • Audit log is hash-chained (SHA-256) with RFC 3161 timestamp anchoring and Rekor transparency log checkpoints
  • Minimum 1-year audit log retention for compliance

Policy Governance

  • Two-person rule: Policy changes require drafter + separate approver (N-of-M quorum configurable)
  • Time-limited approval window: Default 24 hours, configurable
  • Emergency bypass: Break-glass mechanism with mandatory justification and CRITICAL audit trail
  • Impact analysis: Pre-update analysis categorizing agents as unaffected/affected/will-fail

Getting Started

Prerequisites

  • Podman 4.0+ with podman-compose (one-command deployment)
  • Node.js 18+ and npm (frontend; the BDD test suite requires Node.js 22+)
  • Rust 1.75+ with cargo (backend)
  • Keylime Verifier and Registrar (or Mockoon for mock testing)
  • Optionally: TimescaleDB (PostgreSQL), Redis

One-Command Deployment

The fastest way to get the complete stack running is the deploy repository:

git clone https://github.com/keylime-webtool/deploy.git
cd deploy
make setup

That single command verifies the prerequisites, copies .env.example to .env, generates self-signed TLS certificates, builds the OCI images, and starts all services. The dashboard is then available at https://localhost:8443.

Useful follow-up targets: make health (service status), make logs ARGS="-f" (follow logs), make down (stop), and make clean (full reset).

For a development setup with live reload, use the manual workflow below.

Quick Start with Mocks

# 1. Start mock Keylime services (requires mockoon-cli: npm install -g @mockoon/cli)
cd keylime-webtool-backend
mockoon-cli start --data test-data/verifier.json --port 3000 &
mockoon-cli start --data test-data/registrar.json --port 3001 &

# 2. Start the backend (default: http://localhost:8080)
RUST_LOG=info cargo run

# 3. In a separate terminal, start the frontend (default: http://localhost:5173)
cd keylime-webtool-frontend
npm install
npm run dev

The frontend dev server proxies /api/* and /ws requests to the backend at localhost:8080.

Environment Variables

Frontend (prefix VITE_ for Vite exposure):

Variable Default Purpose
VITE_API_BASE_URL http://localhost:8080 Backend API root URL
VITE_WS_URL ws://localhost:8080/ws WebSocket endpoint for real-time updates

Backend:

Variable Default Purpose
KEYLIME_VERIFIER_URL http://localhost:3000 Keylime Verifier API base URL
KEYLIME_REGISTRAR_URL http://localhost:3001 Keylime Registrar API base URL
RUST_LOG (none) Tracing log level filter (e.g., info, debug)

Running Tests

# Backend
cd keylime-webtool-backend
cargo test                         # unit tests
cargo clippy -- -D warnings        # lint (treat warnings as errors)
cargo fmt -- --check               # format check
bash tests/mockoon_tests.sh        # Mockoon integration tests (auto setup/teardown)
bash tests/curl_integration_test.sh # curl end-to-end tests against all API endpoints
bash scripts/pre-commit.sh         # run all CI checks locally

# Frontend
cd keylime-webtool-frontend
npm run test          # Vitest watch mode
npm run test -- --run # single test run
npm run lint          # ESLint (zero warnings policy)
npx tsc -b            # type check

# End-to-end BDD tests (requires backend + frontend running; Node.js 22+)
cd keylime-webtool-test
npm install
npx playwright install chrome
npm run test                    # all profiles
npm run test -- --tags @FR-001  # single requirement

# Documentation (build presentations)
cd keylime-webtool-doc
make -C slides test

Deployment

One Command with Podman Compose

The keylime-webtool-deploy repository packages the full stack for Podman Compose. With Podman 4.0+ and podman-compose installed:

git clone https://github.com/keylime-webtool/deploy.git
cd deploy
make setup

make setup checks the prerequisites, copies .env.example to .env (if missing), generates self-signed TLS certificates, builds the frontend and backend OCI images, and starts all services:

Service Image Role
frontend keylime-webtool-frontend nginx reverse proxy + React SPA (TLS 1.3, :8443)
backend keylime-webtool-backend Rust/Axum REST + WebSocket API
timescaledb timescale/timescaledb Attestation event time-series store
redis redis:7-alpine Response cache with tiered TTLs

The dashboard is then available at https://localhost:8443. All configuration is managed through environment variables in .env (see .env.example); for production, replace the self-signed TLS certificates and the placeholder Keylime mTLS material with real ones. Air-gapped hosts can install pre-built images transferred as OCI archives (podman save / podman load).

Design Constraints

The system is designed for air-gapped environments with no runtime internet access:

  • All frontend assets are self-contained (no CDN)
  • Backend compiles to a single binary with embedded static assets
  • Fonts, icons, and scripts are bundled
  • Offline EK certificate validation via pre-loaded TPM vendor CA certificates
  • Update packages are GPG-signed with SBOM (SPDX/CycloneDX)

Supported deployment methods:

Method Description
Podman Compose make setup in the deploy repository (recommended)
OCI Container Pre-built container images with all layers
Kubernetes Helm chart for backend + frontend + database
RPM System package with systemd service unit
systemd Direct binary with systemd management

High Availability:

  • Active/Passive: < 30s RTO, 0 RPO for committed transactions
  • Active/Active: For 5,000+ agent deployments with load distribution

Requirements Coverage

The project is specified using Spec-Driven Development (SDD) methodology. The specifications live in the spec repository:

The test repository validates these requirements end-to-end: Gherkin scenarios are tagged by requirement ID (@FR-NNN, @NFR-NNN, @SR-NNN) and a traceability matrix reports coverage.

Category Count Examples
Functional Requirements 93 Fleet KPIs, agent management, attestation analytics, policy CRUD with two-person approval, certificate lifecycle, alert workflow, audit logging, compliance reports, SIEM integration
Non-Functional Requirements 28 30s KPI refresh, 10K WebSocket connections, 100K+ agent scale, air-gapped deployment, WCAG 2.1 AA accessibility, circuit breaker, rate limiting, cache TTLs
Security Requirements 30 OIDC/SAML auth, MFA for Admin, mTLS with HSM keys, TLS 1.3, hash-chained audit log, SSRF protection, data classification, #![forbid(unsafe_code)]

Implementation Phasing

Phase 1 -- Secure Foundation: Agent fleet monitoring, OIDC/SAML authentication, three-tier RBAC, tamper-evident audit log, mTLS to Keylime APIs.

Phase 2 -- Operations: Attestation analytics, policy management, certificate monitoring, alert notifications, push mode (v3) support, SIEM integration, WebSocket real-time updates.

Phase 3 -- Enterprise Scale: Multi-tenancy, compliance reports, incident response integration (ServiceNow, Jira, PagerDuty), HA deployment, air-gapped packaging, WCAG 2.1 AA accessibility.

Compliance Frameworks

The dashboard maps attestation capabilities to specific compliance controls:

Framework Mapped Controls
NIST SP 800-155 BIOS integrity measurement
NIST SP 800-193 Platform firmware resilience
PCI DSS 4.0 Req 11.5 (file integrity monitoring), Req 10.2 (audit trail)
SOC 2 Type II CC7.1 (monitoring activities), CC6.1 (logical access controls)
FedRAMP CA-7 (continuous monitoring), SI-7 (software integrity)
CIS Controls v8 2.5 (allowlisted software)

License

Repository License
keylime-webtool-frontend Apache-2.0
keylime-webtool-cockpit-plugin Apache-2.0
keylime-webtool-backend Apache-2.0
keylime-webtool-deploy Apache-2.0
keylime-webtool-spec CC BY-SA 4.0
keylime-webtool-test Apache-2.0
keylime-webtool-doc CC BY-SA 4.0

Pinned Loading

  1. backend backend Public

    Rust backend for the Keylime Monitoring Dashboard. A web-based security operations platform providing centralized monitoring, management, and compliance capabilities for Keylime remote attestation …

    Rust 1 2

  2. frontend frontend Public

    Modular React web interface designed to manage, monitor, and configure Keylime's hardware-based remote attestation and security posture verification through a clean, specimen-driven, and highly acc…

    TypeScript 1 2

  3. cockpit-plugin cockpit-plugin Public

    A dedicated Cockpit plugin that provides a seamless, integrated web console UI to manage, deploy, and monitor Keylime’s hardware-based remote security attestation directly from your Linux system ad…

    TypeScript 1 2

  4. deploy deploy Public

    Deployment automation for the Keylime Monitoring Dashboard. Containerfiles, Podman Compose, and scripts for plug-and-play provisioning of the frontend, backend, and supporting services.

    Shell 1

  5. spec spec Public

    SDD specification and other SDD related stuff

    1

  6. doc doc Public

    TeX 1

Repositories

Showing 8 of 8 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…