GitGuardian Webhooks Receive
Certified
Verify and parse a GitGuardian custom webhook event
GitGuardian Webhooks Receive
Verify and parse a GitGuardian custom webhook event
Companion of Kestra's core Webhook trigger for GitGuardian custom webhooks: pass it {{ trigger.body }} and {{ trigger.headers }} and it returns the event's action, timestamp, message and the typed incident (same shape as the incident tasks, camelCase). When signatureToken is set, it verifies the Gitguardian-Signature header (HMAC-SHA256 keyed with the Timestamp header plus the token) and rejects stale timestamps beyond maxClockSkew. Kestra delivers the webhook body already parsed, so the signature is checked against the canonical re-serializations GitGuardian is known to use; pass rawBody when you have the exact bytes for a strict check. Fails the flow on an invalid signature unless failOnInvalidSignature: false. No GitGuardian API call, no scope needed.
type: io.kestra.plugin.gitguardian.webhooks.ReceiveExamples
Real-time incident response from a GitGuardian custom webhook
id: gitguardian_webhook
namespace: company.security
tasks:
- id: event
type: io.kestra.plugin.gitguardian.webhooks.Receive
body: "{{ trigger.body }}"
headers: "{{ trigger.headers }}"
signatureToken: "{{ secret('GITGUARDIAN_WEBHOOK_SIGNATURE_TOKEN') }}"
- id: on_new_incident
type: io.kestra.plugin.core.flow.If
condition: "{{ outputs.event.action == 'incident_triggered' }}"
then:
- id: assign
type: io.kestra.plugin.gitguardian.incidents.Assign
apiKey: "{{ secret('GITGUARDIAN_API_KEY') }}"
incidentId: "{{ outputs.event.incident.id }}"
assigneeEmail: security-oncall@company.com
triggers:
- id: webhook
type: io.kestra.plugin.core.trigger.Webhook
key: "{{ secret('GITGUARDIAN_WEBHOOK_KEY') }}"
Installation
Our standard Docker images already include this plugin. If you use a -slim image or another setup, install it with the following command:
kestractl plugins get io.kestra.plugin:plugin-gitguardian --compatible-for $KESTRA_VERSION For kestractl, use your Kestra version with --compatible-for, or specify an exact plugin version.
Properties
assets
Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.
io.kestra.core.models.assets.AssetsDeclaration
IGNOREFAILWARNAsset failure behavior
Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.
Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.
The assets consumed as inputs.
io.kestra.core.models.assets.AssetIdentifier
1The assets produced as outputs.
io.kestra.plugin.ee.assets.Dataset
1150{}1150io.kestra.plugin.ee.assets.File
1150{}1150io.kestra.plugin.ee.assets.Table
1150{}1150io.kestra.plugin.ee.assets.VM
1150{}1150io.kestra.core.models.assets.External
1150{}1150io.kestra.core.models.assets.Custom
11501Custom asset type
{}1150body object
Webhook body
{{ trigger.body }} from the core Webhook trigger, already parsed as JSON.
failOnInvalidSignature booleanstring
trueFail when the signature or timestamp is invalid
Defaults to true. When false, the task succeeds and exposes the result in verified.
headers object
Webhook headers
{{ trigger.headers }} from the core Webhook trigger.
maxClockSkew string
PT5MMaximum accepted age of the event
Difference allowed between the Timestamp header and the execution start date, so a queued or retried run is not taken for a replay. Defaults to PT5M.
rawBody string
Raw webhook body
Exact request body as a string, when available (for example from a stored trigger.uri). When set, it is used instead of body for both the strict signature check and the typed outputs.
signatureToken string
Signature token
The signature token configured on the GitGuardian custom webhook. Signature verification is skipped when omitted, so only run write tasks (assign, resolve, ignore, ...) when the verified output is true.
Outputs
action string
Event action
For example incident_triggered, new_occurrence, incident_validity_changed, incident_severity_changed, incident_resolved, incident_ignored, incident_reopened, incident_regression, incident_assigned, incident_note_created, honeytoken_triggered, or new_honeytoken_event.
honeytoken
The honeytoken, for honeytoken_triggered events
io.kestra.plugin.gitguardian.honeytokens.Honeytoken
date-timeCreation date
ID of the member who created it
Custom tags
io.kestra.plugin.gitguardian.incidents.CustomTag
Custom tag ID
Custom tag key
Custom tag value
Null for key-only tags.
Description
Honeytoken URL on the GitGuardian dashboard
Honeytoken ID
Name
Number of open events
date-timeRevocation date
Status
active, triggered, or revoked.
GitGuardian tags
date-timeLast date the honeytoken switched from active to triggered
Type
Currently AWS.
honeytokenEvent
The honeytoken event, for new_honeytoken_event events
io.kestra.plugin.gitguardian.honeytokens.HoneytokenEvent
Action performed with the honeytoken
For example GetCallerIdentity.
Additional event data
For example user agent, AWS region, or geolocation.
Event URL on the GitGuardian dashboard
ID of the honeytoken that was used
Event ID
Source IP address
Event status
open or closed.
GitGuardian tags
date-timeWhen the honeytoken was used
incident
The incident, typed like the incident tasks
Null for events without an incident, such as honeytoken events.
io.kestra.plugin.gitguardian.incidents.Incident
Email of the assigned member
ID of the assigned member
Custom tags set on the incident
io.kestra.plugin.gitguardian.incidents.CustomTag
Custom tag ID
Custom tag key
Custom tag value
Null for key-only tags.
date-timeDate the incident was last triggered
Declarative secret status
Only set on Public Monitoring incidents delivered by webhook, for example active or not_declared.
Detector that found the secret
io.kestra.plugin.gitguardian.incidents.Detector
Detector group display name
Detector group name
Detector display name
For example AWS Keys.
Detector family
For example apikey, token, or private_key.
Detector name
For example aws_iam.
Detector nature
specific or generic.
Incident URL on the GitGuardian dashboard
Incident ID
Reason given when the incident was ignored
test_credential, false_positive, low_risk, or invalid.
date-timeDate the incident was ignored
Human-readable incident name
Combines the detector and a short identifier, for example AWS Keys - 7f3a.
Number of occurrences of the secret across monitored sources
Whether the incident was re-triggered after being resolved or ignored
date-timeDate the incident was resolved
Risk score from 0 (low) to 100 (critical)
Whether the secret was reported as revoked on resolution
CRITICALHIGHMEDIUMLOWINFOUNKNOWNIncident severity
critical, high, medium, low, info, or unknown.
Public share URL, if the incident was shared
TRIGGEREDASSIGNEDRESOLVEDIGNOREDUNKNOWNIncident status
TRIGGERED, ASSIGNED, RESOLVED, or IGNORED.
GitGuardian tags
For example FROM_HISTORICAL_SCAN, PUBLICLY_EXPOSED, or TEST_FILE.
date-timeDate the incident was first triggered
VALIDINVALIDFAILED_TO_CHECKNO_CHECKERNOT_CHECKEDUNKNOWNValidity of the secret
valid, invalid, failed_to_check, no_checker, or unknown.
Whether the secret is stored in a vault
message string
Human-readable message
occurrence object
The occurrence, for new_occurrence events
Raw GitGuardian fields: id, incident_id, kind, sha, author_name, date, url, source, and match positions.
targetTeam string
Target team name
targetUser string
Target user email, when the event concerns a user
timestamp string
date-timeEvent timestamp
verified boolean
Whether the signature and timestamp were verified
Null when signatureToken is not set.
webhookName string
Name of the custom webhook that sent the event