Note: Event Subscriptions is a paid feature. - Infisical Cloud users: Event Subscriptions is available under
the Enterprise Tier. - Self-Hosted Infisical: Please contact sales@infisical.com
to purchase an enterprise license.
How It Works
- Server receives message over pubsub connection indicating changes have occurred
- Server processes the change notification
- Updated data is synchronized across all connected Infisical instances
- Client applications receive real-time updates through Server-Sent Events (SSE)
- All servers maintain consistent state without manual intervention
Event Subscriptions are designed for real-time communication and do not include persistence or replay
capabilities—events are delivered once and are not stored for future retrieval.
Supported Resources
You can currently subscribe to notifications for the following resources and event types:- Secrets
secret:created
: Triggered when a secret is createdsecret:updated
: Triggered when a secret is updatedsecret:deleted
: Triggered when a secret is deleted
Permissions Setup
To receive events on a supported resource, the identity must haveSubscribe
action permission on that resource.
Follow these steps to set up the necessary permissions:
1
Select a project and copy the Project ID

https://app.infisical.com/project/<your_project_id>/settings
2
Navigate to Access Management and open Project Roles


3
Select an existing role or create a new one

4
Assign policies to the role


5
Enable the Subscribe action in permissions

Conditions
By default, the role will have access to all events for the selected resources in this project.Full Access
Full Access

Path Prefix
Path Prefix

Environment
Environment

Getting Started
Currently, events are only available via API but will soon be available in our SDKs, Kubernetes Operator, and more.API Usage
You need an auth token to use this API. To get an authentication token, follow the authentication guide for one of our supported auth methods from the machine identities documentation.Creating a Subscription

projectId
: Project whose events you want to subscribe toregister
: List of event filtersconditions
: Conditions to filter events onenvironmentSlug
: Project environmentsecretPath
: Path of the secrets

text/event-stream
content type to initiate SSE streaming.
For more specific details, please refer to our API Reference.