Wazuh Certificate OAuth2

Certificate-based agent authentication for Wazuh, backed by OAuth2 / OpenID Connect (OIDC) identity providers such as Keycloak.

This project bridges identity, device trust, and certificate lifecycle management in a clean, auditable way. It enables secure agent enrollment and access control using short-lived OIDC tokens, mTLS client certificates, and automated revocation driven by identity-provider events.

Components

Component Role
Server Validates OIDC tokens, signs CSRs with a Root CA, maintains the issuance ledger and CRL.
Client CLI on the agent host: authenticates via OIDC, generates a key + CSR, and registers the agent.
Webhook Consumes IdP events (e.g. Keycloak), triggers revocations, and evicts Wazuh agents automatically.
Model Shared types, services, and helpers reused across the workspace.
Nginx Sidecar CRL-validating reverse proxy for agent enrollment traffic.

Copyright © 2026 ADORSYS-GIS. Distributed under the MIT license.