Alerts and subscriptions
Send PKI events to people and external systems.
Subscriptions turn Lamassu events into actionable notifications. You can alert a team, feed an incident system or trigger an automation when a CA, certificate or device changes.
How it works
- A service publishes a domain event.
- Lamassu evaluates the subscriptions associated with that event type.
- Each subscription's filter decides whether it should be notified.
- Lamassu delivers the event to the configured channel.
The event inventory shows when each type was last observed, how many times it has occurred and how many subscriptions it has. You can expand an event to inspect an example of its JSON payload before creating the filter.
Available channels
- Email sends alerts to a person or an operational list. It only requires the destination address. Event content is rendered as HTML-escaped text, never as markup.
- Microsoft Teams posts the notification to a channel through its webhook URL.
- Webhook delivers the event to an automation, SIEM or incident system via
POSTorPUT.
The Microsoft Teams and Webhook channels accept an optional http_client block that authenticates the call to the receiver. auth_mode selects noauth (the default), apikey, jwt or mtls; each mode requires its own options:
apikey_optionsrequiresheaderandkey.jwt_optionsrequiresoidc_client_id,oidc_client_secretand an absolutehttporhttpsoidc_well_known.mtls_optionsrequirescert_contentandkey_contentas Base64-encoded PEM, like certificates elsewhere in the API; plain PEM is also accepted. Values that reference files on the server are rejected, and the pair must decode to a matching certificate and private key.
The alerts API reference documents the full http_client schema.
Create a subscription
Choose the event
Open Alerts, locate the event type and select Subscribe. Review the latest JSON example to identify the fields you will need to filter on.
Configure the destination
Select Email, Microsoft Teams or Webhook and enter the channel details.
Limit the notifications
Add a filter if you don't want to receive every instance of the event.
- None notifies all instances of the event.
- JSON Path evaluates one or more specific fields.
- JSON Schema accepts only payloads with a particular structure.
- JavaScript lets you express custom logic. Each filter runs for at most 100 milliseconds; a filter that exceeds this limit fails the condition and the notification is skipped with the error
javascript filter execution timed out.
For example, function (event) { return event.data.status == "NO_IDENTITY"; } limits a subscription to devices without an identity.
Review and activate
Check the event, channel and filter in the summary. Select Confirm Subscription to start delivery.
Webhook delivery rules
Notifications delivered through the Microsoft Teams and Webhook channels follow a fixed HTTP policy:
- TLS is always verified. The receiver certificate is checked against the system trust store.
insecure_skip_verifyis enforced asfalse— including when it is set totrue— so self-signed or otherwise untrusted receivers fail delivery. - Redirects are not followed. A
3xxresponse fails withunexpected status code: <n>: redirects are not followed. Configurewebhook_urlwith the final absolutehttporhttpsURL: anhttp://address that an ingress redirects tohttps://stops working. - Calls are bounded. A call defaults to a 10 second timeout; a configured
call_timeoutis capped at 30 seconds. Values above the cap are clamped, not rejected. - The response body is ignored. Delivery checks the status code only, so the receiver may answer with any body.
- API-key headers are restricted. A custom
apikey_options.headermay not use names that the platform or receiving services trust — for exampleX-Principal-Id,X-Request-Id,Host,Content-TypeorForwarded— and no name may start withX-Forwarded-,X-Envoy-orX-Lms-. Comparisons are case-insensitive. - Invalid configurations are rejected at subscribe time. A channel configuration that would fail on every delivery returns HTTP 400 with a body that starts with
struct validation error:, and the subscription is not created.
Credentials over http://
Credentials are sent regardless of the URL scheme. With an http:// webhook_url, the API key or bearer token travels in cleartext and mTLS has no effect. Prefer https:// for webhook_url, oidc_well_known and the token endpoint it advertises.
Manage a subscription
Open an existing subscription to review its destination and filter, modify the configuration or select Unsubscribe. Remove subscriptions that no longer have an operational owner to avoid ignored deliveries or stale endpoints.
Event families
- Authorities:
ca.create,ca.import,ca.reissueandca.delete. - Certificates:
ca.sign.certificateandcertificate.delete. - Profiles:
profile.issuance.create,profile.issuance.updateandprofile.issuance.delete. - Enrollment:
dms.create,dms.update,dms.enrollanddms.reenroll. - Devices:
device.create,device.identity.updateanddevice.status.update. - Validation:
va.role.crl.create. - Keys:
kms.create,kms.import,kms.signandkms.delete.
Use the catalog shown in the console as the source for the types available in your deployed version.