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

  1. A service publishes a domain event.
  2. Lamassu evaluates the subscriptions associated with that event type.
  3. Each subscription's filter decides whether it should be notified.
  4. 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 POST or PUT.

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_options requires header and key.
  • jwt_options requires oidc_client_id, oidc_client_secret and an absolute http or https oidc_well_known.
  • mtls_options requires cert_content and key_content as 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_verify is enforced as false — including when it is set to true — so self-signed or otherwise untrusted receivers fail delivery.
  • Redirects are not followed. A 3xx response fails with unexpected status code: <n>: redirects are not followed. Configure webhook_url with the final absolute http or https URL: an http:// address that an ingress redirects to https:// stops working.
  • Calls are bounded. A call defaults to a 10 second timeout; a configured call_timeout is 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.header may not use names that the platform or receiving services trust — for example X-Principal-Id, X-Request-Id, Host, Content-Type or Forwarded — and no name may start with X-Forwarded-, X-Envoy- or X-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.reissue and ca.delete.
  • Certificates: ca.sign.certificate and certificate.delete.
  • Profiles: profile.issuance.create, profile.issuance.update and profile.issuance.delete.
  • Enrollment: dms.create, dms.update, dms.enroll and dms.reenroll.
  • Devices: device.create, device.identity.update and device.status.update.
  • Validation: va.role.crl.create.
  • Keys: kms.create, kms.import, kms.sign and kms.delete.

Use the catalog shown in the console as the source for the types available in your deployed version.

On this page