GitGuardian Honeytokens Create

GitGuardian Honeytokens Create

Certified

Create a GitGuardian honeytoken

Creates a decoy credential via POST /v1/honeytokens. The credential itself is returned once, in the encryptedToken output, encrypted with Kestra's secret key so it never appears in clear in execution data; reference it with {{ fromJson(outputs.<task>.encryptedToken) }} only in the task that places it (a repository, a config file, a CI variable); Kestra decrypts it when the task renders. Requires kestra.encryption.secret-key to be configured and the honeytokens: write scope.

yaml
type: io.kestra.plugin.gitguardian.honeytokens.Create

Create a honeytoken per deployed environment and place it in a config file

yaml
id: gitguardian_place_honeytoken
namespace: company.security

inputs:
  - id: environment
    type: STRING

tasks:
  - id: create
    type: io.kestra.plugin.gitguardian.honeytokens.Create
    apiKey: "{{ secret('GITGUARDIAN_API_KEY') }}"
    name: "kestra-{{ inputs.environment }}-{{ execution.startDate | date('yyyyMMdd') }}"
    honeytokenDescription: "Placed by Kestra flow {{ flow.id }} in {{ inputs.environment }}"
    customTags:
      env: "{{ inputs.environment }}"

  - id: place
    type: io.kestra.plugin.core.storage.Write
    content: |
      AWS_ACCESS_KEY_ID={{ fromJson(outputs.create.encryptedToken).access_token_id }}
      AWS_SECRET_ACCESS_KEY={{ fromJson(outputs.create.encryptedToken).secret_key }}
    extension: .env
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

GitGuardian API key

Personal access token or service account token created in the GitGuardian dashboard under API > Personal access tokens / Service accounts. The token needs the scopes required by the tasks and triggers you use, for example scan, incidents: read, incidents: write, or honeytokens: read. Sent as Authorization: Token <key>; never logged or included in error messages.

Name of the honeytoken

Must be unique in the workspace.

Defaulthttps://api.gitguardian.com

GitGuardian API URL

Base URL of the GitGuardian API for your workspace: https://api.gitguardian.com (US, default), https://api.eu1.gitguardian.com (EU), or https://<your-instance>/exposed for a self-hosted GitGuardian. The /v1 prefix is appended automatically.

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.

Definitions
assetFailureBehaviorstring
Possible Values
IGNOREFAILWARN

Asset 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.

enableAutobooleanstring

Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.

inputsarray

The assets consumed as inputs.

id*string
Min length1
typestring
outputs

The assets produced as outputs.

id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*string
Min length1

Custom asset type

descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150

Custom tags

Map of key to value; missing tags are created in the workspace.

Description

Say where the honeytoken is placed; it is what responders read when it fires.

DefaultAWS

Type

Currently only AWS. Defaults to AWS.

The honeytoken value as a JSON object, encrypted

For an AWS honeytoken: {"access_token_id": ..., "secret_key": ...}. Use {{ fromJson(outputs.<task>.encryptedToken) }} where it is placed; Kestra decrypts it on render.

The created honeytoken, without its value

Definitions
createdAtstring
Formatdate-time

Creation date

creatorIdinteger

ID of the member who created it

customTagsarray

Custom tags

idstring

Custom tag ID

keystring

Custom tag key

valuestring

Custom tag value

Null for key-only tags.

descriptionstring

Description

gitguardianUrlstring

Honeytoken URL on the GitGuardian dashboard

idstring

Honeytoken ID

namestring

Name

openEventsCountinteger

Number of open events

revokedAtstring
Formatdate-time

Revocation date

statusstring

Status

active, triggered, or revoked.

tagsarray
SubTypestring

GitGuardian tags

triggeredAtstring
Formatdate-time

Last date the honeytoken switched from active to triggered

typestring

Type

Currently AWS.