Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

docs and default values

Matheus Nogueira18e290722e5c
diff --git a/docs/documentation/platform/webhooks.mdx b/docs/documentation/platform/webhooks.mdx
index 7cd8031fe2..6f1f4f2399 100644
--- a/docs/documentation/platform/webhooks.mdx
+++ b/docs/documentation/platform/webhooks.mdx
@@ -31,6 +31,7 @@ Supported events:
- **Secret Modified** (`secrets.modified`) — triggered when secrets in the configured scope are created, updated, or deleted.
- **Secret Rotation Failed** (`secrets.rotation-failed`) — triggered when a secret rotation in the configured scope fails.
+- **Honey Token Triggered** (`honey-token.triggered`) — triggered when a honey token is activated.
### Webhook Payload Format
@@ -40,7 +41,7 @@ Supported events:
"project": {
"workspaceId": "the workspace id",
"environment": "project environment (slug)",
- "environmentName": "project environment (name)"
+ "environmentName": "project environment (name)",
"secretPath": "project folder path",
"changedBy": "Actor that changed the secret",
"changedByActorType": "The actor type that triggered the change. Possible values: `service`, `user`, `identity`."
@@ -57,7 +58,7 @@ Supported events:
"projectId": "the project id",
"projectName": "the project name",
"environment": "project environment",
- "environmentName": "project environment (name)"
+ "environmentName": "project environment (name)",
"secretPath": "project folder path",
"rotationName": "name of the failed rotation",
"errorMessage": "error details",
@@ -66,3 +67,22 @@ Supported events:
"timestamp": ""
}
```
+
+```json
+{
+ "event": "honey-token.triggered",
+ "project": {
+ "projectId": "the project id",
+ "projectName": "the project name",
+ "environment": "project environment (slug)",
+ "environmentName": "project environment (name)",
+ "secretPath": "project folder path"
+ },
+ "honeyToken": {
+ "name": "name of the honey token",
+ "eventName": "the AWS event that triggered the honey token",
+ "sourceIp": "IP address of the caller",
+ "awsRegion": "AWS region where the event occurred"
+ }
+}
+```
diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/WebhooksTab/AddWebhookForm.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/WebhooksTab/AddWebhookForm.tsx
index c9050cc509..94c3e6c7df 100644
--- a/frontend/src/pages/secret-manager/SettingsPage/components/WebhooksTab/AddWebhookForm.tsx
+++ b/frontend/src/pages/secret-manager/SettingsPage/components/WebhooksTab/AddWebhookForm.tsx
@@ -64,7 +64,8 @@ const formSchema = z
type: z.nativeEnum(WebhookType).describe("Type").default(WebhookType.GENERAL),
enabledEvents: z.record(z.nativeEnum(WebhookEvent), z.boolean()).default({
[WebhookEvent.SecretModified]: true,
- [WebhookEvent.SecretRotationFailed]: true
+ [WebhookEvent.SecretRotationFailed]: true,
+ [WebhookEvent.HoneyTokenTriggered]: true
})
})
.superRefine((data, ctx) => {
@@ -105,7 +106,8 @@ export const AddWebhookForm = ({
type: WebhookType.GENERAL,
enabledEvents: {
[WebhookEvent.SecretModified]: true,
- [WebhookEvent.SecretRotationFailed]: true
+ [WebhookEvent.SecretRotationFailed]: true,
+ [WebhookEvent.HoneyTokenTriggered]: true
}
}
});
@@ -177,7 +179,8 @@ export const AddWebhookForm = ({
type: WebhookType.GENERAL,
enabledEvents: {
[WebhookEvent.SecretModified]: true,
- [WebhookEvent.SecretRotationFailed]: true
+ [WebhookEvent.SecretRotationFailed]: true,
+ [WebhookEvent.HoneyTokenTriggered]: true
},
environment: environments?.[0]?.slug,
secretPath: ""